org.jppf.management
Interface JPPFDriverAdminMBean

All Superinterfaces:
JPPFAdminMBean, Serializable
All Known Implementing Classes:
JMXDriverConnectionWrapper, JPPFDriverAdmin

public interface JPPFDriverAdminMBean
extends JPPFAdminMBean

MBean interface for the management of a JPPF driver.

Author:
Laurent Cohen

Field Summary
 
Fields inherited from interface org.jppf.management.JPPFAdminMBean
DRIVER_MBEAN_NAME, DRIVER_SUFFIX, NODE_MBEAN_NAME, NODE_SUFFIX
 
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.
 

Method Detail

statistics

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

Returns:
a JPPFStats instance.
Throws:
Exception - if any error occurs.

nodesInformation

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

Returns:
a collection of NodeManagementInfo instances.
Throws:
Exception - if any error occurs.

restartShutdown

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

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.

changeLoadBalancerSettings

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

Parameters:
algorithm - the name opf 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.

loadBalancerInformation

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

Returns:
an instance of LoadBalancingInformation.
Throws:
Exception - if an error occurred while fetching the settings.

resetStatistics

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

Throws:
Exception - if any error occurs.


Copyright © 2005-2010 JPPF Team.