public class DefaultMetricsMaster extends CoreMaster implements MetricsMaster, NoopJournaled
mBackupManager, mJournalSystem, mPort, mSafeModeManager, mStartTimeMsmClock, mMasterContext| Modifier and Type | Method and Description |
|---|---|
protected void |
addAggregator(MultiValueMetricsAggregator aggregator) |
protected void |
addAggregator(SingleValueAggregator aggregator) |
void |
clientHeartbeat(java.lang.String clientId,
java.lang.String hostname,
java.util.List<Metric> metrics)
Handles the client's heartbeat request for metrics collection.
|
MetricsMasterClientServiceHandler |
getMasterServiceHandler() |
java.lang.String |
getName() |
java.util.Map<ServiceType,GrpcService> |
getServices() |
void |
start(java.lang.Boolean isLeader) |
void |
workerHeartbeat(java.lang.String hostname,
java.util.List<Metric> metrics)
Handles the worker heartbeat and puts the metrics from an instance with a hostname.
|
close, createJournalContext, getDependencies, getExecutorService, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateJournalContextapplyAndJournal, processJournalEntry, resetState, restoreFromCheckpoint, writeToCheckpointgetCheckpointNamegetJournalEntryIteratorclose, getDependencies, stopgetCheckpointName, getJournalEntryIterator, processJournalEntry, resetState, restoreFromCheckpoint, writeToCheckpointprotected void addAggregator(SingleValueAggregator aggregator)
protected void addAggregator(MultiValueMetricsAggregator aggregator)
public java.lang.String getName()
public java.util.Map<ServiceType,GrpcService> getServices()
getServices in interface Server<java.lang.Boolean>public void start(java.lang.Boolean isLeader)
throws java.io.IOException
start in interface Server<java.lang.Boolean>start in class AbstractMasterjava.io.IOExceptionpublic void clientHeartbeat(java.lang.String clientId,
java.lang.String hostname,
java.util.List<Metric> metrics)
MetricsMasterclientHeartbeat in interface MetricsMasterclientId - the client idhostname - the client hostnamemetrics - client-side metricspublic MetricsMasterClientServiceHandler getMasterServiceHandler()
getMasterServiceHandler in interface MetricsMasterpublic void workerHeartbeat(java.lang.String hostname,
java.util.List<Metric> metrics)
MetricsMasterworkerHeartbeat in interface MetricsMasterhostname - the hostname of the instancemetrics - the new worker metricsCopyright © 2019. All Rights Reserved.