Class SharedNothingPrimaryActivation
java.lang.Object
org.apache.activemq.artemis.core.server.impl.Activation
org.apache.activemq.artemis.core.server.impl.PrimaryActivation
org.apache.activemq.artemis.core.server.impl.SharedNothingPrimaryActivation
- All Implemented Interfaces:
Runnable
-
Constructor Summary
ConstructorsConstructorDescriptionSharedNothingPrimaryActivation(ActiveMQServerImpl activeMQServer, ReplicatedPolicy replicatedPolicy) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose(boolean permanently, boolean restarting) voidfreezeConnections(RemotingService remotingService) freeze the connection but allow the Activation to over ride this and decide if any connections should be left open.voidgetActivationChannelHandler(Channel channel, Acceptor acceptorUsed) allows the Activation to register a channel handler so it can handle any packets that are unique to the Activationbooleanvoidrun()voidcalled by the server to notify the Activation that the server is stoppingvoidstartReplication(CoreRemotingConnection rc, ClusterConnection clusterConnection, Pair<TransportConfiguration, TransportConfiguration> pair, boolean isFailBackRequest) Methods inherited from class org.apache.activemq.artemis.core.server.impl.Activation
createJournalLoader, getHAManager, haStarted, postConnectionFreeze, preStorageClose
-
Constructor Details
-
SharedNothingPrimaryActivation
public SharedNothingPrimaryActivation(ActiveMQServerImpl activeMQServer, ReplicatedPolicy replicatedPolicy)
-
-
Method Details
-
freezeConnections
Description copied from class:Activationfreeze the connection but allow the Activation to over ride this and decide if any connections should be left open.- Overrides:
freezeConnectionsin classActivation
-
freezeReplication
public void freezeReplication() -
run
public void run() -
getActivationChannelHandler
Description copied from class:Activationallows the Activation to register a channel handler so it can handle any packets that are unique to the Activation- Overrides:
getActivationChannelHandlerin classActivation
-
startReplication
public void startReplication(CoreRemotingConnection rc, ClusterConnection clusterConnection, Pair<TransportConfiguration, TransportConfiguration> pair, boolean isFailBackRequest) throws ActiveMQException- Throws:
ActiveMQException
-
close
- Specified by:
closein classActivation- Throws:
Exception
-
sendPrimaryIsStopping
public void sendPrimaryIsStopping()Description copied from class:Activationcalled by the server to notify the Activation that the server is stopping- Overrides:
sendPrimaryIsStoppingin classActivation
-
getReplicationManager
- Overrides:
getReplicationManagerin classActivation
-
isReplicaSync
public boolean isReplicaSync()- Overrides:
isReplicaSyncin classActivation
-