org.neo4j.kernel.ha.transaction
Class MasterTxIdGenerator
java.lang.Object
org.neo4j.kernel.ha.transaction.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, org.neo4j.kernel.lifecycle.Lifecycle
| Fields inherited from interface org.neo4j.kernel.impl.transaction.xaframework.TxIdGenerator |
DEFAULT |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MasterTxIdGenerator
public MasterTxIdGenerator(MasterTxIdGenerator.Configuration config,
org.neo4j.kernel.impl.util.StringLogger log,
Slaves slaves)
from
public static MasterTxIdGenerator.Configuration from(org.neo4j.kernel.configuration.Config config)
from
public static MasterTxIdGenerator.Configuration from(org.neo4j.kernel.configuration.Config config,
SlavePriority slavePriority)
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
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
Copyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.