Package alluxio.master
Class MasterHealthCheckClient
- java.lang.Object
-
- alluxio.master.MasterHealthCheckClient
-
- All Implemented Interfaces:
alluxio.HealthCheckClient
public class MasterHealthCheckClient extends java.lang.Object implements alluxio.HealthCheckClientMasterHealthCheckClient check whether Alluxio master is serving RPC requests and if the AlluxioMaster process is running in all master hosts.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMasterHealthCheckClient.BuilderBuilder for aMasterHealthCheckClient.classMasterHealthCheckClient.MasterServingHealthCheckRunnable for checking if the AlluxioMaster is serving RPCs.static classMasterHealthCheckClient.MasterTypeAn enum mapping master types to fully qualified class names.classMasterHealthCheckClient.ProcessCheckRunnableRunnable for checking if the AlluxioMaster process are running in all the masters hosts.
-
Constructor Summary
Constructors Constructor Description MasterHealthCheckClient(MasterHealthCheckClient.MasterType alluxioMasterType, boolean processCheck, java.util.function.Supplier<alluxio.retry.RetryPolicy> retryPolicySupplier, alluxio.conf.AlluxioConfiguration alluxioConf)Creates a new instance of MasterHealthCheckClient.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisServing()
-
-
-
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 typeprocessCheck- whether to check the AlluxioMaster process is aliveretryPolicySupplier- the policy supplier to utilize for the rpc checkalluxioConf- Alluxio configuration
-
-