org.cloudfoundry.client.lib.domain
Class UploadApplicationPayload

java.lang.Object
  extended by org.cloudfoundry.client.lib.domain.UploadApplicationPayload

public class UploadApplicationPayload
extends Object

A payload used to upload application data. The payload data is built from a source ApplicationArchive, excluding any entries that are already known to the remote server.

Author:
Phillip Webb

Constructor Summary
UploadApplicationPayload(ApplicationArchive archive, CloudResources knownRemoteResources)
          Create a new UploadApplicationPayload.
 
Method Summary
 ApplicationArchive getArchive()
          Returns the source archive.
 InputStream getInputStream()
          Returns the payload data as an input stream.
 int getNumEntries()
           
 int getTotalUncompressedSize()
          Returns the total size of the entries to be transfered (before compression).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UploadApplicationPayload

public UploadApplicationPayload(ApplicationArchive archive,
                                CloudResources knownRemoteResources)
                         throws IOException
Create a new UploadApplicationPayload.

Parameters:
archive - the source archive
knownRemoteResources - resources that are already known on the remote server
Throws:
IOException
Method Detail

getArchive

public ApplicationArchive getArchive()
Returns the source archive.

Returns:
the archive

getTotalUncompressedSize

public int getTotalUncompressedSize()
Returns the total size of the entries to be transfered (before compression).

Returns:
the uncompressed size of the entries.

getNumEntries

public int getNumEntries()
Returns:
The total number of entries to upload

getInputStream

public InputStream getInputStream()
Returns the payload data as an input stream.

Returns:
the payload data


Copyright © 2013. All rights reserved.