@Override
  public HostRoleCommand create(String hostName, Role role,
                                ServiceComponentHostEvent event, RoleCommand command) {
    return new HostRoleCommand(hostName, role, event, command,
        injector.getInstance(HostDAO.class),
        injector.getInstance(ExecutionCommandDAO.class),
        injector.getInstance(ExecutionCommandWrapperFactory.class));
  }
Constructor via factory.
@param hostName Host name
@param role Action to run
@param event Event on the host and component
@param command Type of command
@return An instance constructed where retryAllowed defaults to false
ambari-server/src/main/java/org/apache/ambari/server/actionmanager/HostRoleCommandFactoryImpl.java