public boolean isClientOnlyService() {
    if (components == null || components.isEmpty()) {
      return false;
    }
    for (ComponentInfo compInfo : components) {
      if (!compInfo.isClient()) {
        return false;
      }
    }
    return true;
  }
Finds ComponentInfo by component name

@param componentName name of the component
@return ComponentInfo componentName or null
ambari-server/src/main/java/org/apache/ambari/server/state/ServiceInfo.java