public MaintenanceState getEffectiveState(ServiceComponentHost sch)
      throws AmbariException {
    Host host = clusters.getHost(sch.getHostName());
    return getEffectiveState(sch, host);
  }
Gets the effective state for a HostComponent

@param sch
         the host component
@return the maintenance state
@throws AmbariException
ambari-server/src/main/java/org/apache/ambari/server/controller/MaintenanceStateHelper.java