Class ColocatedActivation
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.ColocatedActivation
- All Implemented Interfaces:
Runnable
-
Constructor Summary
ConstructorsConstructorDescriptionColocatedActivation(ActiveMQServerImpl activeMQServer, ColocatedPolicy colocatedPolicy, PrimaryActivation primaryActivation) -
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.getActivationChannelHandler(Channel channel, Acceptor acceptorUsed) allows the Activation to register a channel handler so it can handle any packets that are unique to the ActivationReturns the HA manager used for this Activation.voidcalled by the ha manager to notify the Activation that HA is now activevoidallow the activation to override this if it needs to tidy up after freezing the connection. it's a different method as it's called outside of the lock that the previous method is.voidcalled before the server is closing the journals so the activation can tidy up stuffvoidrun()voidcalled by the server to notify the Activation that the server is stoppingMethods inherited from class org.apache.activemq.artemis.core.server.impl.Activation
createJournalLoader, isReplicaSync
-
Constructor Details
-
ColocatedActivation
public ColocatedActivation(ActiveMQServerImpl activeMQServer, ColocatedPolicy colocatedPolicy, PrimaryActivation primaryActivation)
-
-
Method Details
-
haStarted
public void haStarted()Description copied from class:Activationcalled by the ha manager to notify the Activation that HA is now active- Overrides:
haStartedin classActivation
-
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
-
postConnectionFreeze
public void postConnectionFreeze()Description copied from class:Activationallow the activation to override this if it needs to tidy up after freezing the connection. it's a different method as it's called outside of the lock that the previous method is.- Overrides:
postConnectionFreezein classActivation
-
preStorageClose
Description copied from class:Activationcalled before the server is closing the journals so the activation can tidy up stuff- Overrides:
preStorageClosein 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
-
getHAManager
Description copied from class:ActivationReturns the HA manager used for this Activation.- Overrides:
getHAManagerin classActivation- Returns:
- the HA manager used for this Activation
-
run
public void run() -
close
- Specified by:
closein classActivation- Throws:
Exception
-
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
-