public class RemoteRoot
extends java.rmi.server.UnicastRemoteObject
Subclasses will generally extend this class while implementing a Remote interface.
Ex:
public class ServerImpl extends RemoteRoot implements Server
public class AgentImpl extends RemoteRoot implements Agent
ServerImpl
,
AgentImpl
,
Serialized FormModifier and Type | Class and Description |
---|---|
protected class |
RemoteRoot.ShutdownHook
This is how we try to ensure our finalize method is called at JVM shutdown.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_RMI_SERVER_HOST
'localhost'
|
protected java.lang.String |
remoteType
'Remote':Override to indicate Remote RMI type in RMI and debug messages.
|
protected static java.lang.String |
serverHost
defaults to 'localhost'
|
Constructor and Description |
---|
RemoteRoot()
Constructor for RemoteRoot
Subclasses should call super() for this superclass and should also set the
remoteType to whatever they need.
|
Modifier and Type | Method and Description |
---|---|
protected void |
finalize()
without this the bootstrap loading mechanism of the JVMAgent class fails with some VerifyError
this occurs on some computer environments in not clarified circumstances
|
protected static void |
rebindLocalRMIRegistry(java.lang.String serverName,
java.rmi.Remote server)
rebind a RMI server object to the localhost RMI Registry.
|
clone, exportObject, exportObject, exportObject, unexportObject
public static final java.lang.String DEFAULT_RMI_SERVER_HOST
protected static java.lang.String serverHost
protected java.lang.String remoteType
public RemoteRoot() throws java.rmi.RemoteException
java.rmi.RemoteException
protected static void rebindLocalRMIRegistry(java.lang.String serverName, java.rmi.Remote server) throws java.rmi.RemoteException
If no valid localhost registry is found then we will attempt to create one. Currently, we attempt to create one on port 1099, which is the Java RMI default port for RMI.
The security policy for the JVM running this RMI Registry may need the additional permissions specified in:
SAFS\lib\java.policy
java.rmi.RemoteException
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
Copyright © SAS Institute. All Rights Reserved.