Package org.jppf.node
Interface Node
- All Superinterfaces:
Runnable
Interface for a node that provides information about its activity.
- Author:
- Laurent Cohen
-
Method Summary
Modifier and TypeMethodDescriptionGet the configuration of this node.intGet the total number of tasks executed.Get the management information for this node.Get the uuid of the node who this node is a slave of.Get the system information for this node.getUuid()Get this node's UUID.default booleanDeprecated.the Android port is no longer part of JPPF, there is no replacement.default booleanDeprecated.the .Net port is no longer part of JPPF, there is no replacement.booleanisLocal()Determine whether this node is local to another component.booleanDetermine whether this node is a 'master' node for the provisioning features.booleanDetermine whether this node is running in offline mode.booleanDetermine whether this node is a 'slave' node for the provisioning features.resetTaskClassLoader(Object... params) Reset the current task class loader if any is present (i.e. if a job is being executed), without reconnecting to the server.
-
Method Details
-
getUuid
String getUuid()Get this node's UUID.- Returns:
- the uuid as a string.
-
getSystemInformation
JPPFSystemInformation getSystemInformation()Get the system information for this node.- Returns:
- a
JPPFSystemInformationinstance.
-
isLocal
boolean isLocal()Determine whether this node is local to another component.- Returns:
trueif this node is local,falseotherwise.
-
resetTaskClassLoader
Reset the current task class loader if any is present (i.e. if a job is being executed), without reconnecting to the server.- Parameters:
params- a (possibly empty) set of arbitrary parameters to propagate to the class loader.- Returns:
- the newly created class loader, or
nullif none could be created at this time. This class loader can be safely cast to anAbstractJPPFClassLoader.
-
isOffline
boolean isOffline()Determine whether this node is running in offline mode.- Returns:
trueif this node is offline,falseotherwise.
-
isMasterNode
boolean isMasterNode()Determine whether this node is a 'master' node for the provisioning features.- Returns:
trueif this node is a master,falseotherwise.
-
isSlaveNode
boolean isSlaveNode()Determine whether this node is a 'slave' node for the provisioning features.- Returns:
trueif this node is a slave,falseotherwise.
-
getMasterNodeUuid
String getMasterNodeUuid()Get the uuid of the node who this node is a slave of.- Returns:
- the uuid of this node's master node, or
nullif this node is not a slave. - Since:
- 6.0
-
isDotnetCapable
Deprecated.the .Net port is no longer part of JPPF, there is no replacement.Determine whether this node can execute .Net tasks.- Returns:
trueif this node can execute .Net tasks,falseotherwise.
-
isAndroid
Deprecated.the Android port is no longer part of JPPF, there is no replacement.Determine whether this node is an Android node.- Returns:
trueif this node runs on Android,falseotherwise.
-
getConfiguration
TypedProperties getConfiguration()Get the configuration of this node.- Returns:
- the node configuration as a
TypedPropertiesinstance.
-
getManagementInfo
JPPFManagementInfo getManagementInfo()Get the management information for this node.- Returns:
- a
JPPFManagementInfoobject.
-
getExecutedTaskCount
int getExecutedTaskCount()Get the total number of tasks executed.- Returns:
- the number of tasks as an int.
-