|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjgroup.arm.RecoveryLayer
public class RecoveryLayer
Recovery layer for providing the replication manager with view
change events from groups assoicated with the replication manager.
Note that the RecoveryListener
does not provide any
upcalls (it is only a marker interface), thus to listen for view
change events, the replica should implement the
MembershipListener
. A server using the recovery layer
need not implement the RecoveryListener
, instead it
simply needs to specify "Recovery" in the layer stack.
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 |
Method Summary | |
---|---|
void |
addListener(java.lang.Object listener)
Add a listener for membership events. |
static RecoveryLayer |
getLayer(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 |
viewChange(View view)
Upcall that is invoked by the MembershipLayer when a view change occur in this replica's object group. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static RecoveryLayer getLayer(MembershipService pgms) throws JgroupException, java.rmi.RemoteException
JgroupException
java.rmi.RemoteException
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 void viewChange(View view)
viewChange
in interface MembershipListener
view
- The new view object group.MembershipService
public void hasLeft()
MembershipListener
leave
method has been invoked on the group membership
service.
hasLeft
in interface MembershipListener
MembershipService
public void prepareChange()
MembershipListener
prepareChange
in interface MembershipListener
MembershipService
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |