@ThreadSafe public class RetryHandlingMetricsMasterClient extends AbstractMasterClient implements MetricsMasterClient
AbstractClient.RpcCallable<V>
mAddress, mChannel, mClosed, mConfAddress, mConnected, mContext, mServiceVersion, mVersionService
Constructor and Description |
---|
RetryHandlingMetricsMasterClient(MasterClientContext conf)
Creates a new metrics master client.
|
Modifier and Type | Method and Description |
---|---|
protected void |
afterConnect()
This method is called after the connection is made to the remote.
|
void |
clearMetrics()
Clear the master metrics.
|
Map<String,MetricValue> |
getMetrics()
Gets all the metrics stored in the current master from metric name to metric value.
|
protected ServiceType |
getRemoteServiceType() |
protected String |
getServiceName() |
protected long |
getServiceVersion() |
void |
heartbeat(List<ClientMetrics> metrics)
The method the worker should periodically execute to heartbeat back to the master.
|
getAddress, getConfAddress
afterDisconnect, beforeConnect, beforeDisconnect, checkVersion, close, connect, disconnect, getRemoteServiceVersion, isClosed, isConnected, retryRPC
public RetryHandlingMetricsMasterClient(MasterClientContext conf)
conf
- master client configurationprotected ServiceType getRemoteServiceType()
getRemoteServiceType
in class AbstractClient
protected String getServiceName()
getServiceName
in class AbstractClient
protected long getServiceVersion()
getServiceVersion
in class AbstractClient
protected void afterConnect()
AbstractClient
afterConnect
in class AbstractClient
public void clearMetrics() throws IOException
MetricsMasterClient
clearMetrics
in interface MetricsMasterClient
IOException
public void heartbeat(List<ClientMetrics> metrics) throws IOException
MetricsMasterClient
heartbeat
in interface MetricsMasterClient
metrics
- a list of client metricsIOException
public Map<String,MetricValue> getMetrics() throws AlluxioStatusException
MetricsMasterClient
getMetrics
in interface MetricsMasterClient
AlluxioStatusException
Copyright © 2023. All Rights Reserved.