public class ConfigBasedJmxHostProvider extends Object implements JMXHostProvider
JMXHostProvider
that resolves JMX URIs based on cluster configuration.Constructor and Description |
---|
ConfigBasedJmxHostProvider(Map<String,UriInfo> overriddenJmxUris,
JMXHostProvider defaultProvider,
ConfigHelper configHelper) |
Modifier and Type | Method and Description |
---|---|
Set<String> |
getHostNames(String clusterName,
String componentName)
Get the JMX host names for the given cluster name and component name.
|
String |
getJMXProtocol(String clusterName,
String componentName)
Get the protocol for the specified cluster name and component.
|
String |
getJMXRpcMetricTag(String clusterName,
String componentName,
String port)
Get the rpc tag for the specified cluster name, component and port number
|
String |
getPort(String clusterName,
String componentName,
String hostName,
boolean httpsEnabled)
Get the port for the specified cluster name and component.
|
String |
getPublicHostName(String clusterName,
String hostName) |
public ConfigBasedJmxHostProvider(Map<String,UriInfo> overriddenJmxUris, JMXHostProvider defaultProvider, ConfigHelper configHelper)
public String getPublicHostName(String clusterName, String hostName)
getPublicHostName
in interface JMXHostProvider
public Set<String> getHostNames(String clusterName, String componentName)
JMXHostProvider
getHostNames
in interface JMXHostProvider
clusterName
- the cluster namecomponentName
- the component namepublic String getPort(String clusterName, String componentName, String hostName, boolean httpsEnabled)
JMXHostProvider
getPort
in interface JMXHostProvider
clusterName
- the cluster namecomponentName
- the component namehostName
- the component hostNamehttpsEnabled
- https enabledpublic String getJMXProtocol(String clusterName, String componentName)
JMXHostProvider
getJMXProtocol
in interface JMXHostProvider
clusterName
- the cluster namecomponentName
- the component namepublic String getJMXRpcMetricTag(String clusterName, String componentName, String port)
JMXHostProvider
getJMXRpcMetricTag
in interface JMXHostProvider
clusterName
- the cluster namecomponentName
- the componentName nameport
- the port numberCopyright © 2022 Apache Software Foundation. All rights reserved.