private ListMultimap<String, ServiceComponentHostEvent> formEventMap(Stage s, List<ExecutionCommand> commands) {
    ListMultimap<String, ServiceComponentHostEvent> serviceEventMap = ArrayListMultimap.create();
    for (ExecutionCommand cmd : commands) {
      String hostname = cmd.getHostname();
      String roleStr = cmd.getRole();
      if (RoleCommand.ACTIONEXECUTE != cmd.getRoleCommand()) {
          serviceEventMap.put(cmd.getServiceName(), s.getFsmEvent(hostname, roleStr).getEvent());
      }
    }
    return serviceEventMap;
  }
Checks if timeout is required.
@param status      the status of the current role
@param stage       the stage
@param host        the host object; can be {@code null} for server-side tasks
@param role        the role
@param currentTime the current
@param taskTimeout the amount of time to determine timeout
@return {@code true} if timeout is needed
@throws AmbariException
ambari-server/src/main/java/org/apache/ambari/server/actionmanager/ActionScheduler.java