public interface RMNode extends Comparable<RMNode>
NodeSource
,
and its state in the Resource Manager :SelectionScript
objects. Each node memorize results of executed scripts, in order to
answer faster to a selection already asked.NodeSource
,
SelectionScript
Modifier and Type | Method and Description |
---|---|
void |
addToken(String token) |
void |
clean()
Cleaning method : remove all active objects on this node.
|
RMNodeEvent |
createNodeEvent() |
RMNodeEvent |
createNodeEvent(RMEventType eventType,
NodeState previousNodeState,
String initiator) |
<T> ScriptResult<T> |
executeScript(Script<T> script,
Map<String,Serializable> bindings)
|
RMNodeEvent |
getAddEvent()
Returns the id of the add event
RMNodeEvent . |
Permission |
getAdminPermission()
Gets the permission which defines who can remove this node.
|
String |
getDescriptorVMName()
This method call nodeInformation.getDescriptorVMName();
|
String |
getHostName()
This method call nodeInformation.getHostName();
|
String |
getJMXUrl(JMXTransportProtocol protocol)
Gets the JMX url of the node.
|
String[] |
getJmxUrls()
Gets the JMX urls of the node.
|
RMNodeEvent |
getLastEvent()
Returns the id of the last event
RMNodeEvent . |
Client |
getLockedBy()
Returns the client who has locked the node.
|
long |
getLockTime()
Returns the timestamp at which the node has been locked.
|
org.objectweb.proactive.core.node.Node |
getNode()
Gives the node object related.
|
String |
getNodeInfo() |
String |
getNodeName()
Returns the name of the node.
|
NodeSource |
getNodeSource()
Returns the Stub of the
NodeSource that handles the node. |
String |
getNodeSourceName()
Returns the NodeSource name of the node.
|
Set<String> |
getNodeTags() |
List<String> |
getNodeTokens() |
String |
getNodeURL()
Returns the unique ID of the node.
|
Client |
getOwner()
Gets the owner of the node (who currently running computations on it)
|
Client |
getProvider()
Gets the provider of the node (who created and deployed it)
|
HashMap<SelectionScript,Integer> |
getScriptStatus()
Deprecated.
it currently returns empty result always. Selection script results are now handled by the
ProbablisticSelectionManager |
NodeState |
getState()
Returns the node state
|
long |
getStateChangeTime()
Returns the time of the last node state change.
|
Map<String,String> |
getUsageInfo() |
Permission |
getUserPermission()
Gets the permission which defines who can user this node.
|
String |
getVNodeName() |
boolean |
isBusy() |
boolean |
isConfiguring() |
boolean |
isDeploying()
Returns a boolean that says if the node is deploying or not.
|
boolean |
isDown() |
boolean |
isFree() |
boolean |
isLocked()
Returns a boolean saying whether the node is locked or not.
|
boolean |
isProtectedByToken() |
boolean |
isToRemove() |
void |
lock(Client client)
Set the node locked.
|
long |
millisSinceStateChanged() |
void |
removeToken(String token) |
void |
setAddEvent(RMNodeEvent addEvent) |
void |
setBusy(Client owner)
change the node's status to busy.
|
void |
setBusy(Client owner,
Map<String,String> usageInfo) |
void |
setConfiguring(Client owner)
change the node's status to configuring
|
void |
setDown()
change the node's status to down.
|
void |
setFree()
change the node's status to free
|
void |
setJMXUrl(JMXTransportProtocol protocol,
String address)
Sets the jmx url of the node.
|
void |
setLastEvent(RMNodeEvent lastEvent) |
void |
setNodeSource(NodeSource nodeSource)
Sets the Stub of the NodeSource to the specified value.
|
void |
setNodeTags(Set<String> tags) |
void |
setNodeTokens(String nodeUrl,
List<String> tokens) |
void |
setProtectedByToken(boolean protectedByToken) |
void |
setStateChangeTime(long time) |
void |
setToRemove()
* change the node's status to 'to release'.
|
void |
setUsageInfo(Map<String,String> usageInfo) |
void |
unlock(Client client)
Unlock the node.
|
compareTo
<T> ScriptResult<T> executeScript(Script<T> script, Map<String,Serializable> bindings)
T
- The parameterized result type of the scriptscript
- a selection script to execute.bindings
- bindings used to execute the selection scriptsScriptResult
corresponding to the script execution.@Deprecated HashMap<SelectionScript,Integer> getScriptStatus()
ProbablisticSelectionManager
void clean() throws org.objectweb.proactive.core.node.NodeException
org.objectweb.proactive.core.node.NodeException
String getNodeInfo()
String getNodeName()
org.objectweb.proactive.core.node.Node getNode()
String getVNodeName()
String getHostName()
String getDescriptorVMName()
String getNodeSourceName()
String getNodeURL()
NodeSource getNodeSource()
NodeSource
that handles the node.NodeSource
that handles the node.NodeState getState()
long getStateChangeTime()
Client getProvider()
Client getOwner()
Permission getUserPermission()
Permission getAdminPermission()
RMNodeEvent getAddEvent()
RMNodeEvent
.RMNodeEvent getLastEvent()
RMNodeEvent
.boolean isDeploying()
true
if the node is an instance of RMDeployingNode
,
false
if it is an instance of RMNodeImpl
.boolean isFree()
boolean isDown()
boolean isToRemove()
boolean isBusy()
boolean isConfiguring()
boolean isLocked()
true
if the node is locked, false
otherwise.long getLockTime()
The value returned by this method is meaningful when the node is locked only.
-1
if the node is not locked.isLocked()
Client getLockedBy()
null
if the node is not locked.void setFree()
void setBusy(Client owner)
owner
- void setToRemove()
void setDown()
void setConfiguring(Client owner)
void lock(Client client)
client
- the client that locks the node.void unlock(Client client)
client
- the client that unlocks the node.void setNodeSource(NodeSource nodeSource)
nodeSource
- the new NodeSource Stub to use.void setAddEvent(RMNodeEvent addEvent)
void setLastEvent(RMNodeEvent lastEvent)
void setJMXUrl(JMXTransportProtocol protocol, String address)
protocol
- protocol to be used for accessing the nodeaddress
- url of the jmx serverString getJMXUrl(JMXTransportProtocol protocol)
protocol
- protocol to be used for accessing the nodeString[] getJmxUrls()
boolean isProtectedByToken()
void setProtectedByToken(boolean protectedByToken)
void addToken(String token)
void removeToken(String token)
RMNodeEvent createNodeEvent(RMEventType eventType, NodeState previousNodeState, String initiator)
RMNodeEvent createNodeEvent()
long millisSinceStateChanged()
void setStateChangeTime(long time)