Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.util
Class CoherenceInfo.NodeInfo

java.lang.Object
  extended by com.jivesoftware.util.CoherenceInfo.NodeInfo
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
CoherenceInfo

public static class CoherenceInfo.NodeInfo
extends java.lang.Object
implements java.io.Serializable

Encapsulates statistics and information about a cluster node.

See Also:
Serialized Form

Method Summary
 long getFreeMem()
          Returns the amount of free memory in the cluster node's VM (in bytes).
 long getMaxMem()
          Returns the max amount of memory in the cluster node's VM (in bytes).
 long[] getPublisherStats()
          Returns statistics about the packet publisher on the node.
 long[] getReceiverStats()
          Returns statistics about the packet receiver on the node.
 long getTime()
          Returns the current time on the cluster node in long format.
 long getTotalMem()
          Returns the total amount of memory in the cluster node's VM (in bytes).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getFreeMem

public long getFreeMem()
Returns the amount of free memory in the cluster node's VM (in bytes).

Returns:
the amount of free memory on the cluster node.

getTotalMem

public long getTotalMem()
Returns the total amount of memory in the cluster node's VM (in bytes).

Returns:
the total amount of memory on the cluster node.

getMaxMem

public long getMaxMem()
Returns the max amount of memory in the cluster node's VM (in bytes).

Returns:
the max amount of memory on the cluster node.

getTime

public long getTime()
Returns the current time on the cluster node in long format. This is useful monitoring information for applications that require the local times of each cluster member be to roughly in-synch (on top of the standard Coherence cluster time).

This value will always be somewhat inaccurate due to network delays, etc, so should only be taken as an approximate value.

Returns:
the local time of the cluster node.

getPublisherStats

public long[] getPublisherStats()
Returns statistics about the packet publisher on the node. The following stat values are valid array indexes:

Returns:
packet publisher stats.

getReceiverStats

public long[] getReceiverStats()
Returns statistics about the packet receiver on the node. The following stat values are valid array indexes:

Returns:
packet reciever stats.

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.