Пример #1
0
 public int getFetchQueueSize() {
   return stageRequests.getCount(AbstractRequest.State.QUEUED);
 }
Пример #2
0
 public int getActiveFetchJobs() {
   return stageRequests.getCount(AbstractRequest.State.ACTIVE)
       + stageRequests.getCount(AbstractRequest.State.CANCELED);
 }