Class SharedStoreMasterPolicy
- java.lang.Object
-
- org.apache.activemq.artemis.core.server.cluster.ha.SharedStoreMasterPolicy
-
- All Implemented Interfaces:
HAPolicy<LiveActivation>
public class SharedStoreMasterPolicy extends Object implements HAPolicy<LiveActivation>
-
-
Constructor Summary
Constructors Constructor Description SharedStoreMasterPolicy()SharedStoreMasterPolicy(boolean failoverOnServerShutdown, boolean waitForActivation)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancanScaleDown()LiveActivationcreateActivation(ActiveMQServerImpl server, boolean wasLive, Map<String,Object> activationParams, IOCriticalErrorListener ioCriticalErrorListener)StringgetBackupGroupName()longgetFailbackDelay()Deprecated.StringgetScaleDownClustername()StringgetScaleDownGroupName()SharedStoreSlavePolicygetSharedStoreSlavePolicy()booleanisBackup()booleanisFailoverOnServerShutdown()booleanisSharedStore()booleanisWaitForActivation()voidsetFailbackDelay(long failbackDelay)Deprecated.voidsetFailoverOnServerShutdown(boolean failoverOnServerShutdown)voidsetSharedStoreSlavePolicy(SharedStoreSlavePolicy sharedStoreSlavePolicy)voidsetWaitForActivation(boolean waitForActivation)-
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
useQuorumManager
-
-
-
-
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)
-
isWaitForActivation
public boolean isWaitForActivation()
- Specified by:
isWaitForActivationin interfaceHAPolicy<LiveActivation>
-
setWaitForActivation
public void setWaitForActivation(boolean waitForActivation)
-
getSharedStoreSlavePolicy
public SharedStoreSlavePolicy getSharedStoreSlavePolicy()
-
setSharedStoreSlavePolicy
public void setSharedStoreSlavePolicy(SharedStoreSlavePolicy sharedStoreSlavePolicy)
-
isSharedStore
public boolean isSharedStore()
- Specified by:
isSharedStorein interfaceHAPolicy<LiveActivation>
-
isBackup
public boolean isBackup()
- Specified by:
isBackupin interfaceHAPolicy<LiveActivation>
-
canScaleDown
public boolean canScaleDown()
- Specified by:
canScaleDownin interfaceHAPolicy<LiveActivation>
-
createActivation
public LiveActivation createActivation(ActiveMQServerImpl server, boolean wasLive, Map<String,Object> activationParams, IOCriticalErrorListener ioCriticalErrorListener)
- Specified by:
createActivationin interfaceHAPolicy<LiveActivation>
-
getBackupGroupName
public String getBackupGroupName()
- Specified by:
getBackupGroupNamein interfaceHAPolicy<LiveActivation>
-
getScaleDownGroupName
public String getScaleDownGroupName()
- Specified by:
getScaleDownGroupNamein interfaceHAPolicy<LiveActivation>
-
getScaleDownClustername
public String getScaleDownClustername()
- Specified by:
getScaleDownClusternamein interfaceHAPolicy<LiveActivation>
-
-