public interface Master
| Modifier and Type | Method and Description |
|---|---|
org.neo4j.com.Response<LockResult> |
acquireExclusiveLock(org.neo4j.com.RequestContext context,
org.neo4j.storageengine.api.lock.ResourceType type,
long... resourceIds) |
org.neo4j.com.Response<LockResult> |
acquireSharedLock(org.neo4j.com.RequestContext context,
org.neo4j.storageengine.api.lock.ResourceType type,
long... resourceIds) |
org.neo4j.com.Response<IdAllocation> |
allocateIds(org.neo4j.com.RequestContext context,
org.neo4j.kernel.impl.store.id.IdType idType) |
org.neo4j.com.Response<Long> |
commit(org.neo4j.com.RequestContext context,
org.neo4j.kernel.impl.transaction.TransactionRepresentation channel)
Calling this method will validate, persist to log and apply changes to stores on
the master.
|
org.neo4j.com.Response<Void> |
copyStore(org.neo4j.com.RequestContext context,
org.neo4j.com.storecopy.StoreWriter writer) |
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> |
endLockSession(org.neo4j.com.RequestContext context,
boolean success)
Calling this will end the current lock session (identified by the
RequestContext),
releasing all cluster-global locks held. |
org.neo4j.com.Response<HandshakeResult> |
handshake(long txId,
org.neo4j.kernel.impl.store.StoreId myStoreId)
Gets the master id for a given txId, also a checksum for that tx.
|
org.neo4j.com.Response<Void> |
newLockSession(org.neo4j.com.RequestContext context)
Calling this method will create a new session with the cluster lock manager and associate that
session with the provided
RequestContext. |
org.neo4j.com.Response<Void> |
pullUpdates(org.neo4j.com.RequestContext context) |
org.neo4j.com.Response<IdAllocation> allocateIds(org.neo4j.com.RequestContext context, org.neo4j.kernel.impl.store.id.IdType idType)
org.neo4j.com.Response<Integer> createRelationshipType(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> createLabel(org.neo4j.com.RequestContext context, String name)
org.neo4j.com.Response<Long> commit(org.neo4j.com.RequestContext context, org.neo4j.kernel.impl.transaction.TransactionRepresentation channel) throws IOException, org.neo4j.kernel.api.exceptions.TransactionFailureException
IOExceptionorg.neo4j.kernel.api.exceptions.TransactionFailureExceptionorg.neo4j.com.Response<Void> newLockSession(org.neo4j.com.RequestContext context) throws org.neo4j.kernel.api.exceptions.TransactionFailureException
RequestContext.org.neo4j.kernel.api.exceptions.TransactionFailureExceptionorg.neo4j.com.Response<Void> endLockSession(org.neo4j.com.RequestContext context, boolean success)
RequestContext),
releasing all cluster-global locks held.org.neo4j.com.Response<HandshakeResult> handshake(long txId, org.neo4j.kernel.impl.store.StoreId myStoreId)
txId - the transaction id to get the data for.myStoreId - clients store id.org.neo4j.com.Response<Void> pullUpdates(org.neo4j.com.RequestContext context)
org.neo4j.com.Response<Void> copyStore(org.neo4j.com.RequestContext context, org.neo4j.com.storecopy.StoreWriter writer)
org.neo4j.com.Response<LockResult> acquireExclusiveLock(org.neo4j.com.RequestContext context, org.neo4j.storageengine.api.lock.ResourceType type, long... resourceIds)
org.neo4j.com.Response<LockResult> acquireSharedLock(org.neo4j.com.RequestContext context, org.neo4j.storageengine.api.lock.ResourceType type, long... resourceIds)
Copyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.