org.neo4j.com
Class SlaveContext
java.lang.Object
org.neo4j.com.SlaveContext
public final class SlaveContext
- extends Object
A representation of the context in which an HA slave operates. Contains
the machine id a list of the last applied transaction id for each
datasource an event identifier, the txid of the most recent local
top level tx a session id, the startup time of the database
|
Constructor Summary |
SlaveContext(long sessionId,
int machineId,
int eventIdentifier,
SlaveContext.Tx[] lastAppliedTransactions,
int masterId,
long checksum)
|
EMPTY
public static SlaveContext EMPTY
SlaveContext
public SlaveContext(long sessionId,
int machineId,
int eventIdentifier,
SlaveContext.Tx[] lastAppliedTransactions,
int masterId,
long checksum)
lastAppliedTx
public static SlaveContext.Tx lastAppliedTx(String dataSourceName,
long txId)
machineId
public int machineId()
lastAppliedTransactions
public SlaveContext.Tx[] lastAppliedTransactions()
getEventIdentifier
public int getEventIdentifier()
getSessionId
public long getSessionId()
getMasterId
public int getMasterId()
getChecksum
public long getChecksum()
toString
public String toString()
- Overrides:
toString in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
anonymous
public static SlaveContext anonymous(SlaveContext.Tx[] lastAppliedTransactions)
Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.