Berkeley DB Java Edition
version 5.0.34

com.sleepycat.je.rep
Class NodeState

java.lang.Object
  extended by com.sleepycat.je.rep.NodeState

public class NodeState
extends Object

The current state of a replication node and the application this node is running in.

This includes the following information:

Since:
5.0

Method Summary
 int getActiveFeeders()
          Returns the number of current active Feeders running on this node.
 byte[] getAppState()
          Returns the application state which is obtained via AppStateMonitor.getAppState().
 long getCurrentTxnEndVLSN()
          Returns the latest transaction end VLSN on this replication node.
 String getGroupName()
          Returns the name of the group which the node joins.
 JEVersion getJEVersion()
          Returns the current JEVersion that this node runs on.
 long getJoinTime()
          Returns the time when this node joins the replication group.
 long getKnownMasterTxnEndVLSN()
          Returns the transaction end VLSN on the master known by this node.
 int getLogVersion()
          Returns the log version of this node.
 String getMasterName()
          Returns the name of the current master known by this node.
 String getNodeName()
          Returns the name of the node whose state is requested.
 ReplicatedEnvironment.State getNodeState()
          Returns the replication state of this node.
 double getSystemLoad()
          Returns the system load average for the last minute.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getNodeName

public String getNodeName()
Returns the name of the node whose state is requested.

Returns:
the name of the node.

getGroupName

public String getGroupName()
Returns the name of the group which the node joins.

Returns:
name of the group which the node joins

getNodeState

public ReplicatedEnvironment.State getNodeState()
Returns the replication state of this node.

Returns:
the replication state of this node.

getMasterName

public String getMasterName()
Returns the name of the current master known by this node.

Returns:
the name of the current master

getJEVersion

public JEVersion getJEVersion()
Returns the current JEVersion that this node runs on.

Returns:
the current JEVersion used by this node.

getJoinTime

public long getJoinTime()
Returns the time when this node joins the replication group.

Returns:
the time when this node joins the group

getCurrentTxnEndVLSN

public long getCurrentTxnEndVLSN()
Returns the latest transaction end VLSN on this replication node.

Returns:
the commit VLSN on this node

getKnownMasterTxnEndVLSN

public long getKnownMasterTxnEndVLSN()
Returns the transaction end VLSN on the master known by this node.

Returns:
the known commit VLSN on master

getActiveFeeders

public int getActiveFeeders()
Returns the number of current active Feeders running on this node.

Returns:
the number of running Feeders on the node

getLogVersion

public int getLogVersion()
Returns the log version of this node.

Returns:
the log version of this node.

getAppState

public byte[] getAppState()
Returns the application state which is obtained via AppStateMonitor.getAppState().

Returns:
the application state

getSystemLoad

public double getSystemLoad()
Returns the system load average for the last minute.

Returns:
the system average load, -1.0 if the node is running on jdk5 or exceptions thrown while getting this information.

toString

public String toString()
Overrides:
toString in class Object

Berkeley DB Java Edition
version 5.0.34

Copyright (c) 2004-2011 Oracle. All rights reserved.