public final class ReplicationEndpoint extends Object implements ChannelHandler, HornetQComponent
| Modifier and Type | Class and Description |
|---|---|
static class |
ReplicationEndpoint.JournalSyncFile |
| Constructor and Description |
|---|
ReplicationEndpoint(HornetQServerImpl server,
IOCriticalErrorListener criticalErrorListener,
boolean wantedFailBack) |
| Modifier and Type | Method and Description |
|---|---|
void |
compareJournalInformation(JournalLoadInformation[] journalInformation) |
Channel |
getChannel() |
void |
handlePacket(Packet packet)
called by the channel when a packet is received..
|
boolean |
isStarted() |
void |
registerJournal(byte id,
Journal journal) |
void |
setChannel(Channel channel) |
void |
setDeletePages(boolean deletePages)
Used on tests only.
|
void |
setExecutor(Executor executor2) |
void |
setQuorumManager(QuorumManager quorumManager)
Sets the quorumManager used by the server in the replicationEndpoint.
|
void |
start() |
void |
stop() |
public ReplicationEndpoint(HornetQServerImpl server, IOCriticalErrorListener criticalErrorListener, boolean wantedFailBack)
public void registerJournal(byte id,
Journal journal)
public void handlePacket(Packet packet)
ChannelHandlerhandlePacket in interface ChannelHandlerpacket - the packet receivedpublic boolean isStarted()
isStarted in interface HornetQComponentpublic void start()
throws Exception
start in interface HornetQComponentExceptionpublic void stop()
throws Exception
stop in interface HornetQComponentExceptionpublic Channel getChannel()
public void setChannel(Channel channel)
public void compareJournalInformation(JournalLoadInformation[] journalInformation) throws HornetQException
HornetQExceptionpublic void setDeletePages(boolean deletePages)
public void setQuorumManager(QuorumManager quorumManager)
quorumManager - public void setExecutor(Executor executor2)
executor2 - Copyright © 2016 JBoss, a division of Red Hat. All rights reserved.