Package freenet.clients.fcp

Examples of freenet.clients.fcp.UploadFileRequestStatus


        try {
          RequestStatus[] reqs;
          reqs = fcp.getGlobalRequests();
                                        for(RequestStatus r : reqs) {
            if(r instanceof UploadFileRequestStatus) {
              UploadFileRequestStatus upload = (UploadFileRequestStatus)r;
              if(upload.hasSucceeded()) {
                identifier = upload.getIdentifier();
                fcp.removeGlobalRequestBlocking(identifier);
              }
            }
          } 
        } catch (MessageInvalidException e) {
View Full Code Here


          if(size > 0)
            totalQueuedDownloadSize += size;
        }
        added = true;
      } else if(req instanceof UploadFileRequestStatus && uploads) {
        UploadFileRequestStatus upload = (UploadFileRequestStatus)req;
        if(upload.hasSucceeded()) {
          completedUpload.add(upload);
        } else if(upload.hasFinished()) {
          failedUpload.add(upload);
        } else {
          short prio = upload.getPriority();
          if(prio < lowestQueuedPrio)
            lowestQueuedPrio = prio;
          uncompletedUpload.add(upload);
        }
        long size = upload.getDataSize();
        if(size > 0)
          totalQueuedUploadSize += size;
        added = true;
      } else if(req instanceof UploadDirRequestStatus && uploads) {
        UploadDirRequestStatus upload = (UploadDirRequestStatus)req;
        if(upload.hasSucceeded()) {
          completedDirUpload.add(upload);
        } else if(upload.hasFinished()) {
          failedDirUpload.add(upload);
        } else {
          short prio = upload.getPriority();
          if(prio < lowestQueuedPrio)
            lowestQueuedPrio = prio;
          uncompletedDirUpload.add(upload);
        }
        long size = upload.getTotalDataSize();
        if(size > 0)
          totalQueuedUploadSize += size;
                added = true;
      }
    }
View Full Code Here

TOP

Related Classes of freenet.clients.fcp.UploadFileRequestStatus

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.