Class MasterHealthCheckClient.Builder

    • Constructor Detail

      • Builder

        public Builder​(alluxio.conf.AlluxioConfiguration alluxioConf)
        Constructs the builder with default values.
        Parameters:
        alluxioConf - Alluxio configuration
    • 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
      • 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 MasterHealthCheckClient for the current builder values