public static class MasterHealthCheckClient.Builder extends Object
MasterHealthCheckClient
.Constructor and Description |
---|
Builder(AlluxioConfiguration alluxioConf)
Constructs the builder with default values.
|
Modifier and Type | Method and Description |
---|---|
HealthCheckClient |
build() |
MasterHealthCheckClient.Builder |
withAlluxioMasterType(MasterHealthCheckClient.MasterType masterType) |
MasterHealthCheckClient.Builder |
withConfiguration(AlluxioConfiguration alluxioConf) |
MasterHealthCheckClient.Builder |
withProcessCheck(boolean processCheck) |
MasterHealthCheckClient.Builder |
withRetryPolicy(java.util.function.Supplier<RetryPolicy> policySupplier) |
public Builder(AlluxioConfiguration alluxioConf)
alluxioConf
- Alluxio configurationpublic MasterHealthCheckClient.Builder withProcessCheck(boolean processCheck)
processCheck
- whether to check the AlluxioMaster process is alivepublic MasterHealthCheckClient.Builder withConfiguration(AlluxioConfiguration alluxioConf)
alluxioConf
- Alluxio configurationpublic MasterHealthCheckClient.Builder withAlluxioMasterType(MasterHealthCheckClient.MasterType masterType)
masterType
- the Alluxio master typepublic MasterHealthCheckClient.Builder withRetryPolicy(java.util.function.Supplier<RetryPolicy> policySupplier)
policySupplier
- the retry policy supplier to use for the health checkpublic HealthCheckClient build()
MasterHealthCheckClient
for the current builder valuesCopyright © 2023. All Rights Reserved.