Ejemplo n.º 1
0
 private void showExternalDownloadItems() {
   final Map<String, FcpPersistentGet> items = persistentQueue.getDownloadRequests();
   for (final FcpPersistentGet downloadRequest : items.values()) {
     if (!downloadModelItems.containsKey(downloadRequest.getIdentifier())) {
       addExternalItem(downloadRequest);
     }
   }
 }
Ejemplo n.º 2
0
 public void startThreads() {
   directTransferThread.start();
   persistentQueue.startThreads();
   final TimerTask task =
       new TimerTask() {
         @Override
         public void run() {
           maybeStartRequests();
         }
       };
   Core.schedule(task, 3000, 3000);
 }
Ejemplo n.º 3
0
 /**
  * @param ulItem items whose global identifier is to check
  * @return true if this item is currently in the global queue, no matter in what state
  */
 public boolean isItemInGlobalQueue(final FrostUploadItem ulItem) {
   return persistentQueue.isIdInGlobalQueue(ulItem.getGqIdentifier());
 }