public interface JPPFNodeAdminMBean extends JPPFAdminMBean
Modifier and Type | Field and Description |
---|---|
static String |
MBEAN_NAME
Name of the node's admin MBean.
|
Modifier and Type | Method and Description |
---|---|
void |
cancelJob(String jobUuid,
Boolean requeue)
Cancel the job with the specified uuid.
|
boolean |
cancelPendingAction()
Cancel a previous deferred shutdown or restart request, if any.
|
DelegationModel |
getDelegationModel()
Get the current class loader delegation model for the node.
|
NodePendingAction |
pendingAction()
Determine wether a deffered shutdwon or restartd was requested and not yet performed for the node.
|
void |
reconnect(Boolean interruptIfRunning)
Force the node to reconnect without restarting.
|
void |
resetTaskCounter()
Reset the node's executed tasks counter to zero.
|
void |
restart()
Restart the node.
|
void |
restart(Boolean interruptIfRunning)
Restart the node.
|
void |
setDelegationModel(DelegationModel model)
Set the current class loader delegation model for the node.
|
void |
setTaskCounter(Integer n)
Reset the node's executed tasks counter to the specified value.
|
void |
shutdown()
Shutdown the node.
|
void |
shutdown(Boolean interruptIfRunning)
Shutdown the node.
|
JPPFNodeState |
state()
Get the latest state information from the node.
|
void |
updateConfiguration(Map<Object,Object> configOverrides,
Boolean restart)
Update the configuration properties of the node.
|
void |
updateConfiguration(Map<Object,Object> configUpdates,
Boolean restart,
Boolean interruptIfRunning)
Update the configuration properties of the node.
|
void |
updateThreadPoolSize(Integer size)
Set the size of the node's thread pool.
|
void |
updateThreadsPriority(Integer newPriority)
Update the priority of all execution threads.
|
systemInformation
static final String MBEAN_NAME
JPPFNodeState state() throws Exception
JPPFNodeState
information.Exception
- if any error occurs.void updateThreadPoolSize(Integer size) throws Exception
size
- the size as an int.Exception
- if any error occurs.void updateThreadsPriority(Integer newPriority) throws Exception
newPriority
- the new priority to set.Exception
- if an error is raised when invoking the node mbean.void restart() throws Exception
restart(true)
.Exception
- if any error occurs.void restart(Boolean interruptIfRunning) throws Exception
interruptIfRunning
- when true
, then restart the node even if it is executing tasks,
when false
, then only restart the node when it is no longer executing.Exception
- if any error occurs.void shutdown() throws Exception
Exception
- if any error occurs.void shutdown(Boolean interruptIfRunning) throws Exception
interruptIfRunning
- when true
, then shutdown the node even if it is executing tasks,
when false
, then only shutdown the node when it is no longer executing.Exception
- if any error occurs.void reconnect(Boolean interruptIfRunning) throws Exception
interruptIfRunning
- when true
, then reconnect the node even if it is executing tasks,
when false
, then only restart the node when it is no longer executing.Exception
- if any error occurs.void resetTaskCounter() throws Exception
Exception
- if any error occurs.void setTaskCounter(Integer n) throws Exception
n
- the number to set the task counter to.Exception
- if any error occurs.void updateConfiguration(Map<Object,Object> configUpdates, Boolean restart, Boolean interruptIfRunning) throws Exception
configUpdates
- the set of properties to update.restart
- specifies whether the node should be restarted after updating the properties.interruptIfRunning
- when true
, then restart the node even if it is executing tasks, when false
, then only shutdown the node when it is no longer executing.
This parameter only applies when the restart
parameter is true
.Exception
- if any error occurs.void updateConfiguration(Map<Object,Object> configOverrides, Boolean restart) throws Exception
updateConfiguration(configOverrides, restart, true)
.configOverrides
- the set of properties to update.restart
- specifies whether the node should be restarted after updating the properties.Exception
- if any error occurs.void cancelJob(String jobUuid, Boolean requeue) throws Exception
jobUuid
- the id of the job to cancel.requeue
- true if the job should be requeued on the server side, false otherwise.Exception
- if any error occurs.DelegationModel getDelegationModel() throws Exception
PARENT_FIRST
or LOCAL_FIRST
.Exception
- if any error occurs.void setDelegationModel(DelegationModel model) throws Exception
model
- either either PARENT_FIRST
or LOCAL_FIRST
.
If any other value is specified then this method has no effect.Exception
- if any error occurs.NodePendingAction pendingAction()
NodePendingAction
.boolean cancelPendingAction()
true
if the node has a pending action and it was cancelled, false
otherwise.Copyright © 2005-2019 JPPF Team.