java.lang.Object
org.apache.activemq.artemis.core.server.cluster.BackupManager
All Implemented Interfaces:
ActiveMQComponent

public class BackupManager extends Object implements ActiveMQComponent
This takes care of updating the cluster with a backups transport configuration which is based on each cluster connection.
  • Constructor Details

  • Method Details

    • getBackupConnectors

      public List<BackupManager.BackupConnector> getBackupConnectors()
      This is meant for testing and assertions, please don't do anything stupid with it! I mean, please don't use it outside of testing context
    • start

      public void start() throws Exception
      Start the backup manager if not already started. This entails deploying a backup connector based on a cluster configuration, informing the cluster manager so that it can add it to its topology and announce itself to the cluster.
      Specified by:
      start in interface ActiveMQComponent
      Throws:
      Exception
    • stop

      public void stop()
      stop all the connectors
      Specified by:
      stop in interface ActiveMQComponent
    • announceBackup

      public void announceBackup()
      announce the fact that we are a backup server ready to fail over if required.
    • activated

      public void activated()
      called to notify us that we have been activated so the connectors are no longer needed.
    • isStarted

      public boolean isStarted()
      Specified by:
      isStarted in interface ActiveMQComponent
    • isBackupAnnounced

      public boolean isBackupAnnounced()