public class RpcPortHealthCheckClient extends Object implements HealthCheckClient
Constructor and Description |
---|
RpcPortHealthCheckClient(InetSocketAddress nodeAddress,
ServiceType serviceType,
java.util.function.Supplier<RetryPolicy> retryPolicySupplier,
AlluxioConfiguration alluxioConf)
Creates a worker health check client.
|
Modifier and Type | Method and Description |
---|---|
protected AlluxioConfiguration |
getConfiguration() |
protected InetSocketAddress |
getNodeAddress() |
protected java.util.function.Supplier<RetryPolicy> |
getRetryPolicySupplier() |
protected ServiceType |
getServiceType() |
protected UserState |
getUserState() |
boolean |
isServing() |
public RpcPortHealthCheckClient(InetSocketAddress nodeAddress, ServiceType serviceType, java.util.function.Supplier<RetryPolicy> retryPolicySupplier, AlluxioConfiguration alluxioConf)
nodeAddress
- The potential node addressserviceType
- The type of serviceretryPolicySupplier
- the retry policy supplieralluxioConf
- Alluxio configurationprotected java.util.function.Supplier<RetryPolicy> getRetryPolicySupplier()
protected InetSocketAddress getNodeAddress()
protected ServiceType getServiceType()
protected AlluxioConfiguration getConfiguration()
protected UserState getUserState()
public boolean isServing()
isServing
in interface HealthCheckClient
Copyright © 2023. All Rights Reserved.