Class SharedStoreSlavePolicy
- java.lang.Object
-
- org.apache.activemq.artemis.core.server.cluster.ha.BackupPolicy
-
- org.apache.activemq.artemis.core.server.cluster.ha.SharedStoreSlavePolicy
-
- All Implemented Interfaces:
HAPolicy<Activation>
public class SharedStoreSlavePolicy extends BackupPolicy
-
-
Field Summary
-
Fields inherited from class org.apache.activemq.artemis.core.server.cluster.ha.BackupPolicy
restartBackup, scaleDownPolicy
-
-
Constructor Summary
Constructors Constructor Description SharedStoreSlavePolicy()SharedStoreSlavePolicy(boolean failoverOnServerShutdown, boolean restartBackup, boolean allowAutoFailBack, ScaleDownPolicy scaleDownPolicy)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancanScaleDown()ActivationcreateActivation(ActiveMQServerImpl server, boolean wasLive, Map<String,Object> activationParams, IOCriticalErrorListener ioCriticalErrorListener)StringgetBackupGroupName()longgetFailbackDelay()Deprecated.SharedStoreMasterPolicygetSharedStoreMasterPolicy()booleanisAllowAutoFailBack()booleanisFailoverOnServerShutdown()booleanisSharedStore()voidsetAllowAutoFailBack(boolean allowAutoFailBack)voidsetFailbackDelay(long failbackDelay)Deprecated.voidsetFailoverOnServerShutdown(boolean failoverOnServerShutdown)voidsetIsWaitForActivation(boolean isWaitForActivation)voidsetSharedStoreMasterPolicy(SharedStoreMasterPolicy sharedStoreMasterPolicy)-
Methods inherited from class org.apache.activemq.artemis.core.server.cluster.ha.BackupPolicy
getScaleDownClustername, getScaleDownGroupName, getScaleDownPolicy, isBackup, isRestartBackup, setRestartBackup, setScaleDownPolicy
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.activemq.artemis.core.server.cluster.ha.HAPolicy
isWaitForActivation, useQuorumManager
-
-
-
-
Constructor Detail
-
SharedStoreSlavePolicy
public SharedStoreSlavePolicy()
-
SharedStoreSlavePolicy
public SharedStoreSlavePolicy(boolean failoverOnServerShutdown, boolean restartBackup, boolean allowAutoFailBack, ScaleDownPolicy scaleDownPolicy)
-
-
Method Detail
-
getFailbackDelay
@Deprecated public long getFailbackDelay()
Deprecated.
-
setFailbackDelay
@Deprecated public void setFailbackDelay(long failbackDelay)
Deprecated.
-
isFailoverOnServerShutdown
public boolean isFailoverOnServerShutdown()
-
setFailoverOnServerShutdown
public void setFailoverOnServerShutdown(boolean failoverOnServerShutdown)
-
getSharedStoreMasterPolicy
public SharedStoreMasterPolicy getSharedStoreMasterPolicy()
-
setSharedStoreMasterPolicy
public void setSharedStoreMasterPolicy(SharedStoreMasterPolicy sharedStoreMasterPolicy)
-
isSharedStore
public boolean isSharedStore()
-
canScaleDown
public boolean canScaleDown()
-
isAllowAutoFailBack
public boolean isAllowAutoFailBack()
-
setAllowAutoFailBack
public void setAllowAutoFailBack(boolean allowAutoFailBack)
-
setIsWaitForActivation
public void setIsWaitForActivation(boolean isWaitForActivation)
-
createActivation
public Activation createActivation(ActiveMQServerImpl server, boolean wasLive, Map<String,Object> activationParams, IOCriticalErrorListener ioCriticalErrorListener)
-
getBackupGroupName
public String getBackupGroupName()
-
-