|
|
||||||||||
| 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.JMXDriverConnectionWrapper
public class JMXDriverConnectionWrapper
Node-specific connection wrapper, implementing a user-friendly interface for the monitoring
and management of the node. Note that this class implements all the methods in the interface
DriverJobManagementMBean, without implementing the interface itself.
| Field Summary | |
|---|---|
static String[] |
MBEAN_SIGNATURE
Signature of the method invoked on the MBean. |
| 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 | |
|---|---|
JMXDriverConnectionWrapper()
Initialize a local connection to the MBean server. |
|
JMXDriverConnectionWrapper(String host,
int port)
Initialize the connection to the remote MBean server. |
|
| Method Summary | |
|---|---|
void |
cancelJob(String jobId)
Cancel the job with the specified id. |
String |
changeLoadBalancerSettings(String algorithm,
Map parameters)
Change the bundle size tuning settings. |
String[] |
getAllJobIds()
Get the set of ids for all the jobs currently queued or executing. |
JobInformation |
getJobInformation(String jobId)
Get an object describing the job with the specified id. |
NodeJobInformation[] |
getNodeInformation(String jobId)
Get a list of objects describing the nodes to which the whole or part of a job was dispatched. |
LoadBalancingInformation |
loadBalancerInformation()
Obtain the current load-balancing settings. |
Collection<JPPFManagementInfo> |
nodesInformation()
Request the JMX connection information for all the nodes attached to the server. |
void |
resetStatistics()
Reset this server's statistics. |
String |
restartShutdown(Long shutdownDelay,
Long restartDelay)
Perform a shutdown or restart of the server. |
void |
resumeJob(String jobId)
Resume the job with the specified id. |
JPPFStats |
statistics()
Get the latest statistics snapshot from the JPPF driver. |
void |
suspendJob(String jobId,
Boolean requeue)
Suspend the job with the specified id. |
void |
updateMaxNodes(String jobId,
Integer maxNodes)
Update the maximum number of nodes a node can run on. |
| 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 |
| Field Detail |
|---|
public static final String[] MBEAN_SIGNATURE
| Constructor Detail |
|---|
public JMXDriverConnectionWrapper()
public JMXDriverConnectionWrapper(String host,
int port)
host - the host the server is running on.port - the RMI port used by the server.| Method Detail |
|---|
public Collection<JPPFManagementInfo> nodesInformation()
throws Exception
nodesInformation in interface JPPFDriverAdminMBeanNodeManagementInfo instances.
Exception - if any error occurs.JPPFDriverAdminMBean.nodesInformation()
public JPPFStats statistics()
throws Exception
statistics in interface JPPFDriverAdminMBeanJPPFStats instance.
Exception - if any error occurs.JPPFDriverAdminMBean.statistics()
public String restartShutdown(Long shutdownDelay,
Long restartDelay)
throws Exception
restartShutdown in interface JPPFDriverAdminMBeanshutdownDelay - the delay before shutting down the server, once the command is received.restartDelay - the delay before restarting, once the server is shutdown. If it is < 0, no restart occurs.
Exception - if any error occurs.JPPFDriverAdminMBean.restartShutdown(java.lang.Long, java.lang.Long)
public String changeLoadBalancerSettings(String algorithm,
Map parameters)
throws Exception
changeLoadBalancerSettings in interface JPPFDriverAdminMBeanalgorithm - the name opf the load-balancing algorithm to set.parameters - the algorithm's parameters.
Exception - if an error occurred while updating the settings.JPPFDriverAdminMBean.changeLoadBalancerSettings(java.lang.String, java.util.Map)
public LoadBalancingInformation loadBalancerInformation()
throws Exception
loadBalancerInformation in interface JPPFDriverAdminMBeanLoadBalancingInformation.
Exception - if any error occurs.JPPFDriverAdminMBean.loadBalancerInformation()
public void cancelJob(String jobId)
throws Exception
jobId - the id of the job to cancel.
Exception - if any error occurs.DriverJobManagementMBean.cancelJob(java.lang.String)
public void suspendJob(String jobId,
Boolean requeue)
throws Exception
jobId - the id of the job to suspend.requeue - true if the sub-jobs running on each node should be canceled and requeued,
false if they should be left to execute until completion.
Exception - if any error occurs.DriverJobManagementMBean.suspendJob(java.lang.String,java.lang.Boolean)
public void resumeJob(String jobId)
throws Exception
jobId - the id of the job to resume.
Exception - if any error occurs.DriverJobManagementMBean.resumeJob(java.lang.String)
public void updateMaxNodes(String jobId,
Integer maxNodes)
throws Exception
jobId - the id of the job to update.maxNodes - the new maximum number of nodes for the job.
Exception - if any error occurs.DriverJobManagementMBean.updateMaxNodes(java.lang.String, java.lang.Integer)
public String[] getAllJobIds()
throws Exception
Exception - if any error occurs.DriverJobManagementMBean.getAllJobIds()
public JobInformation getJobInformation(String jobId)
throws Exception
jobId - the id of the job to get information about.
JobInformation.
Exception - if any error occurs.DriverJobManagementMBean.getJobInformation(java.lang.String)
public NodeJobInformation[] getNodeInformation(String jobId)
throws Exception
jobId - the id of the job for which to find node information.
NodeManagementInfo, JobInformation instances.
Exception - if any error occurs.DriverJobManagementMBean.getNodeInformation(java.lang.String)
public void resetStatistics()
throws Exception
reset() event via the JPPFDriverStatsManager instance.
resetStatistics in interface JPPFDriverAdminMBeanException - if any error occurs.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||