public final class ReplicationEndpoint extends Object implements ChannelHandler, ActiveMQComponent
Modifier and Type | Class and Description |
---|---|
static class |
ReplicationEndpoint.JournalSyncFile |
Constructor and Description |
---|
ReplicationEndpoint(ActiveMQServerImpl server,
IOCriticalErrorListener criticalErrorListener,
boolean wantedFailBack,
SharedNothingBackupActivation activation) |
Modifier and Type | Method and Description |
---|---|
Channel |
getChannel() |
void |
handlePacket(Packet packet)
called by the channel when a packet is received..
|
boolean |
isStarted() |
void |
registerJournal(byte id,
Journal journal) |
void |
setBackupQuorum(SharedNothingBackupQuorum backupQuorum)
Sets the quorumManager used by the server in the replicationEndpoint.
|
void |
setChannel(Channel channel) |
void |
setExecutor(Executor executor2) |
void |
start() |
void |
stop() |
public ReplicationEndpoint(ActiveMQServerImpl server, IOCriticalErrorListener criticalErrorListener, boolean wantedFailBack, SharedNothingBackupActivation activation)
public void registerJournal(byte id, Journal journal)
public void handlePacket(Packet packet)
ChannelHandler
handlePacket
in interface ChannelHandler
packet
- the packet receivedpublic boolean isStarted()
isStarted
in interface ActiveMQComponent
public void start() throws Exception
start
in interface ActiveMQComponent
Exception
public void stop() throws Exception
stop
in interface ActiveMQComponent
Exception
public Channel getChannel()
public void setChannel(Channel channel)
public void setBackupQuorum(SharedNothingBackupQuorum backupQuorum)
backupQuorum
- public void setExecutor(Executor executor2)
executor2
- Copyright © 2017 JBoss by Red Hat. All rights reserved.