|
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 FormField Summary | |
---|---|
static int |
DEFAULT_PORT
Default service registry port. |
static java.lang.String |
LOCALHOST
Local host |
Constructor Summary | |
---|---|
RMIConfiguration()
Constructs a configuration for an rmiregistry operating on the local host on the default port specified by Constants.PORT_DEFAULT_SAS_RMI_REGISTRY . |
|
RMIConfiguration(SSLRMISocketFactories sslRMISocketFactories,
java.lang.String id,
java.lang.String host,
java.lang.String port)
Constructs an RMI configuration using the specified rmiregistry host and port. |
|
RMIConfiguration(java.lang.String host,
int port)
Constructs an RMI configuration using the specified rmiregistry host and port. |
|
RMIConfiguration(java.lang.String host,
java.lang.String port)
Constructs an RMI configuration using the specified rmiregistry host and port. |
|
RMIConfiguration(java.lang.String id,
java.lang.String host,
java.lang.String port)
Constructs an RMI configuration using the specified rmiregistry 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 rmiregistry host. |
java.lang.String |
getId()
Gets the ID. |
int |
getPort()
Gets the rmiregistry port. |
java.lang.String |
getPortAsString()
Gets the rmiregistry port as a String. |
java.rmi.registry.Registry |
getRMIRegistry(boolean isCreateIfNotAlreadyStarted)
Gets the rmiregistry associated with the currently specified host/port. |
java.lang.String |
getUrl()
Gets a URL defining the rmiregistry host and port. |
java.lang.String |
getUrl(java.lang.String bindName)
Gets a URL defining the rmiregistry host and port suffixed by the supplied bind name for your RMI service. |
void |
setHost(java.lang.String host)
Sets the rmiregistry host. |
void |
setId(java.lang.String id)
Sets the RMI configuration's ID. |
void |
setPort(java.lang.String port)
Sets the rmiregistry 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
- rmiregistry host.port
- rmiregistry port.
InitializationException
- if unable to initialize.public RMIConfiguration(java.lang.String host, int port) throws InitializationException
host
- rmiregistry host.port
- rmiregistry 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
- rmiregistry hostport
- rmiregistry port
InitializationException
- if unable to initialize.public RMIConfiguration(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
- rmiregistry host.port
- rmiregistry 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
- rmiregistry host.public final int getPort()
public final java.lang.String getPortAsString()
public final void setPort(java.lang.String port) throws InitializationException
port
- The rmiregistry 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
rmiregistry.
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 |