Package org.jppf.management
Interface JPPFNodeAdminMBean
- All Superinterfaces:
JPPFAdminMBean,Serializable
- All Known Implementing Classes:
JMXNodeConnectionWrapper
Exposed interface of the JPPF node management bean.
- Author:
- Laurent Cohen
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidCancel the job with the specified uuid.booleanCancel a previous deferred shutdown or restart request, if any.Get the current class loader delegation model for the node.Determine wether a deffered shutdwon or restartd was requested and not yet performed for the node.voidForce the node to reconnect without restarting.voidReset the node's executed tasks counter to zero.voidrestart()Restart the node.voidRestart the node.voidSet the current class loader delegation model for the node.voidReset the node's executed tasks counter to the specified value.voidshutdown()Shutdown the node.voidShutdown the node.state()Get the latest state information from the node.voidupdateConfiguration(Map<Object, Object> configOverrides, Boolean restart) Update the configuration properties of the node.voidUpdate the configuration properties of the node.voidupdateThreadPoolSize(Integer size) Set the size of the node's thread pool.voidupdateThreadsPriority(Integer newPriority) Update the priority of all execution threads.Methods inherited from interface org.jppf.management.JPPFAdminMBean
systemInformation
-
Field Details
-
MBEAN_NAME
Name of the node's admin MBean.- See Also:
-
-
Method Details
-
state
Get the latest state information from the node.- Returns:
- a
JPPFNodeStateinformation. - Throws:
Exception- if any error occurs.
-
updateThreadPoolSize
Set the size of the node's thread pool.- Parameters:
size- the size as an int.- Throws:
Exception- if any error occurs.
-
updateThreadsPriority
Update the priority of all execution threads.- Parameters:
newPriority- the new priority to set.- Throws:
Exception- if an error is raised when invoking the node mbean.
-
restart
Restart the node. This is equivalent to callingrestart(true).- Throws:
Exception- if any error occurs.
-
restart
Restart the node.- Parameters:
interruptIfRunning- whentrue, then restart the node even if it is executing tasks, whenfalse, then only restart the node when it is no longer executing.- Throws:
Exception- if any error occurs.- Since:
- 5.0
-
shutdown
Shutdown the node.- Throws:
Exception- if any error occurs.
-
shutdown
Shutdown the node.- Parameters:
interruptIfRunning- whentrue, then shutdown the node even if it is executing tasks, whenfalse, then only shutdown the node when it is no longer executing.- Throws:
Exception- if any error occurs.- Since:
- 5.0
-
reconnect
Force the node to reconnect without restarting.- Parameters:
interruptIfRunning- whentrue, then reconnect the node even if it is executing tasks, whenfalse, then only restart the node when it is no longer executing.- Throws:
Exception- if any error occurs.- Since:
- 6.3
-
resetTaskCounter
Reset the node's executed tasks counter to zero.- Throws:
Exception- if any error occurs.
-
setTaskCounter
Reset the node's executed tasks counter to the specified value.- Parameters:
n- the number to set the task counter to.- Throws:
Exception- if any error occurs.
-
updateConfiguration
void updateConfiguration(Map<Object, Object> configUpdates, Boolean restart, Boolean interruptIfRunning) throws ExceptionUpdate the configuration properties of the node.- Parameters:
configUpdates- the set of properties to update.restart- specifies whether the node should be restarted after updating the properties.interruptIfRunning- whentrue, then restart the node even if it is executing tasks, whenfalse, then only shutdown the node when it is no longer executing. This parameter only applies when therestartparameter istrue.- Throws:
Exception- if any error occurs.- Since:
- 5.2
-
updateConfiguration
Update the configuration properties of the node. This method is equivalent to callingupdateConfiguration(configOverrides, restart, true).- Parameters:
configOverrides- the set of properties to update.restart- specifies whether the node should be restarted after updating the properties.- Throws:
Exception- if any error occurs.
-
cancelJob
Cancel the job with the specified uuid.- Parameters:
jobUuid- the id of the job to cancel.requeue- true if the job should be requeued on the server side, false otherwise.- Throws:
Exception- if any error occurs.
-
getDelegationModel
Get the current class loader delegation model for the node.- Returns:
- either
PARENT_FIRSTorLOCAL_FIRST. - Throws:
Exception- if any error occurs.
-
setDelegationModel
Set the current class loader delegation model for the node.- Parameters:
model- either eitherPARENT_FIRSTorLOCAL_FIRST. If any other value is specified then this method has no effect.- Throws:
Exception- if any error occurs.
-
pendingAction
NodePendingAction pendingAction()Determine wether a deffered shutdwon or restartd was requested and not yet performed for the node.- Returns:
- one of the possible pending actions specified in the enum
NodePendingAction.
-
cancelPendingAction
boolean cancelPendingAction()Cancel a previous deferred shutdown or restart request, if any.- Returns:
trueif the node has a pending action and it was cancelled,falseotherwise.
-