public class LlapMetricsCollector extends Object implements org.apache.hadoop.service.ServiceStateChangeListener, ServiceInstanceStateChangeListener<LlapServiceInstance>
| Modifier and Type | Class and Description |
|---|---|
static class |
LlapMetricsCollector.LlapMetrics
Stores the metrics retrieved from the llap daemons, along with the retrieval timestamp.
|
| Constructor and Description |
|---|
LlapMetricsCollector(org.apache.hadoop.conf.Configuration conf,
LlapRegistryService registry) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,LlapMetricsCollector.LlapMetrics> |
getMetrics() |
LlapMetricsCollector.LlapMetrics |
getMetrics(String workerIdentity) |
void |
onCreate(LlapServiceInstance serviceInstance,
int ephSeqVersion) |
void |
onRemove(LlapServiceInstance serviceInstance,
int ephSeqVersion) |
void |
onUpdate(LlapServiceInstance serviceInstance,
int ephSeqVersion) |
void |
shutdown() |
void |
start() |
void |
stateChanged(org.apache.hadoop.service.Service service) |
public LlapMetricsCollector(org.apache.hadoop.conf.Configuration conf,
LlapRegistryService registry)
public void start()
public void shutdown()
public void stateChanged(org.apache.hadoop.service.Service service)
stateChanged in interface org.apache.hadoop.service.ServiceStateChangeListenerpublic void onCreate(LlapServiceInstance serviceInstance, int ephSeqVersion)
onCreate in interface ServiceInstanceStateChangeListener<LlapServiceInstance>public void onUpdate(LlapServiceInstance serviceInstance, int ephSeqVersion)
onUpdate in interface ServiceInstanceStateChangeListener<LlapServiceInstance>public void onRemove(LlapServiceInstance serviceInstance, int ephSeqVersion)
onRemove in interface ServiceInstanceStateChangeListener<LlapServiceInstance>public LlapMetricsCollector.LlapMetrics getMetrics(String workerIdentity)
public Map<String,LlapMetricsCollector.LlapMetrics> getMetrics()
Copyright © 2024 The Apache Software Foundation. All rights reserved.