public class DefaultMetricsMaster extends CoreMaster implements MetricsMaster, NoopJournaled
mBackupManager, mJournalSystem, mPort, mSafeModeManager, mStartTimeMs
mClock, mMasterContext
Modifier and Type | Method and Description |
---|---|
protected void |
addAggregator(MultiValueMetricsAggregator aggregator) |
protected void |
addAggregator(SingleValueAggregator aggregator) |
void |
clientHeartbeat(String clientId,
String hostname,
List<Metric> metrics)
Handles the client's heartbeat request for metrics collection.
|
MetricsMasterClientServiceHandler |
getMasterServiceHandler() |
String |
getName() |
Map<ServiceType,GrpcService> |
getServices() |
void |
start(Boolean isLeader)
Starts the Alluxio server.
|
void |
workerHeartbeat(String hostname,
List<Metric> metrics)
Handles the worker heartbeat and puts the metrics from an instance with a hostname.
|
close, createJournalContext, getDependencies, getExecutorService, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createJournalContext
applyAndJournal, processJournalEntry, resetState, restoreFromCheckpoint, writeToCheckpoint
getCheckpointName
getJournalEntryIterator
close, getDependencies, stop
getCheckpointName, getJournalEntryIterator, processJournalEntry, resetState, restoreFromCheckpoint, writeToCheckpoint
protected void addAggregator(SingleValueAggregator aggregator)
protected void addAggregator(MultiValueMetricsAggregator aggregator)
public String getName()
public Map<ServiceType,GrpcService> getServices()
getServices
in interface Server<Boolean>
public void start(Boolean isLeader) throws IOException
Server
start
in interface Server<Boolean>
start
in class AbstractMaster
isLeader
- the start optionsIOException
public void clientHeartbeat(String clientId, String hostname, List<Metric> metrics)
MetricsMaster
clientHeartbeat
in interface MetricsMaster
clientId
- the client idhostname
- the client hostnamemetrics
- client-side metricspublic MetricsMasterClientServiceHandler getMasterServiceHandler()
getMasterServiceHandler
in interface MetricsMaster
public void workerHeartbeat(String hostname, List<Metric> metrics)
MetricsMaster
workerHeartbeat
in interface MetricsMaster
hostname
- the hostname of the instancemetrics
- the new worker metricsCopyright © 2023. All Rights Reserved.