|
| Foundation |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.services.deployment.RMIConfiguration
public class RMIConfiguration
RMI configuration that defines a deployment configuration for an RMI remote object registry.
RMIBinding,
Serialized Form| Field Summary | |
|---|---|
static int |
DEFAULT_PORT
Default service registry port. |
static java.lang.String |
LOCALHOST
Local host |
| Constructor Summary | |
|---|---|
RMIConfiguration()
Constructs a configuration for an RMI object registry operating on the local host on the default port specified by Constants.PORT_DEFAULT_SAS_RMI_REGISTRY. |
|
RMIConfiguration(com.sas.net.ssl.SSLRMISocketFactories sslRMISocketFactories,
java.lang.String id,
java.lang.String host,
java.lang.String port)
Constructs an RMI configuration using the specified RMI object registry host and port. |
|
RMIConfiguration(java.lang.String host,
int port)
Constructs an RMI configuration using the specified RMI object registry host and port. |
|
RMIConfiguration(java.lang.String host,
java.lang.String port)
Constructs an RMI configuration using the specified RMI object registry host and port. |
|
RMIConfiguration(java.lang.String id,
java.lang.String host,
java.lang.String port)
Constructs an RMI configuration using the specified RMI object registry host and port. |
|
| Method Summary | |
|---|---|
java.rmi.registry.Registry |
createRegistry()
Creates an RMI registry. |
void |
destroy()
Clears the reference to the RMI registry. |
java.lang.String |
getHost()
Gets the RMI object registry host. |
java.lang.String |
getId()
Gets the ID. |
int |
getPort()
Gets the RMI object registry port. |
java.lang.String |
getPortAsString()
Gets the RMI object registry port as a String. |
java.rmi.registry.Registry |
getRMIRegistry(boolean isCreateIfNotAlreadyStarted)
Gets the RMI object registry associated with the currently specified host/port. |
java.lang.String |
getUrl()
Gets a URL defining the RMI object registry host and port. |
java.lang.String |
getUrl(java.lang.String bindName)
Gets a URL defining the RMI object registry host and port suffixed by the supplied bind name for your RMI service. |
void |
setHost(java.lang.String host)
Sets the RMI object registry host. |
void |
setId(java.lang.String id)
Sets the RMI configuration's ID. |
void |
setPort(java.lang.String port)
Sets the RMI object registry port. |
java.lang.String |
toString()
Gets a URL that represents the RMI registry. |
| Field Detail |
|---|
public static final int DEFAULT_PORT
public static final java.lang.String LOCALHOST
| Constructor Detail |
|---|
public RMIConfiguration(java.lang.String host,
java.lang.String port)
throws InitializationException
host - RMI object registry host.port - RMI object registry port.
InitializationException - if unable to initialize.
public RMIConfiguration(java.lang.String host,
int port)
throws InitializationException
host - RMI object registry host.port - RMI object registry port.
InitializationException - if unable to initialize.
public RMIConfiguration(java.lang.String id,
java.lang.String host,
java.lang.String port)
throws InitializationException
id - Optional value used to identify this configuration. May be null.host - RMI object registry hostport - RMI object registry port
InitializationException - if unable to initialize.
public RMIConfiguration(com.sas.net.ssl.SSLRMISocketFactories sslRMISocketFactories,
java.lang.String id,
java.lang.String host,
java.lang.String port)
throws InitializationException
sslRMISocketFactories - Factory for RMI sockets or null if the
default
socket factory should be used.id - Optional value used to identify this configuration. May be null.host - RMI object registry host.port - RMI object registry port.
InitializationException - if unable to initialize.public RMIConfiguration()
Constants.PORT_DEFAULT_SAS_RMI_REGISTRY.
| Method Detail |
|---|
public final java.rmi.registry.Registry createRegistry()
throws java.rmi.RemoteException
java.rmi.RemoteException - if unable to create an RMI registry.public void destroy()
public final java.lang.String getId()
public final void setId(java.lang.String id)
id - RMI configuration's ID.public final java.lang.String getHost()
public final void setHost(java.lang.String host)
host - RMI object registry host.public final int getPort()
public final java.lang.String getPortAsString()
public final void setPort(java.lang.String port)
throws InitializationException
port - The RMI object registry port number.
InitializationException - if a non-integer value is
encountered as the port number.public final java.lang.String getUrl()
public final java.lang.String getUrl(java.lang.String bindName)
bindName - Name used to bind/lookup an RMI service with the
RMI object registry.
public final java.rmi.registry.Registry getRMIRegistry(boolean isCreateIfNotAlreadyStarted)
throws ServiceException
isCreateIfNotAlreadyStarted - true if an RMI registry should be started if one
is not already running, otherwise false.
ServiceException - if unable to get an RMI registry.public final java.lang.String toString()
toString in class java.lang.Object
|
| Foundation |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||