org.cloudfoundry.client.lib
Interface UploadStatusCallback


public interface UploadStatusCallback

Reports status information when uploading an application.


Field Summary
static UploadStatusCallback NONE
          Empty implementation
 
Method Summary
 void onCheckResources()
          Called after the /resources call is made.
 void onMatchedFileNames(Set<String> matchedFileNames)
          Called after the files to be uploaded have been identified.
 void onProcessMatchedResources(int length)
          Called after the data to be uploaded has been processed
 boolean onProgress(String status)
          Called during asynchronous upload process.
 

Field Detail

NONE

static final UploadStatusCallback NONE
Empty implementation

Method Detail

onCheckResources

void onCheckResources()
Called after the /resources call is made.


onMatchedFileNames

void onMatchedFileNames(Set<String> matchedFileNames)
Called after the files to be uploaded have been identified.

Parameters:
matchedFileNames - the files to be uploaded

onProcessMatchedResources

void onProcessMatchedResources(int length)
Called after the data to be uploaded has been processed

Parameters:
length - the size of the upload data (before compression)

onProgress

boolean onProgress(String status)
Called during asynchronous upload process. Implementation can return true to unsubscribe from progress update reports. This is useful if the caller want to unblock the thread that initiated the upload. Note, however, that the upload job that has been asynchronously started will continue to execute on the server.

Parameters:
status - string such as "queued", "finished"
Returns:
true to unsubscribe from update report


Copyright © 2014. All rights reserved.