Class MESH

java.lang.Object
com.isode.dsapi.config.MESH

public class MESH extends Object
MESH keeps track of configuration information related to the multimaster configuration.

This information may come from the DSAs themselves ("hard"). In future it may come from locally saved information ("soft") such as information read from preferences when the UI starts so that it can have some bootstrap knowledge.

Note that DSAs may report inconsistent information, e.g. if the configurations read from different DSAs are themselves inconsistent.

  • Constructor Details

    • MESH

      public MESH()
  • Method Details

    • serverOnline

      public static void serverOnline(MESHManager mesh)
      Add a MESH configuration (MESHManager) to the overview.
      Parameters:
      mesh - MESHManager object, must not be null and can replace one that has already been added.
    • serverOffline

      public static void serverOffline(DN server_dn)
      Notify of failure to scan a DSA.
      Parameters:
      server_dn - DN of server that could not be scanned.
    • serverRemoved

      public static void serverRemoved(Integer id, DN dn)
      Notify of server removal.
      Parameters:
      server_dn - DN of server that was removed.
    • isServerOnline

      public static boolean isServerOnline(DN serverDN)
      Check if multimaster server is up (at last check).
      Parameters:
      serverDN - DN of server to check. Must not be null.
      Returns:
      true if the server was up at last check, false otherwise.
    • getCurrentState

      public static MESH.State getCurrentState()
      Get the current state.
      Returns:
      MESH.State object representing the current state. Never null.