org.neo4j.kernel.ha
Class SlaveTxIdGenerator
java.lang.Object
org.neo4j.kernel.ha.SlaveTxIdGenerator
- All Implemented Interfaces:
- org.neo4j.kernel.impl.transaction.xaframework.TxIdGenerator, org.neo4j.kernel.lifecycle.Lifecycle
public class SlaveTxIdGenerator
- extends Object
- implements org.neo4j.kernel.impl.transaction.xaframework.TxIdGenerator
| Fields inherited from interface org.neo4j.kernel.impl.transaction.xaframework.TxIdGenerator |
DEFAULT |
|
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 |
SlaveTxIdGenerator
public SlaveTxIdGenerator(Broker broker,
SlaveDatabaseOperations databaseOperations,
TransactionManager txManager)
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
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
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
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.