public class MasterClient153 extends org.neo4j.com.Client<Master> implements Master, MasterClient
Master a slave should use to communicate with its master. It
serializes requests and sends them to the master, more specifically
MasterServer (which delegates to MasterImpl on the master
side.| Modifier and Type | Class and Description |
|---|---|
protected static class |
MasterClient153.AcquireIndexLockSerializer |
protected static class |
MasterClient153.AcquireLockSerializer |
static class |
MasterClient153.AquireLockCall |
| Modifier and Type | Field and Description |
|---|---|
protected static org.neo4j.com.Deserializer<LockResult> |
LOCK_RESULT_DESERIALIZER |
static byte |
PROTOCOL_VERSION |
| Constructor and Description |
|---|
MasterClient153(String hostNameOrIp,
int port,
org.neo4j.kernel.logging.Logging logging,
org.neo4j.kernel.impl.nioneo.store.StoreId storeId,
int readTimeoutSeconds,
int lockReadTimeout,
int maxConcurrentChannels,
int chunkSize) |
| Modifier and Type | Method and Description |
|---|---|
org.neo4j.com.Response<LockResult> |
acquireGraphReadLock(org.neo4j.com.RequestContext context) |
org.neo4j.com.Response<LockResult> |
acquireGraphWriteLock(org.neo4j.com.RequestContext context) |
org.neo4j.com.Response<LockResult> |
acquireIndexReadLock(org.neo4j.com.RequestContext context,
String index,
String key) |
org.neo4j.com.Response<LockResult> |
acquireIndexWriteLock(org.neo4j.com.RequestContext context,
String index,
String key) |
org.neo4j.com.Response<LockResult> |
acquireNodeReadLock(org.neo4j.com.RequestContext context,
long... nodes) |
org.neo4j.com.Response<LockResult> |
acquireNodeWriteLock(org.neo4j.com.RequestContext context,
long... nodes) |
org.neo4j.com.Response<LockResult> |
acquireRelationshipReadLock(org.neo4j.com.RequestContext context,
long... relationships) |
org.neo4j.com.Response<LockResult> |
acquireRelationshipWriteLock(org.neo4j.com.RequestContext context,
long... relationships) |
org.neo4j.com.Response<LockResult> |
acquireSchemaReadLock(org.neo4j.com.RequestContext context) |
org.neo4j.com.Response<LockResult> |
acquireSchemaWriteLock(org.neo4j.com.RequestContext context) |
org.neo4j.com.Response<IdAllocation> |
allocateIds(org.neo4j.kernel.IdType idType) |
org.neo4j.com.Response<Long> |
commitSingleResourceTransaction(org.neo4j.com.RequestContext context,
String resource,
org.neo4j.com.TxExtractor txGetter) |
org.neo4j.com.Response<Void> |
copyStore(org.neo4j.com.RequestContext context,
org.neo4j.com.StoreWriter writer) |
org.neo4j.com.Response<Void> |
copyTransactions(org.neo4j.com.RequestContext context,
String ds,
long startTxId,
long endTxId) |
org.neo4j.com.Response<Integer> |
createLabel(org.neo4j.com.RequestContext context,
String name) |
org.neo4j.com.Response<Integer> |
createPropertyKey(org.neo4j.com.RequestContext context,
String name) |
org.neo4j.com.Response<Integer> |
createRelationshipType(org.neo4j.com.RequestContext context,
String name) |
org.neo4j.com.Response<Void> |
finishTransaction(org.neo4j.com.RequestContext context,
boolean success) |
org.neo4j.com.Response<org.neo4j.helpers.Pair<Integer,Long>> |
getMasterIdForCommittedTx(long txId,
org.neo4j.kernel.impl.nioneo.store.StoreId storeId)
Gets the master id for a given txId, also a checksum for that tx.
|
protected long |
getReadTimeout(org.neo4j.com.RequestType<Master> type,
long readTimeout) |
org.neo4j.com.Response<Void> |
initializeTx(org.neo4j.com.RequestContext context)
Called when the first write operation of lock is performed for a transaction.
|
org.neo4j.com.Response<Void> |
pullUpdates(org.neo4j.com.RequestContext context) |
org.neo4j.com.Response<Void> |
pushTransaction(org.neo4j.com.RequestContext context,
String resourceName,
long tx) |
protected static IdAllocation |
readIdAllocation(org.jboss.netty.buffer.ChannelBuffer buffer) |
void |
rollbackOngoingTransactions(org.neo4j.com.RequestContext context) |
protected boolean |
shouldCheckStoreId(org.neo4j.com.RequestType<Master> type) |
addMismatchingVersionHandler, closeChannel, getInternalProtocolVersion, getPipeline, getStoreId, readTransactionStreamHeader, readTransactionStreams, releaseChannel, sendRequest, sendRequest, start, stop, toString, writeContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddMismatchingVersionHandlerpublic static final byte PROTOCOL_VERSION
protected static final org.neo4j.com.Deserializer<LockResult> LOCK_RESULT_DESERIALIZER
public MasterClient153(String hostNameOrIp, int port, org.neo4j.kernel.logging.Logging logging, org.neo4j.kernel.impl.nioneo.store.StoreId storeId, int readTimeoutSeconds, int lockReadTimeout, int maxConcurrentChannels, int chunkSize)
protected long getReadTimeout(org.neo4j.com.RequestType<Master> type, long readTimeout)
getReadTimeout in class org.neo4j.com.Client<Master>protected boolean shouldCheckStoreId(org.neo4j.com.RequestType<Master> type)
shouldCheckStoreId in class org.neo4j.com.Client<Master>public org.neo4j.com.Response<IdAllocation> allocateIds(org.neo4j.kernel.IdType idType)
allocateIds in interface Masterpublic org.neo4j.com.Response<Integer> createRelationshipType(org.neo4j.com.RequestContext context, String name)
createRelationshipType in interface MastercreateRelationshipType in interface MasterClientpublic org.neo4j.com.Response<Integer> createPropertyKey(org.neo4j.com.RequestContext context, String name)
createPropertyKey in interface Masterpublic org.neo4j.com.Response<Integer> createLabel(org.neo4j.com.RequestContext context, String name)
createLabel in interface Masterpublic org.neo4j.com.Response<Void> initializeTx(org.neo4j.com.RequestContext context)
MasterinitializeTx in interface MasterinitializeTx in interface MasterClientpublic org.neo4j.com.Response<LockResult> acquireNodeWriteLock(org.neo4j.com.RequestContext context, long... nodes)
acquireNodeWriteLock in interface Masterpublic org.neo4j.com.Response<LockResult> acquireNodeReadLock(org.neo4j.com.RequestContext context, long... nodes)
acquireNodeReadLock in interface MasteracquireNodeReadLock in interface MasterClientpublic org.neo4j.com.Response<LockResult> acquireRelationshipWriteLock(org.neo4j.com.RequestContext context, long... relationships)
acquireRelationshipWriteLock in interface MasteracquireRelationshipWriteLock in interface MasterClientpublic org.neo4j.com.Response<LockResult> acquireRelationshipReadLock(org.neo4j.com.RequestContext context, long... relationships)
acquireRelationshipReadLock in interface MasteracquireRelationshipReadLock in interface MasterClientpublic org.neo4j.com.Response<LockResult> acquireIndexReadLock(org.neo4j.com.RequestContext context, String index, String key)
acquireIndexReadLock in interface MasteracquireIndexReadLock in interface MasterClientpublic org.neo4j.com.Response<LockResult> acquireIndexWriteLock(org.neo4j.com.RequestContext context, String index, String key)
acquireIndexWriteLock in interface MasteracquireIndexWriteLock in interface MasterClientpublic org.neo4j.com.Response<LockResult> acquireSchemaReadLock(org.neo4j.com.RequestContext context)
acquireSchemaReadLock in interface Masterpublic org.neo4j.com.Response<LockResult> acquireSchemaWriteLock(org.neo4j.com.RequestContext context)
acquireSchemaWriteLock in interface Masterpublic org.neo4j.com.Response<Long> commitSingleResourceTransaction(org.neo4j.com.RequestContext context, String resource, org.neo4j.com.TxExtractor txGetter)
commitSingleResourceTransaction in interface MastercommitSingleResourceTransaction in interface MasterClientpublic org.neo4j.com.Response<Void> finishTransaction(org.neo4j.com.RequestContext context, boolean success)
finishTransaction in interface MasterfinishTransaction in interface MasterClientpublic void rollbackOngoingTransactions(org.neo4j.com.RequestContext context)
rollbackOngoingTransactions in interface MasterClientpublic org.neo4j.com.Response<Void> pullUpdates(org.neo4j.com.RequestContext context)
pullUpdates in interface MasterpullUpdates in interface MasterClientpublic org.neo4j.com.Response<org.neo4j.helpers.Pair<Integer,Long>> getMasterIdForCommittedTx(long txId, org.neo4j.kernel.impl.nioneo.store.StoreId storeId)
MastergetMasterIdForCommittedTx in interface MastertxId - the transaction id to get the data for.storeId - clients store id.public org.neo4j.com.Response<Void> copyStore(org.neo4j.com.RequestContext context, org.neo4j.com.StoreWriter writer)
copyStore in interface MastercopyStore in interface MasterClientpublic org.neo4j.com.Response<Void> copyTransactions(org.neo4j.com.RequestContext context, String ds, long startTxId, long endTxId)
copyTransactions in interface MastercopyTransactions in interface MasterClientprotected static IdAllocation readIdAllocation(org.jboss.netty.buffer.ChannelBuffer buffer)
public org.neo4j.com.Response<LockResult> acquireGraphWriteLock(org.neo4j.com.RequestContext context)
acquireGraphWriteLock in interface MasteracquireGraphWriteLock in interface MasterClientpublic org.neo4j.com.Response<LockResult> acquireGraphReadLock(org.neo4j.com.RequestContext context)
acquireGraphReadLock in interface MasteracquireGraphReadLock in interface MasterClientpublic org.neo4j.com.Response<Void> pushTransaction(org.neo4j.com.RequestContext context, String resourceName, long tx)
pushTransaction in interface MasterCopyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.