com.sun.sgs.impl.service.session
Class ClientSessionServiceStats

java.lang.Object
  extended by com.sun.sgs.impl.service.session.ClientSessionServiceStats
All Implemented Interfaces:
ClientSessionServiceMXBean

 class ClientSessionServiceStats
extends Object
implements ClientSessionServiceMXBean

The Statistics MBean object for the client session service.


Field Summary
(package private)  ProfileOperation addSessionStatusListenerOp
           
(package private)  ProfileOperation getSessionProtocolOp
           
(package private)  ProfileOperation isRelocatingToLocalNodeOp
           
 
Fields inherited from interface com.sun.sgs.management.ClientSessionServiceMXBean
MXBEAN_NAME
 
Constructor Summary
ClientSessionServiceStats(ProfileCollector collector, ClientSessionServiceImpl service)
           
 
Method Summary
 long getAddSessionStatusListenerCalls()
          Returns the number of times addSessionStatusListener has been called.
 long getGetSessionProtocolCalls()
          Returns the number of times getSessionProtocol has been called.
 long getIsRelocatingToLocalNodeCalls()
          Returns the number of times isRelocatingToLocalNode has been called.
 int getLoginHighWater()
          Gets the login high water.
 int getNumSessions()
          Gets the number of sessions logged into the session service.
 Node.Health getSessionServiceHealth()
          Gets the health of the service.
 void setLoginHighWater(int highWater)
          Sets the login high water.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

addSessionStatusListenerOp

final ProfileOperation addSessionStatusListenerOp

getSessionProtocolOp

final ProfileOperation getSessionProtocolOp

isRelocatingToLocalNodeOp

final ProfileOperation isRelocatingToLocalNodeOp
Constructor Detail

ClientSessionServiceStats

ClientSessionServiceStats(ProfileCollector collector,
                          ClientSessionServiceImpl service)
Method Detail

getAddSessionStatusListenerCalls

public long getAddSessionStatusListenerCalls()
Returns the number of times addSessionStatusListener has been called.

Specified by:
getAddSessionStatusListenerCalls in interface ClientSessionServiceMXBean
Returns:
the number of times addSessionStatusListener has been called

getGetSessionProtocolCalls

public long getGetSessionProtocolCalls()
Returns the number of times getSessionProtocol has been called.

Specified by:
getGetSessionProtocolCalls in interface ClientSessionServiceMXBean
Returns:
the number of times getSessionProtocol has been called

getIsRelocatingToLocalNodeCalls

public long getIsRelocatingToLocalNodeCalls()
Returns the number of times isRelocatingToLocalNode has been called.

Specified by:
getIsRelocatingToLocalNodeCalls in interface ClientSessionServiceMXBean
Returns:
the number of times isRelocatingToLocalNode has been called

getSessionServiceHealth

public Node.Health getSessionServiceHealth()
Description copied from interface: ClientSessionServiceMXBean
Gets the health of the service.

Specified by:
getSessionServiceHealth in interface ClientSessionServiceMXBean
Returns:
health

getNumSessions

public int getNumSessions()
Description copied from interface: ClientSessionServiceMXBean
Gets the number of sessions logged into the session service.

Specified by:
getNumSessions in interface ClientSessionServiceMXBean
Returns:
the number of sessions logged in

getLoginHighWater

public int getLoginHighWater()
Description copied from interface: ClientSessionServiceMXBean
Gets the login high water.

Specified by:
getLoginHighWater in interface ClientSessionServiceMXBean
Returns:
the login high water

setLoginHighWater

public void setLoginHighWater(int highWater)
Description copied from interface: ClientSessionServiceMXBean
Sets the login high water.

Specified by:
setLoginHighWater in interface ClientSessionServiceMXBean
Parameters:
highWater - the high water value

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