|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jgroup.core.registry.RegistryFactory
public final class RegistryFactory
Class RegistryFactory
is used to obtain a group proxy
for the dependable registry service, or to create a dependable
registry replica on the local machine.
Every instance (replica) of the dependable registry service is associated with a standard RMI registry, which is used to retrieve a group reference for the replicated remote registries.
RelacsRegistryLocator
Method Summary | |
---|---|
static DependableRegistry |
createRegistry()
Creates and exports a dependable registry replica on the local host listening for incoming requests on an the port specified in the system configuration file. |
static DependableRegistry |
createRegistry(java.rmi.server.RMIClientSocketFactory csf,
java.rmi.server.RMIServerSocketFactory ssf)
Creates and exports a dependable registry replica on the local host listening for incoming requests on an the port specified in the system configuration file. |
static LookupRegistry |
getLookupRegistry()
|
static DependableRegistry |
getRegistry()
Returns a proxy for the dependable registry service. |
static DependableRegistry |
getRegistry(java.rmi.server.RMIClientSocketFactory csf)
Returns a proxy for the dependable registry service. |
static void |
setLocator(RegistryLocator reglocator)
Set the registry locator object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void setLocator(RegistryLocator reglocator)
public static DependableRegistry getRegistry() throws java.rmi.RemoteException, JgroupException
java.rmi.RemoteException
- Raised if the proxy could not be obtained.
ConfigurationException
- Raised if there was a problem parsing the distributed system
configuration file.
JgroupException
public static LookupRegistry getLookupRegistry() throws java.rmi.RemoteException, JgroupException
java.rmi.RemoteException
JgroupException
public static DependableRegistry getRegistry(java.rmi.server.RMIClientSocketFactory csf) throws java.rmi.RemoteException, JgroupException
RMIClientSocketFactory
to create socket connections
to the dependable registry on the distributed system and port.
csf
- Client-side socket factory used to make connections to the
dependable registry. If csf
is null, then the
default client-side socket factory will be used.
java.rmi.RemoteException
- Raised if the proxy could not be obtained.
ConfigurationException
- Raised if there was a problem parsing the distributed system
configuration file.
JgroupException
public static DependableRegistry createRegistry() throws java.rmi.RemoteException, JgroupException
java.rmi.RemoteException
- Raised if the registry could not be exported.
JgroupException
- Raised if a registry instance could not be created.
ConfigurationException
- Raised if there was a problem parsing the distributed system
configuration file.public static DependableRegistry createRegistry(java.rmi.server.RMIClientSocketFactory csf, java.rmi.server.RMIServerSocketFactory ssf) throws java.rmi.RemoteException, JgroupException
The new instance of the dependable registry listens to incoming
requests using a ServerSocket
created from the
supplied RMIServerSocketFactory
. A client that
receives a reference to this registry will then use a
Socket
created from the supplied
RMIClientSocketFactory
.
csf
- Client-side Socket
factory used to make connections
to the registry.ssf
- Server-side ServerSocket
factory used to accept
connections to the registry.
java.rmi.RemoteException
- Raised if the registry could not be exported.
JgroupException
- Raised if a registry instance could not be created.
ConfigurationException
- Raised if there was a problem parsing the distributed system
configuration file.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |