|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jgroup.relacs.registry.RegistryLayer
public class RegistryLayer
This layer implements the registry service interface, allowing the server associated with the local group manager, or layers within the group manager to gain access to the content of the dependable registry.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface jgroup.core.Layer |
---|
Layer.FinalizeLayer |
Nested classes/interfaces inherited from interface jgroup.core.MembershipListener |
---|
MembershipListener.AllowDuplicateViews |
Field Summary |
---|
Fields inherited from interface jgroup.core.registry.RegistryService |
---|
DEFAULT_LEASE_TIME |
Method Summary | |
---|---|
void |
addListener(java.lang.Object listener)
This method does not need to do any processing since the RegistryListener interface is an empty marker. |
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. |
static RegistryLayer |
getLayer(ExternalGMIService egmis,
MembershipService pgms)
|
void |
hasLeft()
Upcall that is invoked by Jgroup to acknowledge the fact that this object has left the group. |
void |
prepareChange()
Upcall that is invoked by the group membership service to notify that the current view is not valid any more, and the group membership service is trying to reach an agreement on a new view. |
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 bid)
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 bid,
DependableRegistry registry)
Unbind the reference associated with the specified binding identifier from the specified dependable registry. |
void |
viewChange(View view)
Bind the local server with the dependable registry if: it has not already been bound, it is configured to auto bind and if the this view represents a fully replicated service view. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static RegistryLayer getLayer(ExternalGMIService egmis, MembershipService pgms)
public void addListener(java.lang.Object listener)
addListener
in interface Layer
listener
- An Object
representation of the listener interface.
This will typically be cast to the appropriate listener interface
type after checking the type with the instanceof operator.public IID bind() throws java.rmi.RemoteException, JgroupException
RegistryService
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.
bind
in interface RegistryService
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.public IID bind(java.lang.Object server) throws java.rmi.RemoteException, JgroupException
RegistryService
application.xml
file in the
dependable registry running in the same distributed system as
this group manager.
bind
in interface RegistryService
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.public IID bind(java.lang.String name, java.lang.Object server) throws java.rmi.RemoteException, JgroupException
RegistryService
bind
in interface RegistryService
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.public IID bind(java.lang.String name, java.lang.Object server, DependableRegistry registry) throws java.rmi.RemoteException, JgroupException
RegistryService
bind
in interface RegistryService
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.public void unbind() throws java.rmi.RemoteException, java.rmi.NotBoundException, JgroupException
RegistryService
RegistryLayer
from the dependable registry running in the same distributed system
as this group manager.
unbind
in interface RegistryService
java.rmi.RemoteException
- Raised when the remote operation failed.
java.rmi.AccessException
- Raised when this operation is not permitted.
java.rmi.NotBoundException
- Raised the given binding identifier was not in the dependable registry.
JgroupException
- Raised in the event of a group communication failure.public void unbind(IID bid) throws java.rmi.RemoteException, java.rmi.NotBoundException, JgroupException
RegistryService
unbind
in interface RegistryService
bid
- The binding identifier to be removed from the dependable registry.
java.rmi.RemoteException
- Raised when the remote operation failed.
java.rmi.AccessException
- Raised when this operation is not permitted.
java.rmi.NotBoundException
- Raised the given binding identifier was not in the dependable registry.
JgroupException
- Raised in the event of a group communication failure.public void unbind(IID bid, DependableRegistry registry) throws java.rmi.RemoteException, java.rmi.NotBoundException
RegistryService
unbind
in interface RegistryService
bid
- 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.AccessException
- Raised when this operation is not permitted.
java.rmi.NotBoundException
- Raised the given binding identifier was not in the dependable registry.public void refreshLease() throws java.rmi.RemoteException, JgroupException
RegistryService
refreshLease
in interface RegistryService
java.rmi.RemoteException
- Raised when the remote operation failed.
JgroupException
- Raised in the event of a group communication failure.public IID getIID() throws java.lang.NullPointerException
RegistryService
unbind()
the associated server from
the dependable registry.
getIID
in interface RegistryService
java.lang.NullPointerException
- Raised if the replica is not yet bound to the dependable registry.public void viewChange(View view)
viewChange
in interface MembershipListener
view
- The new view that has been installed.MembershipListener.viewChange(jgroup.core.View)
public void prepareChange()
MembershipListener
prepareChange
in interface MembershipListener
MembershipService
public void hasLeft()
MembershipListener
leave
method has been invoked on the group membership
service.
hasLeft
in interface MembershipListener
MembershipService
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |