|
||||||||||
| 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.InstallEvent
public final class InstallEvent
The InstallEvent class represents a local message
exchanged between members and the daemon; it is used by a daemon
to notify members about a view to be installed.
| 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 | |
|---|---|
InstallEvent()
Default constructor for externalization. |
|
InstallEvent(int gid,
View view,
int hostIndex,
int memberIndex)
Constructs a new view to be installed. |
|
| Method Summary | |
|---|---|
int |
getHostIndex()
Returns the position index of the local host in the array containing the hosts of the current view. |
int |
getMemberIndex()
Returns the position index of the member that generated this event in the array containing the members of the current view. |
View |
getView()
Returns the view to be installed |
void |
readExternal(java.io.ObjectInput in)
Restores the content of this object from the marshalled data contained in the specified input stream. |
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, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public InstallEvent()
public InstallEvent(int gid,
View view,
int hostIndex,
int memberIndex)
| Method Detail |
|---|
public int getHostIndex()
public int getMemberIndex()
public View getView()
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.ExternalizablereadExternal in class Eventin - 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.ExternalizablewriteExternal in class Eventout - the stream to be written
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||