org.neo4j.com
Class SlaveContext

java.lang.Object
  extended by 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

  • Nested Class Summary
    static class SlaveContext.Tx
               
     
    Field Summary
    static SlaveContext EMPTY
               
     
    Constructor Summary
    SlaveContext(long sessionId, int machineId, int eventIdentifier, SlaveContext.Tx[] lastAppliedTransactions, int masterId, long checksum)
               
     
    Method Summary
    static SlaveContext anonymous(SlaveContext.Tx[] lastAppliedTransactions)
               
     boolean equals(Object obj)
               
     long getChecksum()
               
     int getEventIdentifier()
               
     int getMasterId()
               
     long getSessionId()
               
     int hashCode()
               
     SlaveContext.Tx[] lastAppliedTransactions()
               
    static SlaveContext.Tx lastAppliedTx(String dataSourceName, long txId)
               
     int machineId()
               
     String toString()
               
     
    Methods inherited from class java.lang.Object
    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
     

    Field Detail

    EMPTY

    public static SlaveContext EMPTY
    Constructor Detail

    SlaveContext

    public SlaveContext(long sessionId,
                        int machineId,
                        int eventIdentifier,
                        SlaveContext.Tx[] lastAppliedTransactions,
                        int masterId,
                        long checksum)
    Method Detail

    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.