Interface HighlyAvailableService


public interface HighlyAvailableService
This interface allows service implementations which support running multiple instances concurrently with only one active instance to report whether or not they are the active service.
  • Method Summary

    Modifier and Type
    Method
    Description
    default String
    Get the name of the service
    boolean
    Is this service instance currently the active instance for the Accumulo cluster.
    default boolean
    Is this service instance currently in the process of upgrading.
  • Method Details

    • isActiveService

      boolean isActiveService()
      Is this service instance currently the active instance for the Accumulo cluster.
      Returns:
      True if the service is the active service, false otherwise.
    • isUpgrading

      default boolean isUpgrading()
      Is this service instance currently in the process of upgrading.
      Returns:
      True if the service is upgrading, false otherwise.
    • getServiceName

      default String getServiceName()
      Get the name of the service
      Returns:
      service name