com.sun.sgs.management
Interface WatchdogServiceMXBean

All Known Implementing Classes:
WatchdogServiceStats

public interface WatchdogServiceMXBean

The management interface for the watchdog service.

An instance implementing this MBean can be obtained from the from the getPlatformMBeanServer method.

The ObjectName for uniquely identifying this MBean is "com.sun.sgs.service:type=WatchdogService".


Field Summary
static String MXBEAN_NAME
          The name for uniquely identifying this MBean.
 
Method Summary
 long getAddNodeListenerCalls()
          Returns the number of times addNodeListener has been called.
 long getAddRecoveryListenerCalls()
          Returns the number of times addRecoveryListener has been called.
 long getGetBackupCalls()
          Returns the number of times getBackup has been called.
 long getGetLocalNodeHealthCalls()
          Returns the number of times getLocalNodeHealth has been called.
 long getGetLocalNodeHealthNonTransactionalCalls()
          Returns the number of times getLocalNodeHealthNonTransactional has been called.
 long getGetNodeCalls()
          Returns the number of times getNode has been called.
 long getGetNodesCalls()
          Returns the number of times getNodes has been called.
 long getIsLocalNodeAliveCalls()
          Returns the number of times isLocalNodeAlive has been called.
 long getIsLocalNodeAliveNonTransactionalCalls()
          Returns the number of times isLocalNodeAliveNonTransactional has been called.
 Node.Health getNodeHealth()
          Return the health of the local node.
 NodeInfo getStatusInfo()
          Returns status information about this node.
 void setNodeHealth(Node.Health health)
          Set the health of the local node.
 

Field Detail

MXBEAN_NAME

static final String MXBEAN_NAME
The name for uniquely identifying this MBean.

See Also:
Constant Field Values
Method Detail

getNodeHealth

Node.Health getNodeHealth()
Return the health of the local node.

Returns:
the health of the local node.

setNodeHealth

void setNodeHealth(Node.Health health)
Set the health of the local node. If the specified health is worse than the node's health, then the node's health is set to the specified health. If the specified health is better than the node's health, the node's health will not change.

Parameters:
health - a node health

getAddNodeListenerCalls

long getAddNodeListenerCalls()
Returns the number of times addNodeListener has been called.

Returns:
the number of times addNodeListener has been called

getAddRecoveryListenerCalls

long getAddRecoveryListenerCalls()
Returns the number of times addRecoveryListener has been called.

Returns:
the number of times addRecoveryListener has been called

getGetBackupCalls

long getGetBackupCalls()
Returns the number of times getBackup has been called.

Returns:
the number of times getBackup has been called

getGetNodeCalls

long getGetNodeCalls()
Returns the number of times getNode has been called.

Returns:
the number of times getNode has been called

getGetNodesCalls

long getGetNodesCalls()
Returns the number of times getNodes has been called.

Returns:
the number of times getNodes has been called

getGetLocalNodeHealthCalls

long getGetLocalNodeHealthCalls()
Returns the number of times getLocalNodeHealth has been called.

Returns:
the number of times getLocalNodeHealth has been called

getGetLocalNodeHealthNonTransactionalCalls

long getGetLocalNodeHealthNonTransactionalCalls()
Returns the number of times getLocalNodeHealthNonTransactional has been called.

Returns:
the number of times getLocalNodeHealthNonTransactional has been called

getIsLocalNodeAliveCalls

long getIsLocalNodeAliveCalls()
Returns the number of times isLocalNodeAlive has been called.

Returns:
the number of times isLocalNodeAlive has been called

getIsLocalNodeAliveNonTransactionalCalls

long getIsLocalNodeAliveNonTransactionalCalls()
Returns the number of times isLocalNodeAliveNonTransactional has been called.

Returns:
the number of times isLocalNodeAliveNonTransactional has been called

getStatusInfo

NodeInfo getStatusInfo()
Returns status information about this node.

Returns:
status information about this node

RedDwarf, Version 0.10.1
2010-03-14 10:56:12

Copyright © 2010 The RedDwarf Authors. All rights reserved
Copyright © 2007-2010 Sun Microsystems, Inc. All rights reserved