Class LiveOnlyActivation
- java.lang.Object
-
- org.apache.activemq.artemis.core.server.impl.Activation
-
- org.apache.activemq.artemis.core.server.impl.LiveOnlyActivation
-
- All Implemented Interfaces:
Runnable
public class LiveOnlyActivation extends Activation
-
-
Constructor Summary
Constructors Constructor Description LiveOnlyActivation(ActiveMQServerImpl server, LiveOnlyPolicy liveOnlyPolicy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose(boolean permanently, boolean restarting)voidconnectToScaleDownTarget(ScaleDownPolicy scaleDownPolicy)voidfreezeConnections(RemotingService remotingService)LiveOnlyPolicygetLiveOnlyPolicy()voidpostConnectionFreeze()voidrun()longscaleDown()-
Methods inherited from class org.apache.activemq.artemis.core.server.impl.Activation
createJournalLoader, getActivationChannelHandler, getHAManager, getReplicationManager, haStarted, isReplicaSync, preStorageClose, sendLiveIsStopping
-
-
-
-
Constructor Detail
-
LiveOnlyActivation
public LiveOnlyActivation(ActiveMQServerImpl server, LiveOnlyPolicy liveOnlyPolicy)
-
-
Method Detail
-
getLiveOnlyPolicy
public LiveOnlyPolicy getLiveOnlyPolicy()
-
run
public void run()
-
close
public void close(boolean permanently, boolean restarting) throws Exception- Specified by:
closein classActivation- Throws:
Exception
-
freezeConnections
public void freezeConnections(RemotingService remotingService)
- Overrides:
freezeConnectionsin classActivation
-
postConnectionFreeze
public void postConnectionFreeze()
- Overrides:
postConnectionFreezein classActivation
-
connectToScaleDownTarget
public void connectToScaleDownTarget(ScaleDownPolicy scaleDownPolicy)
-
-