public class MasterHealthCheckClient extends java.lang.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.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isServing() |
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 HealthCheckClientCopyright © 2022. All Rights Reserved.