@Deprecated public interface IJSpaceContainer extends Remote
IJSpace
,
SpaceFinder
Modifier and Type | Method and Description |
---|---|
IJSpace |
getClusteredSpace(String spaceName)
Deprecated.
|
String |
getName()
Deprecated.
Returns the name of this container.
|
IJSpace |
getSpace(String spaceName)
Deprecated.
|
String[] |
getSpaceNames()
Deprecated.
|
SpaceURL |
getURL()
Deprecated.
Returns the
SpaceURL instance which was used to initialize the space. |
void |
ping()
Deprecated.
Checks whether the container is alive and accessible.
|
void |
shutdown()
Deprecated.
|
String getName() throws RemoteException
RemoteException
- if a communication error occursSpaceURL getURL() throws RemoteException
SpaceURL
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.
SpaceURL
which initialized that specific space instance.RemoteException
void ping() throws RemoteException
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");
}
RemoteException
- when container was unreachable@Deprecated String[] getSpaceNames() throws RemoteException
RemoteException
- if a communication error occurs@Deprecated IJSpace getSpace(String spaceName) throws NoSuchNameException, RemoteException
spaceName
- the name of the space.NoSuchNameException
- if the specified space does not exist in this container.RemoteException
- if a communication error occurs@Deprecated IJSpace getClusteredSpace(String spaceName) throws NoSuchNameException, RemoteException
spaceName
- the name of the space.NoSuchNameException
- if the specified space does not exist in this container.RemoteException
- if a communication error occurs@Deprecated void shutdown() throws RemoteException
RemoteException
- if a communication error occursCopyright © GigaSpaces.