public class RemoteAmbariCluster extends Object implements org.apache.ambari.view.cluster.Cluster
Modifier and Type | Field and Description |
---|---|
static String |
AMBARI_OR_CLUSTER_ADMIN |
Constructor and Description |
---|
RemoteAmbariCluster(RemoteAmbariClusterEntity remoteAmbariClusterEntity,
Configuration config)
Constructor for Remote Ambari Cluster
|
RemoteAmbariCluster(String name,
String clusterPath,
org.apache.ambari.view.AmbariStreamProvider streamProvider)
Constructor for Remote Ambari Cluster
|
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getConfigByType(String type) |
String |
getConfigurationValue(String type,
String key) |
List<String> |
getHostsForServiceComponent(String serviceName,
String componentName) |
String |
getName() |
Set<String> |
getServices()
Get list of services installed on the remote cluster
|
boolean |
isAmbariOrClusterAdmin() |
public static final String AMBARI_OR_CLUSTER_ADMIN
public RemoteAmbariCluster(RemoteAmbariClusterEntity remoteAmbariClusterEntity, Configuration config) throws MalformedURLException
remoteAmbariClusterEntity
- MalformedURLException
public String getName()
getName
in interface org.apache.ambari.view.cluster.Cluster
public String getConfigurationValue(String type, String key)
getConfigurationValue
in interface org.apache.ambari.view.cluster.Cluster
public Map<String,String> getConfigByType(String type)
getConfigByType
in interface org.apache.ambari.view.cluster.Cluster
public List<String> getHostsForServiceComponent(String serviceName, String componentName)
getHostsForServiceComponent
in interface org.apache.ambari.view.cluster.Cluster
public Set<String> getServices() throws IOException, org.apache.ambari.view.AmbariHttpException
IOException
org.apache.ambari.view.AmbariHttpException
public boolean isAmbariOrClusterAdmin() throws org.apache.ambari.view.AmbariHttpException
org.apache.ambari.view.AmbariHttpException
Copyright © 2022 Apache Software Foundation. All rights reserved.