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
Modifier and TypeMethodDescriptiondefault String
Get the name of the serviceboolean
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
Get the name of the service- Returns:
- service name
-