|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Master
Represents the master-side of the HA communication between master and slave. A master will receive calls to these methods from slaves when they do stuff.
| Method Detail |
|---|
Response<IdAllocation> allocateIds(IdType idType)
Response<Integer> createRelationshipType(SlaveContext context,
String name)
Response<Void> initializeTx(SlaveContext context)
Response<LockResult> acquireNodeWriteLock(SlaveContext context,
long... nodes)
Response<LockResult> acquireNodeReadLock(SlaveContext context,
long... nodes)
Response<LockResult> acquireRelationshipWriteLock(SlaveContext context,
long... relationships)
Response<LockResult> acquireRelationshipReadLock(SlaveContext context,
long... relationships)
Response<Long> commitSingleResourceTransaction(SlaveContext context,
String resource,
TxExtractor txGetter)
Response<Void> finishTransaction(SlaveContext context,
boolean success)
Response<Void> pullUpdates(SlaveContext context)
Response<Pair<Integer,Long>> getMasterIdForCommittedTx(long txId,
StoreId myStoreId)
txId - the transaction id to get the data for.myStoreId - clients store id.
Response<Void> copyStore(SlaveContext context,
StoreWriter writer)
Response<Void> copyTransactions(SlaveContext context,
String dsName,
long startTxId,
long endTxId)
void shutdown()
Response<LockResult> acquireIndexWriteLock(SlaveContext context,
String index,
String key)
Response<LockResult> acquireIndexReadLock(SlaveContext context,
String index,
String key)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||