|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.rep.stream.MasterStatus
public class MasterStatus
Class used by a node to track changes in Master Status. It's updated by the Listener. It represents the abstract notion that the notion of the current Replica Group is definitive and is always in advance of the notion of a master at each node. A node is typically playing catch up as it tries to bring its view in line with that of the group.
Nested Class Summary | |
---|---|
class |
MasterStatus.MasterSyncException
|
Constructor Summary | |
---|---|
MasterStatus(NameIdPair nameIdPair)
|
Method Summary | |
---|---|
void |
assertSync()
An assertion form of the above. |
Object |
clone()
Returns a read-only snapshot of the object. |
NameIdPair |
getGroupMasterNameId()
|
InetSocketAddress |
getNodeMaster()
Returns the Node's current idea of the Master. |
NameIdPair |
getNodeMasterNameId()
|
boolean |
inSync()
Predicate to determine whether the group and node have a consistent notion of the Master. |
boolean |
isGroupMaster()
Returns true if it's the master from the Group's perspective |
boolean |
isNodeMaster()
Returns true if it's the master from the node's localized perspective |
void |
setGroupMaster(InetSocketAddress newGroupMaster,
NameIdPair newGroupMasterNameId)
|
void |
sync()
Syncs to the group master |
void |
unSync()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MasterStatus(NameIdPair nameIdPair)
Method Detail |
---|
public Object clone()
clone
in class Object
public boolean isGroupMaster()
public boolean isNodeMaster()
public void setGroupMaster(InetSocketAddress newGroupMaster, NameIdPair newGroupMasterNameId)
public boolean inSync()
public void unSync()
public void assertSync() throws MasterStatus.MasterSyncException
MasterStatus.MasterSyncException
public void sync()
public InetSocketAddress getNodeMaster()
public NameIdPair getNodeMasterNameId()
public NameIdPair getGroupMasterNameId()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |