|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjgroup.relacs.gm.NotifyLayer
public class NotifyLayer
The NotifyLayer
class keeps track of IIDs in
the current view, and compares this to the previous. If any
differences are found, the NotifyLayer
will
invoke an unbind on the dependable registry.
Note that for this layer should occur before the recovery
layer in the layer stack. This is since otherwise we may
introduce a delay in the recovery layer view handling, and
this may lead this layer to perform IGMI multicasts in such
a manner that the membership service is unable to conclude
a new view agreement protocol that has already been started,
while processing the view in the recovery layer.
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 |
Constructor Summary | |
---|---|
NotifyLayer(GroupManager gm,
RegistryService rs,
MembershipService ms)
Initializes a NotifyLayer |
Method Summary | |
---|---|
void |
addListener(java.lang.Object listener)
Add a listener to this layer. |
void |
complete(java.lang.Object server)
Complete the replica initialization, once all group manager components have been initialized. |
java.lang.Object |
getIID()
This method returns the IID for this layer |
static NotifyLayer |
getLayer(GroupManager gm,
RegistryService rs,
MembershipService ms,
InternalGMIService igmi)
|
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)
The viewChange() method is invoked on the whole server group when a view change occur. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NotifyLayer(GroupManager gm, RegistryService rs, MembershipService ms)
Method Detail |
---|
public static NotifyLayer getLayer(GroupManager gm, RegistryService rs, MembershipService ms, InternalGMIService igmi)
public void addListener(java.lang.Object listener)
Layer
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 complete(java.lang.Object server) throws JgroupException
complete
in interface Layer.FinalizeLayer
server
- The server using a layer implementing the FinalizeLayer
interface.
JgroupException
- Thrown if the layer could not be completed.public java.lang.Object getIID() throws java.rmi.RemoteException
getIID
in interface InternalNotification
java.rmi.RemoteException
public void viewChange(View view)
viewChange
in interface MembershipListener
view
- The new view that has been installed.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 |