Class HAUtilImpl

  • All Implemented Interfaces:
    HAUtil

    @Service
    @PerLookup
    public class HAUtilImpl
    extends Object
    implements HAUtil
    Implementations for high availability utils
    Author:
    vbkumarjayanti
    • Constructor Detail

      • HAUtilImpl

        public HAUtilImpl()
    • Method Detail

      • getClusterName

        public String getClusterName()
        Description copied from interface: HAUtil
        Gets the name of the shoal cluster, or null if the instance isn't clustered
        Specified by:
        getClusterName in interface HAUtil
        Returns:
      • getInstanceName

        public String getInstanceName()
        Description copied from interface: HAUtil
        Gets the name of the instance if GMS is present, otherwise null
        Specified by:
        getInstanceName in interface HAUtil
        Returns:
      • isHAEnabled

        public boolean isHAEnabled()
        Description copied from interface: HAUtil
        Returns true if GMS is enabled with the high availability flag set to true
        Specified by:
        isHAEnabled in interface HAUtil
        Returns: