org.jppf.management
Class JPPFDriverAdmin

java.lang.Object
  extended by org.jppf.management.JPPFDriverAdmin
All Implemented Interfaces:
Serializable, JPPFAdminMBean, JPPFDriverAdminMBean

public class JPPFDriverAdmin
extends Object
implements JPPFDriverAdminMBean

Instances of this class encapsulate the administration functionalities for a JPPF driver.

Author:
Laurent Cohen
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.jppf.management.JPPFAdminMBean
DRIVER_MBEAN_NAME, DRIVER_SUFFIX, NODE_MBEAN_NAME, NODE_SUFFIX
 
Constructor Summary
JPPFDriverAdmin()
           
 
Method Summary
 String changeLoadBalancerSettings(String algorithm, Map<Object,Object> parameters)
          Change the bundle size tuning settings.
 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.
 JPPFStats statistics()
          Get the latest statistics snapshot from the JPPF driver.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JPPFDriverAdmin

public JPPFDriverAdmin()
Method Detail

nodesInformation

public Collection<JPPFManagementInfo> nodesInformation()
Request the JMX connection information for all the nodes attached to the server.

Specified by:
nodesInformation in interface JPPFDriverAdminMBean
Returns:
a collection of NodeManagementInfo instances.
See Also:
JPPFDriverAdminMBean.nodesInformation()

statistics

public JPPFStats statistics()
                     throws Exception
Get the latest statistics snapshot from the JPPF driver.

Specified by:
statistics in interface JPPFDriverAdminMBean
Returns:
a JPPFStats instance.
Throws:
Exception - if any error occurs.
See Also:
JPPFDriverAdminMBean.statistics()

changeLoadBalancerSettings

public String changeLoadBalancerSettings(String algorithm,
                                         Map<Object,Object> parameters)
                                  throws Exception
Change the bundle size tuning settings.

Specified by:
changeLoadBalancerSettings in interface JPPFDriverAdminMBean
Parameters:
algorithm - the name of the load-balancing algorithm to set.
parameters - the algorithm's parameters.
Returns:
an acknowledgement or error message.
Throws:
Exception - if an error occurred while updating the settings.
See Also:
JPPFDriverAdminMBean.changeLoadBalancerSettings(java.lang.String, java.util.Map)

restartShutdown

public String restartShutdown(Long shutdownDelay,
                              Long restartDelay)
                       throws Exception
Perform a shutdown or restart of the server.

Specified by:
restartShutdown in interface JPPFDriverAdminMBean
Parameters:
shutdownDelay - 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.
Returns:
an acknowledgement message.
Throws:
Exception - if any error occurs.
See Also:
JPPFDriverAdminMBean.restartShutdown(java.lang.Long, java.lang.Long)

loadBalancerInformation

public LoadBalancingInformation loadBalancerInformation()
                                                 throws Exception
Obtain the current load-balancing settings.

Specified by:
loadBalancerInformation in interface JPPFDriverAdminMBean
Returns:
an instance of LoadBalancingInformation.
Throws:
Exception - if any error occurs.
See Also:
JPPFDriverAdminMBean.loadBalancerInformation()

resetStatistics

public void resetStatistics()
                     throws Exception
Reset this server's statistics. This method triggers a reset() event via the JPPFDriverStatsManager instance.

Specified by:
resetStatistics in interface JPPFDriverAdminMBean
Throws:
Exception - if any error occurs.


Copyright © 2005-2010 JPPF Team.