public final class RMDeployingNode extends AbstractRMNode
Modifier and Type | Field and Description |
---|---|
static String |
PROTOCOL_ID |
addEvent, isLocked, lastEvent, lockedBy, lockTime, nodeName, nodeSource, nodeSourceName, provider, state, stateChangeTime, usageInfo
Constructor and Description |
---|
RMDeployingNode()
Required by ProActive Programming.
|
RMDeployingNode(String name,
NodeSource nodeSource,
String command,
Client provider) |
RMDeployingNode(String name,
NodeSource ns,
String command,
Client provider,
String description) |
Modifier and Type | Method and Description |
---|---|
void |
addToken(String token) |
void |
clean()
The behaviour is to do nothing.
|
int |
compareTo(RMNode rmNode) |
<T> ScriptResult<T> |
executeScript(Script<T> script,
Map<String,Serializable> bindings)
Unsupported operation.
|
Permission |
getAdminPermission()
Unsupported operation.
|
String |
getCommandLine()
Returns the command line of the node that is deploying.
|
String |
getDescription()
Returns the deploying node's description.
|
String |
getDescriptorVMName()
A deploying node has no VM descriptor.
|
String |
getHostName()
A deploying node has no hostname assigned yet.
|
String |
getJMXUrl(JMXTransportProtocol protocol)
Gets the JMX url of the node.
|
String[] |
getJmxUrls()
Gets the JMX urls of the node.
|
org.objectweb.proactive.core.node.Node |
getNode()
Unsupported operation.
|
String |
getNodeInfo() |
Set<String> |
getNodeTags() |
List<String> |
getNodeTokens() |
String |
getNodeURL()
Returns the unique ID of the node.
|
Client |
getOwner()
Always return null (a deploying node cannot be owned)
|
HashMap<SelectionScript,Integer> |
getScriptStatus()
Unsupported operation.
|
Permission |
getUserPermission()
Unsupported operation.
|
String |
getVNodeName()
Returns
false under all conditions. |
boolean |
isBusy()
Returns
false under all conditions. |
boolean |
isConfiguring()
Returns
false under all conditions. |
boolean |
isDeploying()
Returns a boolean that says if the node is deploying or not.
|
boolean |
isDown()
Returns
false under all conditions. |
boolean |
isFree()
Returns
false under all conditions. |
boolean |
isLost() |
boolean |
isProtectedByToken() |
boolean |
isToRemove()
Returns
false under all conditions. |
void |
removeToken(String token) |
void |
setBusy(Client owner)
Unsupported operation.
|
void |
setBusy(Client owner,
Map<String,String> usageInfo) |
void |
setConfiguring(Client owner)
Unsupported operation.
|
void |
setDown()
Unsupported operation.
|
void |
setFree()
Unsupported operation.
|
void |
setJMXUrl(JMXTransportProtocol protocol,
String address)
Sets the jmx url of the node.
|
void |
setLost()
Sets this deploying node's state to lost
|
void |
setNodeTags(Set<String> tags) |
void |
setNodeTokens(String nodeUrl,
List<String> tokens) |
void |
setProtectedByToken(boolean protectedByToken) |
void |
setToRemove()
Unsupported operation.
|
RMDeployingNode |
updateOnNodeSource() |
changeState, copyLockStatusFrom, createNodeEvent, createNodeEvent, equals, getAddEvent, getLastEvent, getLockedBy, getLockStatus, getLockTime, getNodeName, getNodeSource, getNodeSourceName, getProvider, getState, getStateChangeTime, getUsageInfo, hashCode, isLocked, lock, millisSinceStateChanged, setAddEvent, setLastEvent, setNodeSource, setStateChangeTime, setUsageInfo, toNodeDescriptor, toString, unlock
public static final String PROTOCOL_ID
public RMDeployingNode()
public RMDeployingNode(String name, NodeSource nodeSource, String command, Client provider)
public RMDeployingNode(String name, NodeSource ns, String command, Client provider, String description)
public String getDescription()
public String getCommandLine()
public void clean() throws org.objectweb.proactive.core.node.NodeException
org.objectweb.proactive.core.node.NodeException
public <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.UnsupportedOperationException
- under all conditions.public Permission getAdminPermission()
UnsupportedOperationException
- under all conditions.public String getDescriptorVMName()
public String getHostName()
public org.objectweb.proactive.core.node.Node getNode()
UnsupportedOperationException
- under all conditions.public Client getOwner()
public HashMap<SelectionScript,Integer> getScriptStatus()
UnsupportedOperationException
- under all conditions.public Permission getUserPermission()
UnsupportedOperationException
- under all conditions.public String getVNodeName()
false
under all conditions.false
under all conditions.public boolean isBusy()
false
under all conditions.false
under all conditions.public boolean isDown()
false
under all conditions.false
under all conditions.public boolean isFree()
false
under all conditions.false
under all conditions.public boolean isToRemove()
false
under all conditions.false
under all conditions.public boolean isLost()
public boolean isDeploying()
RMNode
true
if the node is an instance of RMDeployingNode
,
false
if it is an instance of RMNodeImpl
.public void setLost()
public void setBusy(Client owner)
UnsupportedOperationException
- under all conditions.public void setDown()
UnsupportedOperationException
- under all conditions.public void setFree()
UnsupportedOperationException
- under all conditions.public void setToRemove()
UnsupportedOperationException
- under all conditions.public int compareTo(RMNode rmNode)
public String getNodeURL()
AbstractRMNode
getNodeURL
in interface RMNode
getNodeURL
in class AbstractRMNode
public boolean isConfiguring()
false
under all conditions.false
under all conditions.public void setConfiguring(Client owner)
UnsupportedOperationException
- under all conditions.public String getNodeInfo()
public void setJMXUrl(JMXTransportProtocol protocol, String address)
RMNode
protocol
- protocol to be used for accessing the nodeaddress
- url of the jmx serverpublic String getJMXUrl(JMXTransportProtocol protocol)
RMNode
protocol
- protocol to be used for accessing the nodepublic String[] getJmxUrls()
RMNode
public boolean isProtectedByToken()
public void setProtectedByToken(boolean protectedByToken)
public RMDeployingNode updateOnNodeSource()
public void addToken(String token)
public void removeToken(String token)