edu.northwestern.at.wordhoard.server
Class BootstrapImpl

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by edu.northwestern.at.wordhoard.server.BootstrapImpl
All Implemented Interfaces:
Bootstrap, java.io.Serializable, java.rmi.Remote

public class BootstrapImpl
extends java.rmi.server.UnicastRemoteObject
implements Bootstrap

Server bootstrap remote object implementation.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
BootstrapImpl()
          Creates a new BootstrapImpl object.
 
Method Summary
 void shutdown(java.lang.String uri)
          Shuts down the server.
 WordHoardSession startSession()
          Starts a new session.
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BootstrapImpl

BootstrapImpl()
        throws java.rmi.RemoteException
Creates a new BootstrapImpl object.

Throws:
java.rmi.RemoteException
Method Detail

startSession

public WordHoardSession startSession()
                              throws java.rmi.RemoteException
Starts a new session.

Specified by:
startSession in interface Bootstrap
Returns:
A session object.
Throws:
java.rmi.RemoteException

shutdown

public void shutdown(java.lang.String uri)
              throws java.lang.Exception
Shuts down the server.

Specified by:
shutdown in interface Bootstrap
Parameters:
uri - The URI for the server object.

Shutdown requests must originate from the local host, or they are ignored.

Throws:
java.lang.Exception