Examples of UploadStatusCallback


Examples of org.cloudfoundry.client.lib.UploadStatusCallback

          // resources
          // AFTER
          // the server determines the list of missing file names.
          if (applicationArchive instanceof CachingApplicationArchive) {
            final CachingApplicationArchive cachingArchive = (CachingApplicationArchive) applicationArchive;
            client.uploadApplication(appName, cachingArchive, new UploadStatusCallback() {

              public void onProcessMatchedResources(int length) {

              }

              public void onMatchedFileNames(Set<String> matchedFileNames) {
                cachingArchive.generatePartialWarFile(matchedFileNames);
              }

              public void onCheckResources() {

              }

              public boolean onProgress(String status) {
                return false;
              }
            });

            // Once the application has run, do a clean up of the
            // sha1
            // cache for deleted resources

          }
          else {
            client.uploadApplication(appName, applicationArchive, new UploadStatusCallback() {

              public void onProcessMatchedResources(int length) {

              }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.