Class PrimaryOnlyPolicy
java.lang.Object
org.apache.activemq.artemis.core.server.cluster.ha.PrimaryOnlyPolicy
- All Implemented Interfaces:
HAPolicy<Activation>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancreateActivation(ActiveMQServerImpl server, boolean wasPrimary, Map<String, Object> activationParams, IOCriticalErrorListener ioCriticalErrorListener) created the Activation associated with this policy.intbooleanisBackup()booleanvoidsetScaleDownPolicy(ScaleDownPolicy scaleDownPolicy) 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.cluster.ha.HAPolicy
isWaitForActivation, useQuorumManager
-
Constructor Details
-
PrimaryOnlyPolicy
public PrimaryOnlyPolicy() -
PrimaryOnlyPolicy
-
-
Method Details
-
createActivation
public Activation createActivation(ActiveMQServerImpl server, boolean wasPrimary, Map<String, Object> activationParams, IOCriticalErrorListener ioCriticalErrorListener) Description copied from interface:HAPolicycreated the Activation associated with this policy.- Specified by:
createActivationin interfaceHAPolicy<Activation>
-
getBackupGroupName
- Specified by:
getBackupGroupNamein interfaceHAPolicy<Activation>
-
getScaleDownGroupName
- Specified by:
getScaleDownGroupNamein interfaceHAPolicy<Activation>
-
getScaleDownClustername
- Specified by:
getScaleDownClusternamein interfaceHAPolicy<Activation>
-
getScaleDownCommitInterval
public int getScaleDownCommitInterval()- Specified by:
getScaleDownCommitIntervalin interfaceHAPolicy<Activation>
-
isBackup
public boolean isBackup()- Specified by:
isBackupin interfaceHAPolicy<Activation>
-
canScaleDown
public boolean canScaleDown()- Specified by:
canScaleDownin interfaceHAPolicy<Activation>
-
getScaleDownPolicy
-
setScaleDownPolicy
-