|
| Services |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
java.lang.Object | +--com.sas.services.deployment.RMIConfiguration
RMI configuration that defines an rmiregistry host/port deployment configuration.
RMIBinding, Serialized Form| Field Summary | |
static int |
DEFAULT_PORT
Default service registry port. |
static String |
LOCALHOST
Local host |
| Constructor Summary | |
RMIConfiguration()
Constructs a configuration for an rmiregistry operating on the local host on the default port 1099. |
|
RMIConfiguration(String host,
int port)
Constructs an RMI configuration using the specified rmiregistry host and port. |
|
RMIConfiguration(String host,
String port)
Constructs an RMI configuration using the specified rmiregistry host and port. |
|
RMIConfiguration(String id,
String host,
String port)
Constructs an RMI configuration using the specified rmiregistry host and port. |
|
| Method Summary | |
Registry |
createRegistry()
Creates an RMI registry. |
String |
getHost()
Gets the rmiregistry host. |
String |
getId()
Gets the ID. |
int |
getPort()
Gets the rmiregistry port. |
String |
getPortAsString()
Gets the rmiregistry port as a String. |
Registry |
getRegistry()
Gets the rmiregistry associated with the currently specified host/port. |
Registry |
getRegistry(boolean isCreateRegistryIfOneNotAvailable)
Gets the rmiregistry associated with the currently specified host/port. |
String |
getUrl()
Gets a URL defining the rmiregistry host and port. |
String |
getUrl(String bindName)
Gets a URL defining the rmiregistry host and port suffixed by the supplied bind name for your RMI service. |
void |
setHost(String host)
Sets the rmiregistry host. |
void |
setId(String id)
Sets the RMI configuration's ID. |
void |
setPort(String port)
Sets the rmiregistry port. |
String |
toString()
Gets a string representation of this instance. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int DEFAULT_PORT
public static final String LOCALHOST
| Constructor Detail |
public RMIConfiguration(String host,
String port)
throws InitializationException
host - rmiregistry host.port - rmiregistry port.InitializationException - if unable to initialize.
public RMIConfiguration(String host,
int port)
throws InitializationException
host - rmiregistry host.port - rmiregistry port.InitializationException - if unable to initialize.
public RMIConfiguration(String id,
String host,
String port)
throws InitializationException
id - IDhost - rmiregistry hostport - rmiregistry portInitializationException - if unable to initialize.public RMIConfiguration()
| Method Detail |
public final Registry createRegistry()
throws RemoteException
RemoteException - if unable to create an RMI registry.public final String getId()
public final void setId(String id)
id - RMI configuration's ID.public final String getHost()
public final void setHost(String host)
host - rmiregistry host.public final int getPort()
public final String getPortAsString()
public final void setPort(String port)
throws InitializationException
port - The rmiregistry port number.InitializationException - if a non-integer value is
encountered as the port number.public final String getUrl()
public final String getUrl(String bindName)
bindName - Name used to bind/lookup an RMI service with the
rmiregistry.public final Registry getRegistry()
null if an RMI registry is not
running on the specified host/port.public final Registry getRegistry(boolean isCreateRegistryIfOneNotAvailable)
isCreateRegistryIfOneNotAvailable - true if an RMI registry should be started if one
is not already running, otherwise false.null if an RMI registry is not
running on the specified host/port.public final String toString()
toString in class Object
|
| Services |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||