Class MasterHealthCheckClient

  • All Implemented Interfaces:
    alluxio.HealthCheckClient

    public class MasterHealthCheckClient
    extends java.lang.Object
    implements alluxio.HealthCheckClient
    MasterHealthCheckClient check whether Alluxio master is serving RPC requests and if the AlluxioMaster process is running in all master hosts.
    • Constructor Detail

      • MasterHealthCheckClient

        public MasterHealthCheckClient​(MasterHealthCheckClient.MasterType alluxioMasterType,
                                       boolean processCheck,
                                       java.util.function.Supplier<alluxio.retry.RetryPolicy> retryPolicySupplier,
                                       alluxio.conf.AlluxioConfiguration alluxioConf)
        Creates a new instance of MasterHealthCheckClient.
        Parameters:
        alluxioMasterType - the Alluxio master process type
        processCheck - whether to check the AlluxioMaster process is alive
        retryPolicySupplier - the policy supplier to utilize for the rpc check
        alluxioConf - Alluxio configuration
    • Method Detail

      • isServing

        public boolean isServing()
        Specified by:
        isServing in interface alluxio.HealthCheckClient