Class ClusterManager


  • public class ClusterManager
    extends Object
    Manager for the cluster that can be used to control the cluster in a way that is independent of the implementation used for the clustering.
    Since:
    3.1.0
    Author:
    XIMA MEDIA GmbH
    • Method Detail

      • getConnection

        public static IClusterConnection getConnection()
        Returns:
        The current connection to the cluster, null when not connected.
      • registerOpenListener

        public static void registerOpenListener​(IBaseNotificationListener listener)
        Registers a listener that is notified when the connection to the cluster is opened.
        Parameters:
        listener - Listener to register.
      • registerCloseListener

        public static void registerCloseListener​(IBaseNotificationListener listener)
        Registers a listener that is notified when the connection to the cluster is closed.
        Parameters:
        listener - Listener to register.
      • isClusterActivated

        public static boolean isClusterActivated()
        Returns:
        Whether clustering is enabled. When clustering is disabled, startup() will not be possible.
      • isConnectionActive

        public static boolean isConnectionActive()
        Returns:
        Whether the connection to the cluster is active.
      • getLocaleNode

        public static NodeModel getLocaleNode()
        Returns:
        The local node, i.e. the node corresponding to the server running this code. null when no cluster connection is active.
      • isLocaleNodeActive

        public static boolean isLocaleNodeActive()
        Returns:
        Whether the the getLocaleNode() is active.