org.sapia.ubik.rmi.server
Class ServerTable
java.lang.Object
org.sapia.ubik.rmi.server.ServerTable
- All Implemented Interfaces:
- Server
public class ServerTable
- extends java.lang.Object
- implements Server
This class is a singleton that implements the Server interface.
It internally keeps a table of running servers, on a per-transport-type-to-server-instance
basis. There can only be a single server instance per transport type.
This class holds methods pertaining to stub creations, etc. It and delegates the Server interface's
methods to the internal Server implementation(s).
For example, calling shutdown on this singleton will trigger the shutdown of all internal server instances.
- Author:
- Yanick Duchesne
- Copyright:
- Copyright © 2002-2003 Sapia Open Source Software. All Rights Reserved.
- License:
- Read the license.txt file of the jar or visit the
license page at the Sapia OSS web site
|
Method Summary |
void |
close()
Closes this server, which cleanly shuts down. |
OID |
getOID(java.lang.String transportType)
Returns the unique object identifier of this instance. |
RemoteRef |
getRemoteRef(java.lang.String transportType)
Returns the remote reference of this instance. |
ServerAddress |
getServerAddress()
Returns the adress of the server corresponding to the default transport type. |
ServerAddress |
getServerAddress(java.lang.String transportType)
|
void |
start()
Starts this server - this method should not block infinitely. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServerTable
public ServerTable()
start
public void start()
- Description copied from interface:
Server
- Starts this server - this method should not block infinitely.
- Specified by:
start in interface Server
- See Also:
Server.start()
close
public void close()
- Description copied from interface:
Server
- Closes this server, which cleanly shuts down.
- Specified by:
close in interface Server
- See Also:
Server.close()
getServerAddress
public ServerAddress getServerAddress()
- Returns the adress of the server corresponding to the default transport type.
- Specified by:
getServerAddress in interface Server
- See Also:
Server.getServerAddress()()
getServerAddress
public ServerAddress getServerAddress(java.lang.String transportType)
getRemoteRef
public RemoteRef getRemoteRef(java.lang.String transportType)
- Returns the remote reference of this instance.
- Returns:
- a
RemoteRef.
getOID
public OID getOID(java.lang.String transportType)
- Returns the unique object identifier of this instance.
- Returns:
- an
OID.
Copyright © 2010 Sapia OSS. All Rights Reserved.