Package com.j_spaces.core
Interface IJSpaceContainer
- All Superinterfaces:
Remote
- All Known Implementing Classes:
JSpaceContainerImpl,LRMIJSpaceContainer
Deprecated.
Since 8.0 - This interface is reserved for internal usage only.
- Since:
- 1.0
- Version:
- 5.1
- Author:
- Igor Goldenberg
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetClusteredSpace(String spaceName) Deprecated.getName()Deprecated.Returns the name of this container.Deprecated.String[]Deprecated.getURL()Deprecated.Returns theSpaceURLinstance which was used to initialize the space.voidping()Deprecated.Checks whether the container is alive and accessible.voidshutdown()Deprecated.
-
Method Details
-
getName
Deprecated.Returns the name of this container.- Returns:
- the name of this container.
- Throws:
RemoteException- if a communication error occurs
-
getURL
Deprecated.Returns 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.- Returns:
SpaceURLwhich initialized that specific space instance.- Throws:
RemoteException
-
ping
Deprecated.Checks 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"); }- Throws:
RemoteException- when container was unreachable
-
getSpaceNames
Deprecated.Returns the names of the spaces that belong to this container.- Returns:
- String[] the names of the spaces that belong to this container.
- Throws:
RemoteException- if a communication error occurs
-
getSpace
Deprecated.Returns a proxy of the specified space.- 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
-
getClusteredSpace
Deprecated.Returns a clustered proxy of the specified space.- 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
-
shutdown
Deprecated.Shuts down this container. This also involves unregistering all registered spaces from Lookup services and closing connections to storage adapters.- Throws:
RemoteException- if a communication error occurs
-