public class MasterHealthCheckClient extends Object implements HealthCheckClient
Modifier and Type | Class and Description |
---|---|
static class |
MasterHealthCheckClient.Builder
Builder for a
MasterHealthCheckClient . |
class |
MasterHealthCheckClient.MasterServingHealthCheck
Runnable for checking if the AlluxioMaster is serving RPCs.
|
static class |
MasterHealthCheckClient.MasterType
An enum mapping master types to fully qualified class names.
|
class |
MasterHealthCheckClient.ProcessCheckRunnable
Runnable for checking if the AlluxioMaster process are running in all the masters hosts.
|
Constructor and Description |
---|
MasterHealthCheckClient(MasterHealthCheckClient.MasterType alluxioMasterType,
boolean processCheck,
java.util.function.Supplier<RetryPolicy> retryPolicySupplier,
AlluxioConfiguration alluxioConf)
Creates a new instance of MasterHealthCheckClient.
|
public MasterHealthCheckClient(MasterHealthCheckClient.MasterType alluxioMasterType, boolean processCheck, java.util.function.Supplier<RetryPolicy> retryPolicySupplier, AlluxioConfiguration alluxioConf)
alluxioMasterType
- the Alluxio master process typeprocessCheck
- whether to check the AlluxioMaster process is aliveretryPolicySupplier
- the policy supplier to utilize for the rpc checkalluxioConf
- Alluxio configurationpublic boolean isServing()
isServing
in interface HealthCheckClient
Copyright © 2023. All Rights Reserved.