|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjgroup.relacs.events.Event
jgroup.relacs.events.DeliveryAck
public final class DeliveryAck
The DeliveryAck
class represents a local message
exchanged between members and the daemon; it is used by the member
to notify the daemon that a message has been successfully delivered.
Field Summary |
---|
Fields inherited from class jgroup.relacs.events.Event |
---|
gid, tag |
Fields inherited from interface jgroup.relacs.events.EventTags |
---|
DAEMON_FAILURE_EVENT, DELIVERY_ACK, DELIVERY_EVENT, INSTALL_ACK, INSTALL_EVENT, JOIN_REQUEST, LEAVE_REQUEST, MEMBER_LEFT_EVENT, MULTICAST_REQUEST, PREPARE_ACK, PREPARE_EVENT |
Constructor Summary | |
---|---|
DeliveryAck()
Default constructor for externalization. |
|
DeliveryAck(int gid,
int hostIndex,
int memberIndex,
int viewIndex,
int mid,
MemberId sender,
java.lang.Object result,
MemberId ackSender)
Creates a DeliveryAck with the specified data. |
Method Summary | |
---|---|
MemberId |
getAckSender()
Returns the sender of this ack message. |
int |
getHostIndex()
Returns the position index of the local host in the array of the hosts contained in the current view. |
int |
getMemberIndex()
Returns the position index of this member in the array of the local members contained in the current view. |
int |
getMessageId()
Returns the message identifier. |
java.lang.Object |
getResult()
Returns the result object associated to the message acknowledgement. |
MemberId |
getSender()
Returns the sender identifier of the original message sender. |
int |
getViewIndex()
Returns the position index of this member in the array of the members contained in the current view. |
void |
readExternal(java.io.ObjectInput in)
Restores the content of this object from the marshalled data contained in the specified input stream. |
java.lang.String |
toString()
Returns a string representation of the object. |
void |
writeExternal(java.io.ObjectOutput out)
Marshals the content of this object to the specified output stream. |
Methods inherited from class jgroup.relacs.events.Event |
---|
getGid, getTag |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DeliveryAck()
public DeliveryAck(int gid, int hostIndex, int memberIndex, int viewIndex, int mid, MemberId sender, java.lang.Object result, MemberId ackSender)
DeliveryAck
with the specified data.
gid
- group identifierhostIndex
- host position in the current viewmemberIndex
- member position in the current viewviewIndex
- mid
- message identifiersender
- sender identifierresult
- result associated to the message acknowledgementMethod Detail |
---|
public int getHostIndex()
public int getMemberIndex()
public int getViewIndex()
public int getMessageId()
public MemberId getSender()
public java.lang.Object getResult()
public MemberId getAckSender()
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
readExternal
in class Event
in
- the stream to be read
java.io.IOException
java.lang.ClassNotFoundException
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
writeExternal
in class Event
out
- the stream to be written
java.io.IOException
public java.lang.String toString()
toString
in class Event
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |