com.sun.sgs.impl.service.watchdog
Class WatchdogServiceStats

java.lang.Object
  extended by com.sun.sgs.impl.service.watchdog.WatchdogServiceStats
All Implemented Interfaces:
WatchdogServiceMXBean

 class WatchdogServiceStats
extends Object
implements WatchdogServiceMXBean

The Statistics MBean object for the watchdog service.


Field Summary
(package private)  ProfileOperation addNodeListenerOp
           
(package private)  ProfileOperation addRecoveryListenerOp
           
(package private)  ProfileOperation getBackupOp
           
(package private)  ProfileOperation getLocalNodeHealthNonTransOp
           
(package private)  ProfileOperation getLocalNodeHealthOp
           
(package private)  ProfileOperation getNodeOp
           
(package private)  ProfileOperation getNodesOp
           
(package private)  ProfileOperation isLocalNodeAliveNonTransOp
           
(package private)  ProfileOperation isLocalNodeAliveOp
           
(package private)  WatchdogServiceImpl watchdog
           
 
Fields inherited from interface com.sun.sgs.management.WatchdogServiceMXBean
MXBEAN_NAME
 
Constructor Summary
WatchdogServiceStats(ProfileCollector collector, WatchdogServiceImpl wdog)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

watchdog

final WatchdogServiceImpl watchdog

addNodeListenerOp

final ProfileOperation addNodeListenerOp

addRecoveryListenerOp

final ProfileOperation addRecoveryListenerOp

getBackupOp

final ProfileOperation getBackupOp

getNodeOp

final ProfileOperation getNodeOp

getNodesOp

final ProfileOperation getNodesOp

getLocalNodeHealthOp

final ProfileOperation getLocalNodeHealthOp

getLocalNodeHealthNonTransOp

final ProfileOperation getLocalNodeHealthNonTransOp

isLocalNodeAliveOp

final ProfileOperation isLocalNodeAliveOp

isLocalNodeAliveNonTransOp

final ProfileOperation isLocalNodeAliveNonTransOp
Constructor Detail

WatchdogServiceStats

WatchdogServiceStats(ProfileCollector collector,
                     WatchdogServiceImpl wdog)
Method Detail

getNodeHealth

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

Specified by:
getNodeHealth in interface WatchdogServiceMXBean
Returns:
the health of the local node.

setNodeHealth

public 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.

Specified by:
setNodeHealth in interface WatchdogServiceMXBean
Parameters:
health - a node health

getAddNodeListenerCalls

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

Specified by:
getAddNodeListenerCalls in interface WatchdogServiceMXBean
Returns:
the number of times addNodeListener has been called

getAddRecoveryListenerCalls

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

Specified by:
getAddRecoveryListenerCalls in interface WatchdogServiceMXBean
Returns:
the number of times addRecoveryListener has been called

getGetBackupCalls

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

Specified by:
getGetBackupCalls in interface WatchdogServiceMXBean
Returns:
the number of times getBackup has been called

getGetNodeCalls

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

Specified by:
getGetNodeCalls in interface WatchdogServiceMXBean
Returns:
the number of times getNode has been called

getGetNodesCalls

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

Specified by:
getGetNodesCalls in interface WatchdogServiceMXBean
Returns:
the number of times getNodes has been called

getGetLocalNodeHealthCalls

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

Specified by:
getGetLocalNodeHealthCalls in interface WatchdogServiceMXBean
Returns:
the number of times getLocalNodeHealth has been called

getGetLocalNodeHealthNonTransactionalCalls

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

Specified by:
getGetLocalNodeHealthNonTransactionalCalls in interface WatchdogServiceMXBean
Returns:
the number of times getLocalNodeHealthNonTransactional has been called

getIsLocalNodeAliveCalls

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

Specified by:
getIsLocalNodeAliveCalls in interface WatchdogServiceMXBean
Returns:
the number of times isLocalNodeAlive has been called

getIsLocalNodeAliveNonTransactionalCalls

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

Specified by:
getIsLocalNodeAliveNonTransactionalCalls in interface WatchdogServiceMXBean
Returns:
the number of times isLocalNodeAliveNonTransactional has been called

getStatusInfo

public NodeInfo getStatusInfo()
Returns status information about this node.

Specified by:
getStatusInfo in interface WatchdogServiceMXBean
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