public interface MetricHostProvider
Modifier and Type | Method and Description |
---|---|
String |
getCollectorHostName(String clusterName,
MetricsServiceProvider.MetricsService service)
Get the metrics server host name for the given cluster name.
|
String |
getCollectorPort(String clusterName,
MetricsServiceProvider.MetricsService service)
Get the metrics server port for the given cluster name.
|
default Optional<String> |
getExternalHostName(String clusterName,
String componentName)
If a component is installed to a host that is managed outside of Ambari (for example OneFS) then this method will return the external hostname.
|
String |
getHostName(String clusterName,
String componentName)
Get the host name for the given cluster name and component name.
|
boolean |
isCollectorComponentLive(String clusterName,
MetricsServiceProvider.MetricsService service)
Get the status of metrics server component for the given cluster name.
|
boolean |
isCollectorHostExternal(String clusterName)
Is the collector host external to the cluster?
|
boolean |
isCollectorHostLive(String clusterName,
MetricsServiceProvider.MetricsService service)
Get the status of metrics server host for the given cluster name.
|
String getCollectorHostName(String clusterName, MetricsServiceProvider.MetricsService service) throws SystemException
clusterName
- the cluster nameSystemException
- if unable to get the metrics server host nameString getHostName(String clusterName, String componentName) throws SystemException
clusterName
- the cluster namecomponentName
- the component nameSystemException
- if unable to get the JMX host nameString getCollectorPort(String clusterName, MetricsServiceProvider.MetricsService service) throws SystemException
clusterName
- the cluster nameSystemException
- if unable to get the metrics server portboolean isCollectorHostLive(String clusterName, MetricsServiceProvider.MetricsService service) throws SystemException
clusterName
- the cluster nameSystemException
- if unable to get the status of metrics server hostboolean isCollectorComponentLive(String clusterName, MetricsServiceProvider.MetricsService service) throws SystemException
clusterName
- the cluster nameSystemException
- if unable to get the status of metrics server componentdefault Optional<String> getExternalHostName(String clusterName, String componentName)
boolean isCollectorHostExternal(String clusterName)
clusterName
- the cluster nameCopyright © 2022 Apache Software Foundation. All rights reserved.