public class MasterTxIdGenerator extends Object implements org.neo4j.kernel.impl.transaction.xaframework.TxIdGenerator, org.neo4j.kernel.lifecycle.Lifecycle
| Modifier and Type | Class and Description |
|---|---|
static interface |
MasterTxIdGenerator.Configuration |
| Constructor and Description |
|---|
MasterTxIdGenerator(MasterTxIdGenerator.Configuration config,
org.neo4j.kernel.impl.util.StringLogger log,
Slaves slaves) |
| Modifier and Type | Method and Description |
|---|---|
void |
committed(org.neo4j.kernel.impl.transaction.xaframework.XaDataSource dataSource,
int identifier,
long txId,
Integer externalAuthorServerId) |
static MasterTxIdGenerator.Configuration |
from(org.neo4j.kernel.configuration.Config config) |
static MasterTxIdGenerator.Configuration |
from(org.neo4j.kernel.configuration.Config config,
SlavePriority slavePriority) |
long |
generate(org.neo4j.kernel.impl.transaction.xaframework.XaDataSource dataSource,
int identifier) |
int |
getCurrentMasterId() |
int |
getMyId() |
void |
init() |
void |
shutdown() |
void |
start() |
void |
stop() |
public MasterTxIdGenerator(MasterTxIdGenerator.Configuration config, org.neo4j.kernel.impl.util.StringLogger log, Slaves slaves)
public static MasterTxIdGenerator.Configuration from(org.neo4j.kernel.configuration.Config config)
public static MasterTxIdGenerator.Configuration from(org.neo4j.kernel.configuration.Config config, SlavePriority slavePriority)
public void init()
throws Throwable
init in interface org.neo4j.kernel.lifecycle.LifecycleThrowablepublic void start()
throws Throwable
start in interface org.neo4j.kernel.lifecycle.LifecycleThrowablepublic void stop()
throws Throwable
stop in interface org.neo4j.kernel.lifecycle.LifecycleThrowablepublic void shutdown()
throws Throwable
shutdown in interface org.neo4j.kernel.lifecycle.LifecycleThrowablepublic long generate(org.neo4j.kernel.impl.transaction.xaframework.XaDataSource dataSource,
int identifier)
throws XAException
generate in interface org.neo4j.kernel.impl.transaction.xaframework.TxIdGeneratorXAExceptionpublic void committed(org.neo4j.kernel.impl.transaction.xaframework.XaDataSource dataSource,
int identifier,
long txId,
Integer externalAuthorServerId)
committed in interface org.neo4j.kernel.impl.transaction.xaframework.TxIdGeneratorpublic int getCurrentMasterId()
getCurrentMasterId in interface org.neo4j.kernel.impl.transaction.xaframework.TxIdGeneratorpublic int getMyId()
getMyId in interface org.neo4j.kernel.impl.transaction.xaframework.TxIdGeneratorCopyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.