Class MasterHealthCheckClient.MasterServingHealthCheck

  • All Implemented Interfaces:
    alluxio.HealthCheckClient, java.lang.Runnable
    Enclosing class:
    MasterHealthCheckClient

    public final class MasterHealthCheckClient.MasterServingHealthCheck
    extends RpcPortHealthCheckClient
    implements java.lang.Runnable
    Runnable for checking if the AlluxioMaster is serving RPCs.
    • Constructor Summary

      Constructors 
      Constructor Description
      MasterServingHealthCheck​(java.net.InetSocketAddress nodeAddress, alluxio.grpc.ServiceType serviceType, java.util.function.Supplier<alluxio.retry.RetryPolicy> retryPolicySupplier, alluxio.conf.AlluxioConfiguration alluxioConf)
      Creates a new instance of MasterHealthCheckClient.MasterServingHealthCheck to check for an open RPC port for the given service.
    • Constructor Detail

      • MasterServingHealthCheck

        public MasterServingHealthCheck​(java.net.InetSocketAddress nodeAddress,
                                        alluxio.grpc.ServiceType serviceType,
                                        java.util.function.Supplier<alluxio.retry.RetryPolicy> retryPolicySupplier,
                                        alluxio.conf.AlluxioConfiguration alluxioConf)
        Creates a new instance of MasterHealthCheckClient.MasterServingHealthCheck to check for an open RPC port for the given service.
        Parameters:
        nodeAddress - the address of the node to connect to
        serviceType - the gRPC service type
        retryPolicySupplier - a retry policy supplier
        alluxioConf - Alluxio configuration
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
      • serving

        public boolean serving()
        Returns:
        whether or we were able to ping the service