|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RegistryService
This interface is used by servers to bind and unbind their reference with a specified name from the dependable registry. That is the name to server reference bindings setup through this interface will be stored in the dependable registry. This interface is accessed by server objects (and layers) through the group manager.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface jgroup.core.Layer |
---|
Layer.FinalizeLayer |
Field Summary | |
---|---|
static int |
DEFAULT_LEASE_TIME
The default lease time used by the dependable registry (milliseconds) when clearing out expired leases. |
Method Summary | |
---|---|
IID |
bind()
Bind the server associated with the RegistryLayer
to the object group associated with the name obtained from the
application.xml file in the dependable registry
running in the same distributed system as this group manager. |
IID |
bind(java.lang.Object server)
Bind the given server to the object group associated with the name obtained from the application.xml file in the
dependable registry running in the same distributed system as
this group manager. |
IID |
bind(java.lang.String name,
java.lang.Object server)
Bind the given server to the object group associated with the name in the dependable registry running in the same distributed system as this group manager. |
IID |
bind(java.lang.String name,
java.lang.Object server,
DependableRegistry registry)
Bind the given server to the object group associated with the specified name in the specified dependable registry. |
IID |
getIID()
Returns the local invocation identifier bound to the dependable registry. |
void |
refreshLease()
Refresh the lease for the local server. |
void |
unbind()
Unbind the reference associated with the RegistryLayer
from the dependable registry running in the same distributed system
as this group manager. |
void |
unbind(IID bindId)
Unbind the reference associated with the specified binding identifier from the dependable registry running in the same distributed system as this group manager. |
void |
unbind(IID bindId,
DependableRegistry registry)
Unbind the reference associated with the specified binding identifier from the specified dependable registry. |
Methods inherited from interface jgroup.core.Layer |
---|
addListener |
Field Detail |
---|
static final int DEFAULT_LEASE_TIME
LeaseLayer
is configured in the application layer stack;
otherwise lease expiration checks in the dependable registry is disabled.
Changes to the lease time should be configured in the
applications.xml
configuration file.
LeaseService.DEFAULT_REFRESH_RATE
,
Constant Field ValuesMethod Detail |
---|
IID bind() throws java.rmi.RemoteException, JgroupException
RegistryLayer
to the object group associated with the name obtained from the
application.xml
file in the dependable registry
running in the same distributed system as this group manager.
IID
that can be used to
remove this server binding from the registry.
java.rmi.RemoteException
- Raised when the remote operation failed.
java.rmi.AccessException
- Raised when this operation is not permitted.
JgroupException
- Raised in the event of a group communication failure.IID bind(java.lang.Object server) throws java.rmi.RemoteException, JgroupException
application.xml
file in the
dependable registry running in the same distributed system as
this group manager.
server
- The server in the object group to associated with the given name.
IID
that can be used to
remove this server binding from the registry.
java.rmi.RemoteException
- Raised when the remote operation failed.
java.rmi.AccessException
- Raised when this operation is not permitted.
JgroupException
- Raised in the event of a group communication failure.IID bind(java.lang.String name, java.lang.Object server) throws java.rmi.RemoteException, JgroupException
name
- The name associated with the object group.server
- The server in the object group to associated with the given name.
IID
that can be used to
remove this server binding from the registry.
java.rmi.RemoteException
- Raised when the remote operation failed.
java.rmi.AccessException
- Raised when this operation is not permitted.
JgroupException
- Raised in the event of a group communication failure.IID bind(java.lang.String name, java.lang.Object server, DependableRegistry registry) throws java.rmi.RemoteException, JgroupException
name
- The name associated with the object group.server
- The server in the object group to associated with the given name.registry
- The dependable registry in which to bind the given server.
IID
that can be used to
remove this server binding from the registry.
java.rmi.RemoteException
- Raised when the remote operation failed.
java.rmi.AccessException
- Raised when this operation is not permitted.
JgroupException
- Raised in the event of a group communication failure.void unbind() throws java.rmi.RemoteException, java.rmi.NotBoundException, JgroupException
RegistryLayer
from the dependable registry running in the same distributed system
as this group manager.
java.rmi.RemoteException
- Raised when the remote operation failed.
java.rmi.NotBoundException
- Raised the given binding identifier was not in the dependable registry.
java.rmi.AccessException
- Raised when this operation is not permitted.
JgroupException
- Raised in the event of a group communication failure.void unbind(IID bindId) throws java.rmi.RemoteException, java.rmi.NotBoundException, JgroupException
bindId
- The binding identifier to be removed from the dependable registry.
java.rmi.RemoteException
- Raised when the remote operation failed.
java.rmi.NotBoundException
- Raised the given binding identifier was not in the dependable registry.
java.rmi.AccessException
- Raised when this operation is not permitted.
JgroupException
- Raised in the event of a group communication failure.void unbind(IID bindId, DependableRegistry registry) throws java.rmi.RemoteException, java.rmi.NotBoundException
bindId
- The binding identifier to be removed from the dependable registry.registry
- The dependable registry from which to unbind the given binding.
java.rmi.RemoteException
- Raised when the remote operation failed.
java.rmi.NotBoundException
- Raised the given binding identifier was not in the dependable registry.
java.rmi.AccessException
- Raised when this operation is not permitted.
JgroupException
- Raised in the event of a group communication failure.void refreshLease() throws java.rmi.RemoteException, JgroupException
java.rmi.RemoteException
- Raised when the remote operation failed.
JgroupException
- Raised in the event of a group communication failure.IID getIID() throws java.lang.NullPointerException
unbind()
the associated server from
the dependable registry.
java.lang.NullPointerException
- Raised if the replica is not yet bound to the dependable registry.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |