Package alluxio.master
Class MasterHealthCheckClient.Builder
- java.lang.Object
-
- alluxio.master.MasterHealthCheckClient.Builder
-
- Enclosing class:
- MasterHealthCheckClient
public static class MasterHealthCheckClient.Builder extends java.lang.ObjectBuilder for aMasterHealthCheckClient.
-
-
Constructor Summary
Constructors Constructor Description Builder(alluxio.conf.AlluxioConfiguration alluxioConf)Constructs the builder with default values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description alluxio.HealthCheckClientbuild()MasterHealthCheckClient.BuilderwithAlluxioMasterType(MasterHealthCheckClient.MasterType masterType)MasterHealthCheckClient.BuilderwithConfiguration(alluxio.conf.AlluxioConfiguration alluxioConf)MasterHealthCheckClient.BuilderwithProcessCheck(boolean processCheck)MasterHealthCheckClient.BuilderwithRetryPolicy(java.util.function.Supplier<alluxio.retry.RetryPolicy> policySupplier)
-
-
-
Method Detail
-
withProcessCheck
public MasterHealthCheckClient.Builder withProcessCheck(boolean processCheck)
- Parameters:
processCheck- whether to check the AlluxioMaster process is alive- Returns:
- an instance of the builder
-
withConfiguration
public MasterHealthCheckClient.Builder withConfiguration(alluxio.conf.AlluxioConfiguration alluxioConf)
- Parameters:
alluxioConf- Alluxio configuration- Returns:
- a builder which utlizes the given alluxio configuration
-
withAlluxioMasterType
public MasterHealthCheckClient.Builder withAlluxioMasterType(MasterHealthCheckClient.MasterType masterType)
- Parameters:
masterType- the Alluxio master type- Returns:
- an instance of the builder
-
withRetryPolicy
public MasterHealthCheckClient.Builder withRetryPolicy(java.util.function.Supplier<alluxio.retry.RetryPolicy> policySupplier)
- Parameters:
policySupplier- the retry policy supplier to use for the health check- Returns:
- a builder utilizing the given retry policy supplier
-
build
public alluxio.HealthCheckClient build()
- Returns:
- a
MasterHealthCheckClientfor the current builder values
-
-