Class ReplicationEndpoint
java.lang.Object
org.apache.activemq.artemis.core.replication.ReplicationEndpoint
- All Implemented Interfaces:
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 ClassesModifier and TypeClassDescriptionstatic final classstatic interface -
Constructor Summary
ConstructorsConstructorDescriptionReplicationEndpoint(ActiveMQServerImpl server, boolean wantedFailBack, ReplicationEndpoint.ReplicationEndpointEventListener eventListener) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOutgoingInterceptorForReplication(Interceptor interceptor) voidThis is for tests basically, do not use it as its API is not guaranteed for future usage.voidhandlePacket(Packet packet) called by the channel when a packet is received..booleanvoidpause()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, waitMethods inherited from interface org.apache.activemq.artemis.core.server.ActiveMQComponent
asyncStop
-
Constructor Details
-
ReplicationEndpoint
public ReplicationEndpoint(ActiveMQServerImpl server, boolean wantedFailBack, ReplicationEndpoint.ReplicationEndpointEventListener eventListener)
-
-
Method Details
-
registerJournal
-
addOutgoingInterceptorForReplication
-
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
Description copied from interface:ChannelHandlercalled by the channel when a packet is received..- Specified by:
handlePacketin interfaceChannelHandler- Parameters:
packet- the packet received
-
endOfBatch
public void endOfBatch()- Specified by:
endOfBatchin interfaceChannelHandler
-
isStarted
public boolean isStarted()- Specified by:
isStartedin interfaceActiveMQComponent
-
start
- Specified by:
startin interfaceActiveMQComponent- Throws:
Exception
-
stop
- Specified by:
stopin interfaceActiveMQComponent- Throws:
Exception
-
getChannel
-
setChannel
-
setExecutor
-
getPageIndex
-
getLargeMessages
This is for tests basically, do not use it as its API is not guaranteed for future usage.
-