@ThreadSafe
public final class ClientMasterSync
extends java.lang.Object
MetricsMasterClient.
If the task fails to heartbeat to the master, it will destroy its old master client and recreate
it before retrying.| Constructor and Description |
|---|
ClientMasterSync(java.lang.String appId,
ClientContext ctx,
MasterInquireClient inquireClient)
Constructs a new
ClientMasterSync. |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the metrics master client.
|
void |
heartbeat()
Sends metrics to the master keyed with appId and client hostname.
|
public ClientMasterSync(java.lang.String appId,
ClientContext ctx,
MasterInquireClient inquireClient)
ClientMasterSync.appId - the application id to send with metricsctx - client contextinquireClient - the master inquire clientCopyright © 2022. All Rights Reserved.