public class MetricsCollectorHAManager extends Object
Modifier and Type | Field and Description |
---|---|
protected AmbariEventPublisher |
eventPublisher |
Constructor and Description |
---|
MetricsCollectorHAManager() |
Modifier and Type | Method and Description |
---|---|
void |
addCollectorHost(String clusterName,
String collectorHost) |
void |
addExternalMetricsCollectorHost(String clusterName,
String collectorHost) |
String |
getCollectorHost(String clusterName) |
boolean |
isCollectorComponentLive(String clusterName) |
boolean |
isCollectorHostLive(String clusterName) |
boolean |
isEmpty() |
boolean |
isExternalCollector() |
void |
onMetricsCollectorHostDownEvent(MetricsCollectorHostDownEvent event)
Handles
MetricsCollectorHostDownEvent |
@Inject protected AmbariEventPublisher eventPublisher
public void addExternalMetricsCollectorHost(String clusterName, String collectorHost)
public void onMetricsCollectorHostDownEvent(MetricsCollectorHostDownEvent event)
MetricsCollectorHostDownEvent
event
- the change event.public boolean isEmpty()
public boolean isExternalCollector()
public boolean isCollectorHostLive(String clusterName)
public boolean isCollectorComponentLive(String clusterName)
Copyright © 2022 Apache Software Foundation. All rights reserved.