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 |
|---|---|
void |
addOutgoingInterceptorForReplication(Interceptor interceptor) |
void |
endOfBatch() |
Channel |
getChannel() |
ConcurrentMap<Long,ReplicatedLargeMessage> |
getLargeMessages()
This is for tests basically, do not use it as its API is not guaranteed for future usage.
|
void |
handlePacket(Packet packet)
called by the channel when a packet is received..
|
boolean |
isStarted() |
void |
pause()
This is for tests basically, do not use it as its API is not guaranteed for future usage.
|
void |
registerJournal(byte id,
Journal journal) |
void |
resume()
This is for tests basically, do not use it as its API is not guaranteed for future usage.
|
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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasyncStoppublic ReplicationEndpoint(ActiveMQServerImpl server, IOCriticalErrorListener criticalErrorListener, boolean wantedFailBack, SharedNothingBackupActivation activation)
public void registerJournal(byte id,
Journal journal)
public void addOutgoingInterceptorForReplication(Interceptor interceptor)
public void pause()
public void resume()
public void handlePacket(Packet packet)
ChannelHandlerhandlePacket in interface ChannelHandlerpacket - the packet receivedpublic void endOfBatch()
endOfBatch in interface ChannelHandlerpublic boolean isStarted()
isStarted in interface ActiveMQComponentpublic void start()
throws Exception
start in interface ActiveMQComponentExceptionpublic void stop()
throws Exception
stop in interface ActiveMQComponentExceptionpublic Channel getChannel()
public void setChannel(Channel channel)
public void setBackupQuorum(SharedNothingBackupQuorum backupQuorum)
backupQuorum - public void setExecutor(Executor executor2)
executor2 - public ConcurrentMap<Long,ReplicatedLargeMessage> getLargeMessages()
Copyright © 2022 JBoss by Red Hat. All rights reserved.