Interface HAPolicy<T extends Activation>
- All Known Implementing Classes:
BackupPolicy,ColocatedPolicy,PrimaryOnlyPolicy,ReplicaPolicy,ReplicatedPolicy,ReplicationBackupPolicy,ReplicationPrimaryPolicy,SharedStoreBackupPolicy,SharedStorePrimaryPolicy
public interface HAPolicy<T extends Activation>
Every active server will have an HAPolicy that configures the type of server that it should be either primary, backup
or colocated (both). It also configures how, if colocated, it should react to sending and receiving requests for
backups.
-
Method Summary
Modifier and TypeMethodDescriptionbooleancreateActivation(ActiveMQServerImpl server, boolean wasPrimary, Map<String, Object> activationParams, IOCriticalErrorListener shutdownOnCriticalIO) created the Activation associated with this policy.default Stringdefault intdefault StringbooleanisBackup()booleandefault booleandefault boolean
-
Method Details
-
createActivation
T createActivation(ActiveMQServerImpl server, boolean wasPrimary, Map<String, Object> activationParams, IOCriticalErrorListener shutdownOnCriticalIO) throws Exceptioncreated the Activation associated with this policy.- Throws:
Exception
-
isBackup
boolean isBackup() -
isWaitForActivation
default boolean isWaitForActivation() -
canScaleDown
boolean canScaleDown() -
getBackupGroupName
String getBackupGroupName() -
getScaleDownGroupName
-
getScaleDownClustername
-
getScaleDownCommitInterval
default int getScaleDownCommitInterval() -
useQuorumManager
default boolean useQuorumManager()
-