public HostRoleCommand getTaskById(long taskId) {
    return db.getTask(taskId);
  }
Get all actions(stages) for a request.

@param requestId the request id
@return list of all stages associated with the given request id
ambari-server/src/main/java/org/apache/ambari/server/actionmanager/ActionManager.java