@RequiresSession
  public List<HostRoleCommandEntity> findAll() {
    return daoUtils.selectAll(entityManagerProvider.get(), HostRoleCommandEntity.class);
  }
Gets the number of commands in a particular status.

@param statuses
         the statuses to include (not {@code null}).
@return the count of commands in the given set of statuses.
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/HostRoleCommandDAO.java