org.neo4j.kernel.ha
Class MasterTxIdGenerator

java.lang.Object
  extended by org.neo4j.kernel.ha.MasterTxIdGenerator
All Implemented Interfaces:
org.neo4j.kernel.impl.transaction.xaframework.TxIdGenerator, org.neo4j.kernel.lifecycle.Lifecycle

public class MasterTxIdGenerator
extends Object
implements org.neo4j.kernel.impl.transaction.xaframework.TxIdGenerator


Field Summary
 
Fields inherited from interface org.neo4j.kernel.impl.transaction.xaframework.TxIdGenerator
DEFAULT
 
Constructor Summary
MasterTxIdGenerator(Broker broker, int desiredReplicationFactor, SlavePriority replicationStrategy, org.neo4j.kernel.impl.util.StringLogger log)
           
 
Method Summary
 void committed(org.neo4j.kernel.impl.transaction.xaframework.XaDataSource dataSource, int identifier, long txId, Integer externalAuthorServerId)
           
 long generate(org.neo4j.kernel.impl.transaction.xaframework.XaDataSource dataSource, int identifier)
           
 int getCurrentMasterId()
           
 int getMyId()
           
 void init()
           
 void shutdown()
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MasterTxIdGenerator

public MasterTxIdGenerator(Broker broker,
                           int desiredReplicationFactor,
                           SlavePriority replicationStrategy,
                           org.neo4j.kernel.impl.util.StringLogger log)
Method Detail

generate

public long generate(org.neo4j.kernel.impl.transaction.xaframework.XaDataSource dataSource,
                     int identifier)
              throws XAException
Specified by:
generate in interface org.neo4j.kernel.impl.transaction.xaframework.TxIdGenerator
Throws:
XAException

committed

public void committed(org.neo4j.kernel.impl.transaction.xaframework.XaDataSource dataSource,
                      int identifier,
                      long txId,
                      Integer externalAuthorServerId)
Specified by:
committed in interface org.neo4j.kernel.impl.transaction.xaframework.TxIdGenerator

getCurrentMasterId

public int getCurrentMasterId()
Specified by:
getCurrentMasterId in interface org.neo4j.kernel.impl.transaction.xaframework.TxIdGenerator

getMyId

public int getMyId()
Specified by:
getMyId in interface org.neo4j.kernel.impl.transaction.xaframework.TxIdGenerator

init

public void init()
          throws Throwable
Specified by:
init in interface org.neo4j.kernel.lifecycle.Lifecycle
Throws:
Throwable

start

public void start()
           throws Throwable
Specified by:
start in interface org.neo4j.kernel.lifecycle.Lifecycle
Throws:
Throwable

stop

public void stop()
          throws Throwable
Specified by:
stop in interface org.neo4j.kernel.lifecycle.Lifecycle
Throws:
Throwable

shutdown

public void shutdown()
              throws Throwable
Specified by:
shutdown in interface org.neo4j.kernel.lifecycle.Lifecycle
Throws:
Throwable


Copyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.