@Override
  public int hashCode() {
    int result;
    result = 31 + (serviceName != null ? serviceName.hashCode() : 0);
    result = result + (componentName != null ? componentName.hashCode() : 0);
    result = result + (hostId != null ? hostId.hashCode() : 0);
    return result;
  }
The {@link HostComponentSum1mary} class provides a concise representation of
the state of a component on a given host. Some of its fields are serializable
to JSON.
ambari-server/src/main/java/org/apache/ambari/server/orm/models/HostComponentSummary.java