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 Details

    • createActivation

      T createActivation(ActiveMQServerImpl server, boolean wasPrimary, Map<String,Object> activationParams, IOCriticalErrorListener shutdownOnCriticalIO) throws Exception
      created the Activation associated with this policy.
      Throws:
      Exception
    • isSharedStore

      boolean isSharedStore()
    • isBackup

      boolean isBackup()
    • isWaitForActivation

      default boolean isWaitForActivation()
    • canScaleDown

      boolean canScaleDown()
    • getBackupGroupName

      String getBackupGroupName()
    • getScaleDownGroupName

      default String getScaleDownGroupName()
    • getScaleDownClustername

      default String getScaleDownClustername()
    • getScaleDownCommitInterval

      default int getScaleDownCommitInterval()
    • useQuorumManager

      default boolean useQuorumManager()