Rainbow
Interface Server

All Superinterfaces:
Remote
All Known Implementing Classes:
SimServer

public interface Server
extends Remote

The Rainbow server as viewed from RMI. Most functionality is really in the Session interface.


Method Summary
 Session getSession()
          Get a new session object.
 AuthorizedSession getSession(String username, String password)
          Get a new session object that is authorized to perform insecure operations.
 String getVersion()
          Get the version identifier of the server.
 void terminate(String masterPassword)
          Ask this server to terminate nicely.
 

Method Detail

getSession

public Session getSession()
                   throws RemoteException,
                          RainbowException
Get a new session object.

getSession

public AuthorizedSession getSession(String username,
                                    String password)
                             throws RemoteException,
                                    RainbowException
Get a new session object that is authorized to perform insecure operations.

terminate

public void terminate(String masterPassword)
               throws RemoteException,
                      MalformedURLException,
                      NotBoundException
Ask this server to terminate nicely. The server object is removed from the name registry and no further operations may be performed on it. All current session objects continue to execute as normal.

getVersion

public String getVersion()
                  throws RemoteException
Get the version identifier of the server.