public class BlacklistingLlapMetricsListener extends Object implements LlapMetricsListener
| Constructor and Description |
|---|
BlacklistingLlapMetricsListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
init(org.apache.hadoop.conf.Configuration conf,
LlapRegistryService registry)
Initializing the listener with the current configuration.
|
void |
newClusterMetrics(Map<String,LlapMetricsCollector.LlapMetrics> newMetrics)
Handler will be called when new data is arrived for every active Llap Daemon in the cluster.
|
void |
newDaemonMetrics(String workerIdentity,
LlapMetricsCollector.LlapMetrics newMetrics)
Handler will be called when new Llap Daemon metrics data is arrived.
|
protected void |
setCapacity(String workerIdentity,
int newExecutorNum,
int newWaitQueueSize) |
public void init(org.apache.hadoop.conf.Configuration conf,
LlapRegistryService registry)
LlapMetricsListenerinit in interface LlapMetricsListenerconf - The configurationregistry - The Llap registry service to access the Llap Daemonspublic void newDaemonMetrics(String workerIdentity, LlapMetricsCollector.LlapMetrics newMetrics)
LlapMetricsListenernewDaemonMetrics in interface LlapMetricsListenerworkerIdentity - The worker identity of the Llap DaemonnewMetrics - The new metrics objectpublic void newClusterMetrics(Map<String,LlapMetricsCollector.LlapMetrics> newMetrics)
LlapMetricsListenernewClusterMetrics in interface LlapMetricsListenernewMetrics - The map of the worker indentity -> metricsprotected void setCapacity(String workerIdentity, int newExecutorNum, int newWaitQueueSize) throws IOException, com.google.protobuf.ServiceException
IOExceptioncom.google.protobuf.ServiceExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.