public class LRMIJSpaceContainer extends RemoteStub<IJSpaceContainer> implements IJSpaceContainer, IJSpaceContainerAdmin
IJSpaceContainer, IJSpaceContainerAdmin,
LifeCycle,Service interface.| Modifier and Type | Field and Description |
|---|---|
static ThreadLocal<Boolean> |
isEmbeddedShutdownInvocation |
| Constructor and Description |
|---|
LRMIJSpaceContainer() |
LRMIJSpaceContainer(IJSpaceContainer directObjRef,
IJSpaceContainer dynamicProxy,
String name) |
| Modifier and Type | Method and Description |
|---|---|
IJSpace |
getClusteredSpace(String spaceName)
Returns a clustered proxy of the specified space.
|
ContainerConfig |
getConfig()
Get container configuration.
|
String |
getName()
Returns the name of this container.
|
String |
getRuntimeConfigReport()
Returns runtime configuration report: dump of the overall system configurations (spaces,
container, cluster), system env, sys properties.
|
IJSpace |
getSpace(String spaceName)
Returns a proxy of the specified space.
|
String[] |
getSpaceNames()
Returns the names of the spaces that belong to this container.
|
SpaceURL |
getURL()
Returns the
SpaceURL instance which was used to initialize the space. |
void |
ping()
Checks whether the container is alive and accessible.
|
void |
setConfig(ContainerConfig config)
Set new container configuration.
|
void |
shutdown()
Shuts down this container.
|
closeProxy, disable, enable, equals, getConnectionUrl, getDynamicProxy, getGeneratedTraffic, getProxy, getReceivedTraffic, getRemoteHostAddress, getRemoteHostName, getRemoteNetworkAddress, getRemoteProcessId, getServicePlatformLogicalVersion, getStubId, hashCode, init, isClosed, isCollocated, isCollocatedStub, isDirect, isRemote, isStub, overrideMethodsMetadata, readExternal, toString, writeExternalclone, finalize, getClass, notify, notifyAll, wait, wait, waitenabledSmartExternalizableWithReferencepublic static final ThreadLocal<Boolean> isEmbeddedShutdownInvocation
public LRMIJSpaceContainer()
public LRMIJSpaceContainer(IJSpaceContainer directObjRef, IJSpaceContainer dynamicProxy, String name)
public IJSpace getClusteredSpace(String spaceName) throws NoSuchNameException, RemoteException
IJSpaceContainergetClusteredSpace in interface IJSpaceContainerspaceName - the name of the space.NoSuchNameException - if the specified space does not exist in this container.RemoteException - if a communication error occurspublic String getName() throws RemoteException
IJSpaceContainergetName in interface IJSpaceContainerAdmingetName in interface IJSpaceContainerRemoteException - Failed to retrieve container name.public IJSpace getSpace(String spaceName) throws NoSuchNameException, RemoteException
IJSpaceContainergetSpace in interface IJSpaceContainerspaceName - the name of the space.NoSuchNameException - if the specified space does not exist in this container.RemoteException - if a communication error occurspublic String[] getSpaceNames() throws RemoteException
IJSpaceContainergetSpaceNames in interface IJSpaceContainerRemoteException - if a communication error occurspublic SpaceURL getURL() throws RemoteException
IJSpaceContainerSpaceURL instance which was used to initialize the space. Notice: The
SpaceURL object contains information on the space and container configuration/setup
such as space url used, space/container/cluster schema used and other attributes.
The
IJSpace keeps also its reference of the SpaceURL which launched the container.
getURL in interface IJSpaceContainerSpaceURL which initialized that specific space instance.RemoteExceptionpublic void ping()
throws RemoteException
IJSpaceContainer
IJSpaceContainer aContainer = (IJSpaceContainer)SpaceFinder.find("jini://lookup-host/container-name");
try{
aContainer.ping();
System.out.println("Container alive");
}
catch (java.rmi.RemoteException re) {
System.out.println("Container unreachable");
}
ping in interface IJSpaceContainerRemoteException - when container was unreachablepublic void shutdown()
throws RemoteException
IJSpaceContainershutdown in interface IJSpaceContainerRemoteException - if a communication error occurspublic ContainerConfig getConfig() throws RemoteException
IJSpaceContainerAdmingetConfig in interface IJSpaceContainerAdminRemoteException - Failed to retrieve container configuration.public String getRuntimeConfigReport() throws RemoteException
IJSpaceContainerAdmingetRuntimeConfigReport in interface IJSpaceContainerAdminRemoteException - Failed to get runtime configuration report.public void setConfig(ContainerConfig config) throws RemoteException
IJSpaceContainerAdminsetConfig in interface IJSpaceContainerAdminconfig - The container config structure.RemoteException - Failed to set new container configuration.Copyright © GigaSpaces.