|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.utils.ThreadSynchronization
org.jppf.management.JMXConnectionWrapper
org.jppf.management.JMXNodeConnectionWrapper
public class JMXNodeConnectionWrapper
Node-specific connection wrapper, implementing a user-friendly interface for the monitoring and management of the node.
| Field Summary |
|---|
| Fields inherited from class org.jppf.management.JMXConnectionWrapper |
|---|
local |
| Fields inherited from class org.jppf.utils.ThreadSynchronization |
|---|
stopped |
| Fields inherited from interface org.jppf.management.JPPFAdminMBean |
|---|
DRIVER_MBEAN_NAME, DRIVER_SUFFIX, NODE_MBEAN_NAME, NODE_SUFFIX |
| Constructor Summary | |
|---|---|
JMXNodeConnectionWrapper()
Initialize a local connection to the MBean server. |
|
JMXNodeConnectionWrapper(String host,
int port)
Initialize the connection to the remote MBean server. |
|
| 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. |
Serializable |
notification()
Get the latest task notification 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 |
updateConfiguration(Map 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 org.jppf.management.JMXConnectionWrapper |
|---|
close, connect, connectAndWait, getAttribute, getHost, getId, getMbeanConnection, getPort, getProxy, getProxy, invoke, isConnected, setConnectedStatus |
| Methods inherited from class org.jppf.utils.ThreadSynchronization |
|---|
goToSleep, goToSleep, goToSleep, isStopped, setStopped, wakeUp |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JMXNodeConnectionWrapper()
public JMXNodeConnectionWrapper(String host,
int port)
host - the host the server is running on.port - the RMI port used by the server.| Method Detail |
|---|
public void cancelTask(String id)
throws Exception
cancelTask in interface JPPFNodeAdminMBeanid - the id of the tasks to cancel.
Exception - if an error occurs while invoking the Node MBean.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 an error occurs while invoking the Node MBean.JPPFNodeAdminMBean.restartTask(java.lang.String)
public JPPFNodeState state()
throws Exception
state in interface JPPFNodeAdminMBeanJPPFNodeState information.
Exception - if an error occurs while invoking the Node MBean.JPPFNodeAdminMBean.state()
public Serializable notification()
throws Exception
notification in interface JPPFNodeAdminMBeanSerializable object.
Exception - if an error occurs while invoking the Node MBean.JPPFNodeAdminMBean.notification()
public void updateThreadPoolSize(Integer size)
throws Exception
updateThreadPoolSize in interface JPPFNodeAdminMBeansize - the size as an int.
Exception - if an error occurs while invoking the Node MBean.JPPFNodeAdminMBean.updateThreadPoolSize(java.lang.Integer)
public JPPFSystemInformation systemInformation()
throws Exception
systemInformation in interface JPPFNodeAdminMBeanJPPFSystemInformation instance.
Exception - if an error occurs while invoking the Node MBean.JPPFNodeAdminMBean.systemInformation()
public void shutdown()
throws Exception
shutdown in interface JPPFNodeAdminMBeanException - if an error is raised when invoking the node mbean.JPPFNodeAdminMBean.shutdown()
public void restart()
throws Exception
restart in interface JPPFNodeAdminMBeanException - if an error is raised when invoking the node mbean.JPPFNodeAdminMBean.restart()
public void resetTaskCounter()
throws Exception
resetTaskCounter in interface JPPFNodeAdminMBeanException - if an error is raised when invoking the node mbean.JPPFNodeAdminMBean.resetTaskCounter()
public void setTaskCounter(Integer n)
throws Exception
setTaskCounter in interface JPPFNodeAdminMBeann - - the new value of the task counter.
Exception - if an error is raised when invoking the node mbean.JPPFNodeAdminMBean.setTaskCounter(java.lang.Integer)
public void updateThreadsPriority(Integer newPriority)
throws Exception
updateThreadsPriority in interface JPPFNodeAdminMBeannewPriority - the new priority to set.
Exception - if an error is raised when invoking the node mbean.JPPFNodeAdminMBean.updateThreadsPriority(java.lang.Integer)
public void updateConfiguration(Map 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 an error is raised when invoking the node mbean.JPPFNodeAdminMBean.updateConfiguration(java.util.Map, java.lang.Boolean)
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 | ||||||||||