@ThreadSafe public class MetricsMasterClient extends AbstractMasterClient
AbstractClient.RpcCallable<V>
mAddress, mClosed, mConnected, mProtocol, mServiceVersion
Constructor and Description |
---|
MetricsMasterClient(MasterClientConfig 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.
|
protected AlluxioService.Client |
getClient() |
protected String |
getServiceName() |
protected long |
getServiceVersion() |
void |
heartbeat(List<Metric> metrics)
The method the worker should periodically execute to heartbeat back to the master.
|
getAddress
afterDisconnect, beforeDisconnect, checkVersion, close, connect, disconnect, isConnected, retryRPC, retryRPC
public MetricsMasterClient(MasterClientConfig conf)
conf
- master client configurationprotected AlluxioService.Client getClient()
getClient
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 heartbeat(List<Metric> metrics) throws IOException
metrics
- a list of client metricsIOException
Copyright © 2023. All Rights Reserved.