Class SharedStorePrimaryPolicy
java.lang.Object
org.apache.activemq.artemis.core.server.cluster.ha.SharedStorePrimaryPolicy
- All Implemented Interfaces:
HAPolicy<PrimaryActivation>
-
Constructor Summary
ConstructorsConstructorDescriptionSharedStorePrimaryPolicy(boolean failoverOnServerShutdown, boolean waitForActivation) -
Method Summary
Modifier and TypeMethodDescriptionbooleancreateActivation(ActiveMQServerImpl server, boolean wasPrimary, Map<String, Object> activationParams, IOCriticalErrorListener ioCriticalErrorListener) created the Activation associated with this policy.longDeprecated.booleanisBackup()booleanbooleanbooleanvoidsetFailbackDelay(long failbackDelay) Deprecated.voidsetFailoverOnServerShutdown(boolean failoverOnServerShutdown) voidsetSharedStoreBackupPolicy(SharedStoreBackupPolicy sharedStoreBackupPolicy) voidsetWaitForActivation(boolean waitForActivation) 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
getScaleDownClustername, getScaleDownCommitInterval, getScaleDownGroupName, useQuorumManager
-
Constructor Details
-
SharedStorePrimaryPolicy
public SharedStorePrimaryPolicy() -
SharedStorePrimaryPolicy
public SharedStorePrimaryPolicy(boolean failoverOnServerShutdown, boolean waitForActivation)
-
-
Method Details
-
getFailbackDelay
Deprecated. -
setFailbackDelay
Deprecated. -
isFailoverOnServerShutdown
public boolean isFailoverOnServerShutdown() -
setFailoverOnServerShutdown
public void setFailoverOnServerShutdown(boolean failoverOnServerShutdown) -
isWaitForActivation
public boolean isWaitForActivation()- Specified by:
isWaitForActivationin interfaceHAPolicy<PrimaryActivation>
-
setWaitForActivation
public void setWaitForActivation(boolean waitForActivation) -
isBackup
public boolean isBackup()- Specified by:
isBackupin interfaceHAPolicy<PrimaryActivation>
-
canScaleDown
public boolean canScaleDown()- Specified by:
canScaleDownin interfaceHAPolicy<PrimaryActivation>
-
createActivation
public PrimaryActivation 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<PrimaryActivation>
-
getBackupGroupName
- Specified by:
getBackupGroupNamein interfaceHAPolicy<PrimaryActivation>
-