|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjgroup.relacs.events.Event
public class Event
The Event
class is the common superclass for all events
that may be exchanged between the daemon and members. Different
types of events are distinguished using an integer tag, that may be
obtained using method getTag()
. Each event is
associated to a group identifier, that may be obtained using method
getGid()
. The group identifier is needed because an
application may be member of most than one group at a time.
Field Summary | |
---|---|
protected int |
gid
Group identifier |
protected int |
tag
Tag identifying the event |
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 | |
---|---|
Event()
Default constructor for externalization. |
|
Event(int tag,
int gid)
Constructs a new generic Event object. |
Method Summary | |
---|---|
int |
getGid()
Returns the group identifier associated with this event. |
int |
getTag()
Returns the tag identifying this event. |
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()
|
void |
writeExternal(java.io.ObjectOutput out)
Marshals the content of this object to the specified output stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int tag
protected int gid
Constructor Detail |
---|
public Event()
public Event(int tag, int gid)
Event
object.
tag
- tag identifying the eventgid
- group identifierMethod Detail |
---|
public int getTag()
public int getGid()
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
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
out
- the stream to be written
java.io.IOException
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 |