public class ReplicationManagerImpl extends Object implements ReplicationManager
Modifier and Type | Class and Description |
---|---|
protected class |
ReplicationManagerImpl.ResponseHandler |
Constructor and Description |
---|
ReplicationManagerImpl(ClientSessionFactoryInternal sessionFactory,
ExecutorFactory executorFactory) |
Modifier and Type | Method and Description |
---|---|
void |
appendAddRecord(byte journalID,
long id,
byte recordType,
EncodingSupport record) |
void |
appendAddRecordTransactional(byte journalID,
long txID,
long id,
byte recordType,
EncodingSupport record) |
void |
appendCommitRecord(byte journalID,
long txID,
boolean lineUp) |
void |
appendDeleteRecord(byte journalID,
long id) |
void |
appendDeleteRecordTransactional(byte journalID,
long txID,
long id) |
void |
appendDeleteRecordTransactional(byte journalID,
long txID,
long id,
EncodingSupport record) |
void |
appendPrepareRecord(byte journalID,
long txID,
EncodingSupport transactionData) |
void |
appendRollbackRecord(byte journalID,
long txID) |
void |
appendUpdateRecord(byte journalID,
long id,
byte recordType,
EncodingSupport record) |
void |
appendUpdateRecordTransactional(byte journalID,
long txID,
long id,
byte recordType,
EncodingSupport record) |
void |
compareJournals(JournalLoadInformation[] journalInfo) |
Set<OperationContext> |
getActiveTokens()
A list of tokens that are still waiting for replications to be completed
|
boolean |
isStarted() |
void |
largeMessageBegin(long messageId) |
void |
largeMessageDelete(long messageId) |
void |
largeMessageWrite(long messageId,
byte[] body) |
void |
pageClosed(SimpleString storeName,
int pageNumber) |
void |
pageDeleted(SimpleString storeName,
int pageNumber) |
void |
pageWrite(PagedMessage message,
int pageNumber) |
void |
start() |
void |
stop() |
public ReplicationManagerImpl(ClientSessionFactoryInternal sessionFactory, ExecutorFactory executorFactory)
public void appendAddRecord(byte journalID, long id, byte recordType, EncodingSupport record)
appendAddRecord
in interface ReplicationManager
public void appendUpdateRecord(byte journalID, long id, byte recordType, EncodingSupport record) throws Exception
appendUpdateRecord
in interface ReplicationManager
Exception
public void appendDeleteRecord(byte journalID, long id) throws Exception
appendDeleteRecord
in interface ReplicationManager
Exception
public void appendAddRecordTransactional(byte journalID, long txID, long id, byte recordType, EncodingSupport record) throws Exception
appendAddRecordTransactional
in interface ReplicationManager
Exception
public void appendUpdateRecordTransactional(byte journalID, long txID, long id, byte recordType, EncodingSupport record) throws Exception
appendUpdateRecordTransactional
in interface ReplicationManager
Exception
public void appendCommitRecord(byte journalID, long txID, boolean lineUp) throws Exception
appendCommitRecord
in interface ReplicationManager
Exception
public void appendDeleteRecordTransactional(byte journalID, long txID, long id, EncodingSupport record) throws Exception
appendDeleteRecordTransactional
in interface ReplicationManager
Exception
public void appendDeleteRecordTransactional(byte journalID, long txID, long id) throws Exception
appendDeleteRecordTransactional
in interface ReplicationManager
Exception
public void appendPrepareRecord(byte journalID, long txID, EncodingSupport transactionData) throws Exception
appendPrepareRecord
in interface ReplicationManager
Exception
public void appendRollbackRecord(byte journalID, long txID) throws Exception
appendRollbackRecord
in interface ReplicationManager
Exception
public void pageClosed(SimpleString storeName, int pageNumber)
pageClosed
in interface ReplicationManager
public void pageDeleted(SimpleString storeName, int pageNumber)
pageDeleted
in interface ReplicationManager
public void pageWrite(PagedMessage message, int pageNumber)
pageWrite
in interface ReplicationManager
public void largeMessageBegin(long messageId)
largeMessageBegin
in interface ReplicationManager
public void largeMessageDelete(long messageId)
largeMessageDelete
in interface ReplicationManager
public void largeMessageWrite(long messageId, byte[] body)
largeMessageWrite
in interface ReplicationManager
public boolean isStarted()
isStarted
in interface HornetQComponent
public void start() throws Exception
start
in interface HornetQComponent
Exception
public void stop() throws Exception
stop
in interface HornetQComponent
Exception
public Set<OperationContext> getActiveTokens()
ReplicationManager
getActiveTokens
in interface ReplicationManager
public void compareJournals(JournalLoadInformation[] journalInfo) throws HornetQException
compareJournals
in interface ReplicationManager
HornetQException
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.