@PublicAPI public final class RMNodeEvent extends RMEvent
RMNode
This immutable event object is thrown to all Resource Manager Monitors to inform them
about a Node's state modification.
This event can be:
RMNodeSourceEvent
contains all information about its related RMNode
.RMMonitoring
,
Serialized FormConstructor and Description |
---|
RMNodeEvent()
ProActive empty constructor
|
RMNodeEvent(RMEventType eventType,
NodeState state) |
RMNodeEvent(RMEventType eventType,
NodeState state,
NodeState previousState) |
RMNodeEvent(RMNodeDescriptor rmNode)
Creates a node event object without previous node state.
|
RMNodeEvent(RMNodeDescriptor rmNode,
RMEventType eventType,
NodeState previousNodeState,
String initiator)
Creates a node event object with a previous node state.
|
RMNodeEvent(String nodeUrl,
long counter) |
RMNodeEvent(String nodeUrl,
long counter,
RMEventType eventType) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Compare two RMNodeEvent objects.
|
String |
getDefaultJMXUrl()
Gets the node default JMX url.
|
String |
getDescription() |
String |
getHostName()
Returns host name of the node.
|
String |
getKey() |
long |
getLockTime() |
String |
getNodeInfo()
Gets information about the associated node
|
String |
getNodeLocker() |
String |
getNodeOwner()
Gets the owner of the node (who currently running computations on it)
|
String |
getNodeProvider()
Gets the provider of the node (who created and deployed it)
|
String |
getNodeSource()
Returns
NodeSource name of the node |
NodeState |
getNodeState()
Returns the state of the node related to this event.
|
String |
getNodeUrl()
Returns node's URL.
|
String |
getPADName() |
NodeState |
getPreviousNodeState()
Returns the previous state of the node related to this event.
|
String |
getProactiveJMXUrl()
Gets the node proactive JMX url.
|
List<String> |
getTokens() |
Map<String,String> |
getUsageInfo() |
String |
getVMName()
Returns java Virtual machine name of the node.
|
String |
getVnName() |
int |
hashCode() |
boolean |
isLocked() |
String |
toString() |
clone, compareTo, getCounter, getEventType, getFirstCounter, getRMUrl, getTimeStamp, getTimeStampFormatted, setCounter, setRMUrl
public RMNodeEvent()
public RMNodeEvent(String nodeUrl, long counter)
public RMNodeEvent(String nodeUrl, long counter, RMEventType eventType)
public RMNodeEvent(RMNodeDescriptor rmNode)
rmNode
- the node concerned by this eventpublic RMNodeEvent(RMNodeDescriptor rmNode, RMEventType eventType, NodeState previousNodeState, String initiator)
rmNode
- the node concerned by this eventeventType
- the resource manager event typepreviousNodeState
- the previous state of the node concerned by this eventinitiator
- the client which initiates the eventpublic RMNodeEvent(RMEventType eventType, NodeState state)
public RMNodeEvent(RMEventType eventType, NodeState state, NodeState previousState)
public String getKey()
public boolean equals(Object obj)
public String getNodeUrl()
public String getNodeSource()
NodeSource
name of the nodepublic String getPADName()
public String getVnName()
public String getHostName()
public String getVMName()
public NodeState getNodeState()
public NodeState getPreviousNodeState()
public String getNodeProvider()
public String getNodeOwner()
public String toString()
toString
in class RMEvent
Object.toString()
public String getNodeInfo()
public String getDefaultJMXUrl()
public String getProactiveJMXUrl()
public boolean isLocked()
public long getLockTime()
public String getNodeLocker()
public String getDescription()