com.sleepycat.je.rep.impl.node
Class NodeState

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

public class NodeState
extends Object

NodeState encapsulates the current replicator state, and the ability to wait for state transition and fire state change notifications.


Constructor Summary
NodeState(NameIdPair nameIdPair, RepImpl repImpl)
           
 
Method Summary
 void changeAndNotify(ReplicatedEnvironment.State state, NameIdPair masterNameId)
          Change to a new node state and release any threads waiting for a state transition.
 StateChangeListener getChangeListener()
           
 ReplicatedEnvironment.State getRepEnvState()
           
 StateChangeEvent getStateChangeEvent()
           
 void setChangeListener(StateChangeListener stateChangeListener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeState

public NodeState(NameIdPair nameIdPair,
                 RepImpl repImpl)
Method Detail

setChangeListener

public void setChangeListener(StateChangeListener stateChangeListener)

getChangeListener

public StateChangeListener getChangeListener()

changeAndNotify

public void changeAndNotify(ReplicatedEnvironment.State state,
                            NameIdPair masterNameId)
Change to a new node state and release any threads waiting for a state transition.


getRepEnvState

public ReplicatedEnvironment.State getRepEnvState()

getStateChangeEvent

public StateChangeEvent getStateChangeEvent()


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