|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.zeroturnaround.liverebel.api.impl.UploadImpl
public class UploadImpl
Holds the configuration of the upload.
| Constructor Summary | |
|---|---|
UploadImpl(CommandCenter center,
RestConnection connection,
JsonParser parser,
boolean verbose,
File file)
|
|
| Method Summary | |
|---|---|
UploadInfo |
execute()
Uploads new version of an application. |
protected UploadInfo |
execute(File newVersion,
com.zeroturnaround.liverebel.util.LiveRebelXml newLiveRebelXml,
File oldVersion,
String oldVersionId)
|
String |
getApplicationId()
|
File |
getBaseArchive()
|
String |
getBaseVersionId()
|
File |
getFile()
|
String |
getVersionId()
|
protected com.zeroturnaround.liverebel.util.diff.simple.VersionListing |
getVersionListing(String applicationId,
String versionId)
|
boolean |
isFull()
|
protected boolean |
isValidArchive(File archive)
|
protected com.zeroturnaround.liverebel.util.diff.simple.VersionListing |
loadLatestVersionListing(String applicationId)
|
protected com.zeroturnaround.liverebel.util.diff.simple.VersionListing |
loadVersionListing(String applicationId,
String versionId)
|
protected UploadInfo |
performBinaryDiffUpload(File oldVersion,
File newVersion,
com.zeroturnaround.liverebel.util.LiveRebelXml newLiveRebelXml)
|
protected UploadInfo |
performFullUpload(File newVersion)
|
protected UploadInfo |
performSimpleDiffUpload(File newVersion,
com.zeroturnaround.liverebel.util.LiveRebelXml newLiveRebelXml,
com.zeroturnaround.liverebel.util.diff.simple.VersionListing oldVersionListing)
|
Upload |
setApplicationId(String applicationId)
Overrides the application id. |
Upload |
setBaseArchive(File baseArchive)
Set the file on which the diff will be based. |
Upload |
setBaseVersionId(String baseVersionId)
Set the version on which the diff will be based. |
Upload |
setFull(boolean full)
Enables full upload, otherwise if base version or base archive is set, only differencies will be uploaded |
Upload |
setVersionId(String versionId)
Override the version id. |
protected UploadInfo |
upload(String applicationId,
String fromVersion,
File diff)
|
protected UploadInfo |
uploadSimpleDiff(String applicationId,
String oldVersionId,
String newVersionId,
File diff)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UploadImpl(CommandCenter center,
RestConnection connection,
JsonParser parser,
boolean verbose,
File file)
| Method Detail |
|---|
public UploadInfo execute()
throws DuplicationException,
IOException
Upload
execute in interface UploadDuplicationException - if the given version already exists on the
server
IOExceptionpublic String getApplicationId()
public File getBaseArchive()
public String getBaseVersionId()
public File getFile()
public String getVersionId()
public boolean isFull()
public Upload setApplicationId(String applicationId)
Upload
setApplicationId in interface UploadapplicationId - application identificator
public Upload setBaseArchive(File baseArchive)
Upload
setBaseArchive in interface UploadbaseArchive - file on which this diff is based
public Upload setBaseVersionId(String baseVersionId)
Upload
setBaseVersionId in interface UploadbaseVersionId - version on which this diff is based
public Upload setFull(boolean full)
Upload
setFull in interface Uploadfull - send full archive
public Upload setVersionId(String versionId)
Upload
setVersionId in interface UploadversionId - version identificator
protected UploadInfo execute(File newVersion,
com.zeroturnaround.liverebel.util.LiveRebelXml newLiveRebelXml,
File oldVersion,
String oldVersionId)
throws DuplicationException,
IOException
DuplicationException
IOException
protected com.zeroturnaround.liverebel.util.diff.simple.VersionListing getVersionListing(String applicationId,
String versionId)
protected boolean isValidArchive(File archive)
protected com.zeroturnaround.liverebel.util.diff.simple.VersionListing loadLatestVersionListing(String applicationId)
protected com.zeroturnaround.liverebel.util.diff.simple.VersionListing loadVersionListing(String applicationId,
String versionId)
protected UploadInfo performBinaryDiffUpload(File oldVersion,
File newVersion,
com.zeroturnaround.liverebel.util.LiveRebelXml newLiveRebelXml)
throws IOException
IOExceptionprotected UploadInfo performFullUpload(File newVersion)
protected UploadInfo performSimpleDiffUpload(File newVersion,
com.zeroturnaround.liverebel.util.LiveRebelXml newLiveRebelXml,
com.zeroturnaround.liverebel.util.diff.simple.VersionListing oldVersionListing)
throws IOException
IOException
protected UploadInfo upload(String applicationId,
String fromVersion,
File diff)
throws DuplicationException
DuplicationException
protected UploadInfo uploadSimpleDiff(String applicationId,
String oldVersionId,
String newVersionId,
File diff)
throws DuplicationException
DuplicationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||