|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.management.JPPFNodeAdmin
public class JPPFNodeAdmin
Management bean for a JPPF node.
| Field Summary |
|---|
| Fields inherited from interface org.jppf.management.JPPFAdminMBean |
|---|
DRIVER_MBEAN_NAME, DRIVER_SUFFIX, NODE_MBEAN_NAME, NODE_SUFFIX |
| Constructor Summary | |
|---|---|
JPPFNodeAdmin(JPPFNode node)
Initialize this node management bean with the specified node. |
|
| Method Summary | |
|---|---|
void |
cancelJob(String jobId,
Boolean requeue)
Cancel the job with the specified id. |
void |
cancelTask(String id)
Cancel the execution of the tasks with the specified id. |
void |
eventOccurred(JPPFTaskEvent event)
Receive a notification that an event occurred within a task. |
void |
eventOccurred(NodeEvent event)
Called to notify a listener that a node event has occurred. |
Serializable |
notification()
Get the latest state information from the node. |
void |
resetTaskCounter()
Reset the node's executed tasks counter to zero. |
void |
restart()
Restart the node. |
void |
restartTask(String id)
Restart the execution of the tasks with the specified id. |
void |
setTaskCounter(Integer n)
Set the node's executed tasks counter to the specified value. |
void |
shutdown()
Shutdown the node. |
JPPFNodeState |
state()
Get the latest state information from the node. |
JPPFSystemInformation |
systemInformation()
Get detailed information about the node's JVM properties, environment variables and runtime information such as memory usage and available processors. |
void |
taskEnded(String id)
Notification that a task witht the specified id has ended. |
void |
taskStarted(String id)
Notification that a task witht the specified id has started. |
void |
updateConfiguration(Map<Object,Object> config,
Boolean reconnect)
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JPPFNodeAdmin(JPPFNode node)
node - the node whose state is monitored.| Method Detail |
|---|
public JPPFNodeState state()
throws Exception
state in interface JPPFNodeAdminMBeanJPPFNodeState information.
Exception - if any error occurs.JPPFNodeAdminMBean.state()
public Serializable notification()
throws Exception
notification in interface JPPFNodeAdminMBeanException - if any error occurs.JPPFNodeAdminMBean.notification()
public void cancelTask(String id)
throws Exception
cancelTask in interface JPPFNodeAdminMBeanid - the id of the tasks to cancel.
Exception - if any error occurs.JPPFNodeAdminMBean.cancelTask(java.lang.String)
public void restartTask(String id)
throws Exception
restartTask in interface JPPFNodeAdminMBeanid - the id of the task or tasks to restart.
Exception - if any error occurs.JPPFNodeAdminMBean.restartTask(java.lang.String)
public void updateThreadPoolSize(Integer size)
throws Exception
updateThreadPoolSize in interface JPPFNodeAdminMBeansize - the size as an int.
Exception - if any error occurs.JPPFNodeAdminMBean.updateThreadPoolSize(java.lang.Integer)
public JPPFSystemInformation systemInformation()
throws Exception
systemInformation in interface JPPFNodeAdminMBeanJPPFSystemInformation instance.
Exception - if any error occurs.JPPFNodeAdminMBean.systemInformation()
public void restart()
throws Exception
restart in interface JPPFNodeAdminMBeanException - if any error occurs.JPPFNodeAdminMBean.restart()
public void shutdown()
throws Exception
shutdown in interface JPPFNodeAdminMBeanException - if any error occurs.JPPFNodeAdminMBean.shutdown()
public void resetTaskCounter()
throws Exception
resetTaskCounter in interface JPPFNodeAdminMBeanException - if any error occurs.JPPFNodeAdminMBean.resetTaskCounter()
public void setTaskCounter(Integer n)
throws Exception
setTaskCounter in interface JPPFNodeAdminMBeann - the new value of the task counter.
Exception - if any error occurs.JPPFNodeAdminMBean.setTaskCounter(java.lang.Integer)
public void updateThreadsPriority(Integer newPriority)
throws Exception
updateThreadsPriority in interface JPPFNodeAdminMBeannewPriority - the new priority to set.
Exception - if any error occurs.JPPFNodeAdminMBean.updateThreadsPriority(java.lang.Integer)
public void updateConfiguration(Map<Object,Object> config,
Boolean reconnect)
throws Exception
updateConfiguration in interface JPPFNodeAdminMBeanconfig - the set of properties to update.reconnect - - specifies whether the node should reconnect ot the driver after updating the properties.
Exception - if any error occurs.JPPFNodeAdminMBean.updateConfiguration(java.util.Map, java.lang.Boolean)public void eventOccurred(JPPFTaskEvent event)
eventOccurred in interface JPPFTaskListenerevent - the event that occurred.JPPFTaskListener.eventOccurred(org.jppf.server.protocol.JPPFTaskEvent)public void eventOccurred(NodeEvent event)
eventOccurred in interface NodeListenerevent - the event that triggered the notification.NodeListener.eventOccurred(org.jppf.node.event.NodeEvent)public void taskStarted(String id)
id - the id of the task.public void taskEnded(String id)
id - the id of the task.
public void cancelJob(String jobId,
Boolean requeue)
throws Exception
cancelJob in interface JPPFNodeAdminMBeanjobId - 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.JPPFNodeAdminMBean.cancelJob(java.lang.String,java.lang.Boolean)
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||