Package org.apache.accumulo.server
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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default String
getServiceName()
Get the name of the serviceboolean
isActiveService()
Is this service instance currently the active instance for the Accumulo cluster.default boolean
isUpgrading()
Is this service instance currently in the process of upgrading.
-
-
-
Method Detail
-
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
-
-