@PublicAPI public class RMEvent extends Object implements Serializable, Cloneable, Comparable<RMEvent>
Modifier and Type | Field and Description |
---|---|
protected long |
counter
event count sent to this client during the session
|
protected long |
firstCounter
smallest counter among the set of events with equal nodeUrl or nodeSourceName
smallest possible counter is zero so that is why we initilize it like this
|
protected String |
initiator
the resource manager client which initiates the event
|
protected long |
timeStamp |
protected RMEventType |
type |
Constructor and Description |
---|
RMEvent()
ProActive empty constructor
|
RMEvent(long counter) |
RMEvent(RMEventType type)
Creates the node event object.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
int |
compareTo(RMEvent event) |
boolean |
equals(Object o) |
long |
getCounter()
Gets the number of events sent to a client during the current session.
|
RMEventType |
getEventType()
Gets the type of event @see RMEventType
|
long |
getFirstCounter() |
String |
getKey() |
String |
getRMUrl()
Returns the RM's URL of the event.
|
long |
getTimeStamp()
Gets the time of event creation
|
String |
getTimeStampFormatted()
Gets the formatted time of event creation
|
int |
hashCode() |
void |
setCounter(long counter)
Sets the number of events sent to a client during the current session.
|
void |
setRMUrl(String RMURL)
Set the RM's URL of the event.
|
String |
toString() |
protected RMEventType type
protected String initiator
protected long timeStamp
protected long counter
protected long firstCounter
public RMEvent()
public RMEvent(long counter)
public RMEvent(RMEventType type)
public long getFirstCounter()
public String getRMUrl()
public void setRMUrl(String RMURL)
RMURL
- URL of the RM to setpublic RMEventType getEventType()
public long getTimeStamp()
public String getTimeStampFormatted()
public String getKey()
public long getCounter()
public void setCounter(long counter)
counter
- to setpublic String toString()
toString
in class Object
Object.toString()
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public int compareTo(RMEvent event)
compareTo
in interface Comparable<RMEvent>