Class ReplicationEndpoint
- java.lang.Object
-
- org.apache.activemq.artemis.core.replication.ReplicationEndpoint
-
- All Implemented Interfaces:
ChannelHandler,ActiveMQComponent
public final class ReplicationEndpoint extends Object implements ChannelHandler, ActiveMQComponent
Handles all the synchronization necessary for replication on the backup side (that is the backup's side of the "remote backup" use case).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classReplicationEndpoint.JournalSyncFilestatic interfaceReplicationEndpoint.ReplicationEndpointEventListener
-
Constructor Summary
Constructors Constructor Description ReplicationEndpoint(ActiveMQServerImpl server, boolean wantedFailBack, ReplicationEndpoint.ReplicationEndpointEventListener eventListener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddOutgoingInterceptorForReplication(Interceptor interceptor)voidendOfBatch()ChannelgetChannel()ConcurrentMap<Long,ReplicatedLargeMessage>getLargeMessages()This is for tests basically, do not use it as its API is not guaranteed for future usage.voidhandlePacket(Packet packet)booleanisStarted()voidpause()This is for tests basically, do not use it as its API is not guaranteed for future usage.voidregisterJournal(byte id, Journal journal)voidresume()This is for tests basically, do not use it as its API is not guaranteed for future usage.voidsetChannel(Channel channel)voidsetExecutor(Executor executor2)voidstart()voidstop()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.activemq.artemis.core.server.ActiveMQComponent
asyncStop
-
-
-
-
Constructor Detail
-
ReplicationEndpoint
public ReplicationEndpoint(ActiveMQServerImpl server, boolean wantedFailBack, ReplicationEndpoint.ReplicationEndpointEventListener eventListener)
-
-
Method Detail
-
registerJournal
public void registerJournal(byte id, Journal journal)
-
addOutgoingInterceptorForReplication
public void addOutgoingInterceptorForReplication(Interceptor interceptor)
-
pause
public void pause()
This is for tests basically, do not use it as its API is not guaranteed for future usage.
-
resume
public void resume()
This is for tests basically, do not use it as its API is not guaranteed for future usage.
-
handlePacket
public void handlePacket(Packet packet)
- Specified by:
handlePacketin interfaceChannelHandler
-
endOfBatch
public void endOfBatch()
- Specified by:
endOfBatchin interfaceChannelHandler
-
isStarted
public boolean isStarted()
- Specified by:
isStartedin interfaceActiveMQComponent
-
start
public void start() throws Exception- Specified by:
startin interfaceActiveMQComponent- Throws:
Exception
-
stop
public void stop() throws Exception- Specified by:
stopin interfaceActiveMQComponent- Throws:
Exception
-
getChannel
public Channel getChannel()
-
setChannel
public void setChannel(Channel channel)
-
setExecutor
public void setExecutor(Executor executor2)
- Parameters:
executor2-
-
getLargeMessages
public ConcurrentMap<Long,ReplicatedLargeMessage> getLargeMessages()
This is for tests basically, do not use it as its API is not guaranteed for future usage.
-
-