|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jgroup.relacs.gmi.GroupAckListenerOld
public class GroupAckListenerOld
Handler for multicast return messages from all members of the current view.
Field Summary | |
---|---|
protected boolean[] |
completed
Flag completed servers |
protected java.lang.Object[] |
results
Results from servers |
Constructor Summary | |
---|---|
GroupAckListenerOld(java.lang.Object lockObj)
|
Method Summary | |
---|---|
void |
ack(MemberId id,
int pos,
java.lang.Object obj)
Upcalls invoked by Jgroup to notify the ack listener that the member identified by id has responded with obj to the multicast message associated with this ack listener. |
java.lang.Object |
getLeaderResult()
Retrieves the invocation result obtained from the leader. |
AckListener |
getRemoteAckListener()
Get a reference for the remote AckListener . |
java.lang.Object |
getResult()
Retrieves the invocation result of any completed member. |
java.lang.Object[] |
getResults()
Retrieves the whole array of invocation results (from all members). |
void |
notifyView(View view)
Upcalls invoked by Jgroup to notify the ack listener about the view in which the multicast message is delivered. |
protected void |
pendingCompletion()
Blocks until the state of the listener is COMPLETED . |
java.lang.String |
toString()
|
void |
viewChange()
Upcalls invoked by Jgroup to notify the ack listener that a new view has been installed after the view in which the message has been delivered. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.Object[] results
protected boolean[] completed
Constructor Detail |
---|
public GroupAckListenerOld(java.lang.Object lockObj)
Method Detail |
---|
public AckListener getRemoteAckListener() throws java.rmi.server.ExportException
AckListener
.
AckListener
.
java.rmi.server.ExportException
- Raised if the AckListener
could not be exported.public void ack(MemberId id, int pos, java.lang.Object obj) throws java.rmi.RemoteException
AckListener
Member id is contained in the view notified by notifyView.
ack
in interface AckListener
id
- the identifier of the member responding to the
multicast messagepos
- position of the member in the last installed viewobj
- the response message
java.rmi.RemoteException
public void notifyView(View view) throws java.rmi.RemoteException
AckListener
This property corresponds to the Same View Delivery property of the GCS-Survery paper of Chockler et al, which states that all those who deliver a message must do so in the same view, however without requiring that this occur in the same view as it was sent.
notifyView
in interface AckListener
view
- the view in which the multicast message is
delivered
java.rmi.RemoteException
public void viewChange() throws java.rmi.RemoteException
AckListener
viewChange
in interface AckListener
java.rmi.RemoteException
public java.lang.Object getResult()
public java.lang.Object getLeaderResult()
public java.lang.Object[] getResults()
Exception
s.
protected void pendingCompletion()
COMPLETED
.
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |