private static String generateKey(String component, String host) {
    return component + "+" + host;
  }
This protected method allows for simpler unit tests.

@return the Map of failure counts on a per-component basis
ambari-server/src/main/java/org/apache/ambari/server/controller/logging/LogSearchDataRetrievalService.java