Package com.j_spaces.core
Class LRMIJSpaceContainer
- All Implemented Interfaces:
ILRMIProxy,SmartExternalizable,IJSpaceContainerAdmin,IJSpaceContainer,Externalizable,Serializable,Remote
public class LRMIJSpaceContainer
extends RemoteStub<IJSpaceContainer>
implements IJSpaceContainer, IJSpaceContainerAdmin
LRMI Stub implementation of
IJSpaceContainer, IJSpaceContainerAdmin,
LifeCycle,Service interface.- Since:
- 7.0
- Author:
- eitany
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLRMIJSpaceContainer(IJSpaceContainer directObjRef, IJSpaceContainer dynamicProxy, String name) -
Method Summary
Modifier and TypeMethodDescriptiongetClusteredSpace(String spaceName) Returns a clustered proxy of the specified space.Get container configuration.getName()Returns the name of this container.Returns runtime configuration report: dump of the overall system configurations (spaces, container, cluster), system env, sys properties.Returns a proxy of the specified space.String[]Returns the names of the spaces that belong to this container.getURL()Returns theSpaceURLinstance which was used to initialize the space.voidping()Checks whether the container is alive and accessible.voidsetConfig(ContainerConfig config) Set new container configuration.voidshutdown()Shuts down this container.Methods inherited from class com.gigaspaces.lrmi.RemoteStub
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, writeExternalMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.gigaspaces.serialization.SmartExternalizable
enabledSmartExternalizableWithReference
-
Field Details
-
isEmbeddedShutdownInvocation
-
-
Constructor Details
-
LRMIJSpaceContainer
public LRMIJSpaceContainer() -
LRMIJSpaceContainer
public LRMIJSpaceContainer(IJSpaceContainer directObjRef, IJSpaceContainer dynamicProxy, String name)
-
-
Method Details
-
getClusteredSpace
Description copied from interface:IJSpaceContainerReturns a clustered proxy of the specified space.- Specified by:
getClusteredSpacein interfaceIJSpaceContainer- Parameters:
spaceName- the name of the space.- Returns:
- IJSpace clustered space proxy.
- Throws:
NoSuchNameException- if the specified space does not exist in this container.RemoteException- if a communication error occurs
-
getName
Description copied from interface:IJSpaceContainerReturns the name of this container.- Specified by:
getNamein interfaceIJSpaceContainer- Specified by:
getNamein interfaceIJSpaceContainerAdmin- Returns:
- the name of this container.
- Throws:
RemoteException- if a communication error occurs
-
getSpace
Description copied from interface:IJSpaceContainerReturns a proxy of the specified space.- Specified by:
getSpacein interfaceIJSpaceContainer- Parameters:
spaceName- the name of the space.- Returns:
- IJSpace space proxy.
- Throws:
NoSuchNameException- if the specified space does not exist in this container.RemoteException- if a communication error occurs
-
getSpaceNames
Description copied from interface:IJSpaceContainerReturns the names of the spaces that belong to this container.- Specified by:
getSpaceNamesin interfaceIJSpaceContainer- Returns:
- String[] the names of the spaces that belong to this container.
- Throws:
RemoteException- if a communication error occurs
-
getURL
Description copied from interface:IJSpaceContainerReturns theSpaceURLinstance which was used to initialize the space.Notice: The
SpaceURLobject contains information on the space and container configuration/setup such as space url used, space/container/cluster schema used and other attributes.The
IJSpacekeeps also its reference of the SpaceURL which launched the container.- Specified by:
getURLin interfaceIJSpaceContainer- Returns:
SpaceURLwhich initialized that specific space instance.- Throws:
RemoteException
-
ping
Description copied from interface:IJSpaceContainerChecks whether the container is alive and accessible.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"); }- Specified by:
pingin interfaceIJSpaceContainer- Throws:
RemoteException- when container was unreachable
-
shutdown
Description copied from interface:IJSpaceContainerShuts down this container. This also involves unregistering all registered spaces from Lookup services and closing connections to storage adapters.- Specified by:
shutdownin interfaceIJSpaceContainer- Throws:
RemoteException- if a communication error occurs
-
getConfig
Description copied from interface:IJSpaceContainerAdminGet container configuration.- Specified by:
getConfigin interfaceIJSpaceContainerAdmin- Returns:
- ContainerConfig The container config structure.
- Throws:
RemoteException- Failed to retrieve container configuration.
-
getRuntimeConfigReport
Description copied from interface:IJSpaceContainerAdminReturns runtime configuration report: dump of the overall system configurations (spaces, container, cluster), system env, sys properties.- Specified by:
getRuntimeConfigReportin interfaceIJSpaceContainerAdmin- Returns:
- runtime configuration report
- Throws:
RemoteException- Failed to get runtime configuration report.
-
setConfig
Description copied from interface:IJSpaceContainerAdminSet new container configuration.- Specified by:
setConfigin interfaceIJSpaceContainerAdmin- Parameters:
config- The container config structure.- Throws:
RemoteException- Failed to set new container configuration.
-