iiitAccessServer 1.0

de.iiit.access.common.rmi
Class RMIServer

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--de.iiit.access.common.rmi.RMIServer
All Implemented Interfaces:
Remote, RMIServerIf, Serializable

public class RMIServer
extends UnicastRemoteObject
implements RMIServerIf

Implements a RMI server for requesting the AccessServer

Version:
$Revision: 1.7 $ $Date: 2003/04/13 21:13:38 $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Fields inherited from interface de.iiit.access.common.api.RMIServerIf
DEFAULT_RMI_PORT
 
Constructor Summary
RMIServer()
          Creates a new instance of RmiServer
 
Method Summary
 RMISessionIf getSession(String user)
          Returns a new RMI session for a distinct user.
 void serverShutdown()
          Shuts down the server.
 
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

RMIServer

public RMIServer()
          throws RemoteException
Creates a new instance of RmiServer

Throws:
RemoteException - when anything goes wrong
Method Detail

serverShutdown

public void serverShutdown()
                    throws RemoteException
Shuts down the server.

Specified by:
serverShutdown in interface RMIServerIf
Throws:
RemoteException - when anything goes wrong

getSession

public RMISessionIf getSession(String user)
                        throws RemoteException
Returns a new RMI session for a distinct user.

Specified by:
getSession in interface RMIServerIf
Parameters:
user - the name of the for whom the session will be used.
Returns:
the newly created session
Throws:
RemoteException - if there are any RMI errors.

iiitAccessServer 1.0

Copyright © 2002, 2003 ingeneurbuero fuer innovative informationstechnik, Dipl.-Ing. Joerg Beckmann, Dortmund, Germany. All Rights Reserved.
See Copyright statement