com.sleepycat.je.rep.impl.node
Class NodeState
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NodeState
public NodeState(NameIdPair nameIdPair,
RepImpl repImpl)
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.