public class MasterTxIdGenerator extends Object implements org.neo4j.kernel.impl.transaction.xaframework.TxIdGenerator, Lifecycle
| Modifier and Type | Class and Description |
|---|---|
static interface |
MasterTxIdGenerator.Configuration |
DEFAULT| 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(Config config) |
static MasterTxIdGenerator.Configuration |
from(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(Config config)
public static MasterTxIdGenerator.Configuration from(Config config, SlavePriority slavePriority)
public void init()
throws Throwable
public void start()
throws Throwable
public void stop()
throws Throwable
public void shutdown()
throws Throwable
public 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.