public String getHostComponentState(String hostName, String componentName) {
    Boolean healthy = Boolean.FALSE;
    if (!isClientOnlyComponent(componentName))
      healthy = stateProvider.getRunningState(hostName, componentName) == StateProvider.State.Running;
    return healthy ? "STARTED" : "INSTALLED";
  }
Get the host component state from the given host name and component name.

@param hostName       the host name
@param componentName  the component name

@return the host component state
contrib/ambari-scom/ambari-scom-server/src/main/java/org/apache/ambari/msi/ClusterDefinition.java