@ThreadSafe public class RetryHandlingMetricsMasterClient extends AbstractMasterClient implements MetricsMasterClient
AbstractClient.RpcCallable<V>mChannel, mClosed, mConnected, mContext, mServerAddress, mServiceVersion, mVersionService| Constructor and Description |
|---|
RetryHandlingMetricsMasterClient(MasterClientContext conf)
Creates a new metrics master client.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterConnect() |
void |
clearMetrics()
Clear the master metrics.
|
java.util.Map<java.lang.String,MetricValue> |
getMetrics()
Gets all the metrics stored in the current master from metric name to metric value.
|
protected ServiceType |
getRemoteServiceType() |
protected java.lang.String |
getServiceName() |
protected long |
getServiceVersion() |
void |
heartbeat(java.util.List<ClientMetrics> metrics)
The method the worker should periodically execute to heartbeat back to the master.
|
afterDisconnect, beforeConnect, getConfAddress, queryGrpcServerAddressbeforeDisconnect, checkVersion, close, connect, connectWithRuntimeException, disconnect, getRemoteHostName, getRemoteServiceVersion, getRemoteSockAddress, isClosed, isConnected, retryRPC, retryRPCpublic RetryHandlingMetricsMasterClient(MasterClientContext conf)
conf - master client configurationprotected ServiceType getRemoteServiceType()
getRemoteServiceType in class AbstractClientprotected java.lang.String getServiceName()
getServiceName in class AbstractClientprotected long getServiceVersion()
getServiceVersion in class AbstractClientprotected void afterConnect()
afterConnect in class AbstractClientpublic void clearMetrics()
throws java.io.IOException
MetricsMasterClientclearMetrics in interface MetricsMasterClientjava.io.IOExceptionpublic void heartbeat(java.util.List<ClientMetrics> metrics) throws java.io.IOException
MetricsMasterClientheartbeat in interface MetricsMasterClientmetrics - a list of client metricsjava.io.IOExceptionpublic java.util.Map<java.lang.String,MetricValue> getMetrics() throws AlluxioStatusException
MetricsMasterClientgetMetrics in interface MetricsMasterClientAlluxioStatusExceptionCopyright © 2022. All Rights Reserved.