@ThreadSafe public final class ClientMasterSync extends 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(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(String appId, ClientContext ctx, MasterInquireClient inquireClient)
ClientMasterSync
.appId
- the application id to send with metricsctx
- client contextinquireClient
- the master inquire clientCopyright © 2023. All Rights Reserved.