|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjgroup.arm.ReplicaPingEvent
public class ReplicaPingEvent
Constructor Summary | |
---|---|
ReplicaPingEvent()
Default constructor for externalization |
Method Summary | |
---|---|
int |
getGroupId()
Returns the groupd identifier associated with this event. |
static ReplicaPingEvent |
getNewPingEvent(int gid,
int groupSize)
|
java.lang.Object |
getObject()
Retreive an object associated with this event. |
int |
getPingRate()
Get the ping rate associated with this object. |
void |
handle(DistributionScheme distScheme)
This method must implement the actual handling of the event, as recevied by the replication manager. |
void |
readExternal(java.io.ObjectInput in)
|
java.lang.String |
toString()
|
void |
writeExternal(java.io.ObjectOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ReplicaPingEvent()
Method Detail |
---|
public static ReplicaPingEvent getNewPingEvent(int gid, int groupSize)
gid
- the group identifier of the group renewing its leasegroupSize
- the current size of the grouppublic int getPingRate()
Note that this can only be called on the object created by
the argument constructor, since the pingRate
field
is not serialized.
public void handle(DistributionScheme distScheme)
ARMEvent
handle
in interface ARMEvent
distScheme
- access point to the replication manager for external eventspublic int getGroupId()
ARMEvent
getGroupId
in interface ARMEvent
public java.lang.Object getObject()
ARMEvent
null
if the event internals need not or should
not be exposed externally.
getObject
in interface ARMEvent
public java.lang.String toString()
toString
in class java.lang.Object
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |