|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sourceforge.esw.transport.RMITransportDelegate
This is the entry point to the Transport system. Clients wishing to use transport must first startup the Transport system using methods in this object.
Distrubuted Garbage Collection Lease time can be modified by a SystemProperty of the form: Property prop = System.getProperties(); prop.put("java.rmi.dgc.leaseValue", 120000); also sun.rmi.dgc.client.gcInterval and sun.rmi.dgc.server.gcInterval This implementation is responsible for RMI transport.
Field Summary | |
static int |
DEFAULT_CONNECTION_IDLE_TIMEOUT
DEFAULT_CONNECTION_IDLE_TIMEOUT |
static int |
DEFAULT_CONNECTION_TIMEOUT
DEFAULT_CONNECTION_TIMEOUT |
static int |
DEFAULT_MAX_CLIENT_CONNECTIONS
DEFAULT_MAX_CLIENT_CONNECTIONS |
static int |
DEFAULT_MAX_CONNECTIONS
DEFAULT_MAX_CONNECTIONS |
static int |
DEFAULT_MAX_SERVER_CONNECTIONS
DEFAULT_MAX_SERVER_CONNECTIONS |
static int |
DEFAULT_RETRY_LIMIT
DEFAULT_RETRY_LIMIT |
static java.lang.String |
RMI_CONNECTION_IDLE_TIMEOUT_PROPERTY
RMIConnectionIdleTimeoutProperty |
static java.lang.String |
RMI_CONNECTION_RETRY_LIMIT_PROPERTY
RMIConnectionRetryLimitProperty |
static java.lang.String |
RMI_CONNECTION_TIMEOUT_PROPERTY
RMIConnectionTimeoutProperty |
static java.lang.String |
RMI_MAX_CLIENT_CONNECTIONS_PROPERTY
RMIMaxClientConnectionsProperty |
static java.lang.String |
RMI_MAX_CONNECTIONS_PROPERTY
RMIMaxConnectionsProperty |
static java.lang.String |
RMI_MAX_SERVER_CONNECTIONS_PROPERTY
RMIMaxServerConnectionsProperty |
static java.lang.String |
RMI_USE_LOCAL_REGISTRY_PROPERTY
Constant string for the optional property of using a local RMI registry on this machine instead of creating one. |
Constructor Summary | |
RMITransportDelegate()
|
Method Summary | |
protected java.util.ArrayList |
getClientConnectionList()
|
java.lang.Object |
getProxy(java.lang.Object aObject)
Creates a Proxy object that can be sent to remote clients that allows remote method calls to be made against the specified object. |
protected java.util.ArrayList |
getServerConnectionList()
|
boolean |
isBelowMaxConnections()
|
protected void |
setupProperties()
|
void |
startup()
Starts up the Transport system. |
void |
startup(int aPort)
Starts up the Transport system at the specified port. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String RMI_USE_LOCAL_REGISTRY_PROPERTY
LocateRegistry.createRegistry( aPort )
will not be called,
otherwise, it will be called to initialize the in-VM RMI Registry. Simply
add this property, with the name of "RMIUseLocalRegistryProperty" to the
System properties or ESW properties to true to avoid this step.public static final java.lang.String RMI_CONNECTION_TIMEOUT_PROPERTY
public static final java.lang.String RMI_MAX_CONNECTIONS_PROPERTY
public static final java.lang.String RMI_CONNECTION_IDLE_TIMEOUT_PROPERTY
public static final java.lang.String RMI_MAX_SERVER_CONNECTIONS_PROPERTY
public static final java.lang.String RMI_MAX_CLIENT_CONNECTIONS_PROPERTY
public static final java.lang.String RMI_CONNECTION_RETRY_LIMIT_PROPERTY
public static final int DEFAULT_RETRY_LIMIT
public static final int DEFAULT_CONNECTION_IDLE_TIMEOUT
public static final int DEFAULT_CONNECTION_TIMEOUT
public static final int DEFAULT_MAX_CONNECTIONS
public static final int DEFAULT_MAX_CLIENT_CONNECTIONS
public static final int DEFAULT_MAX_SERVER_CONNECTIONS
Constructor Detail |
public RMITransportDelegate()
Method Detail |
public void startup() throws java.lang.Exception
startup
in interface ITransportDelegate
public void startup(int aPort) throws java.lang.Exception
startup
in interface ITransportDelegate
aPort
- the port on which to start the trasport.public java.lang.Object getProxy(java.lang.Object aObject) throws java.lang.Exception
getProxy
in interface ITransportDelegate
aObject
- the Object to create a Proxy fromjava.lang.Exception
- if an error occured during creation of the Proxy.public boolean isBelowMaxConnections()
protected java.util.ArrayList getServerConnectionList()
protected java.util.ArrayList getClientConnectionList()
protected void setupProperties()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |