public class UploaderResult extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
UploaderResult.ArtifactResult |
Constructor and Description |
---|
UploaderResult() |
Modifier and Type | Method and Description |
---|---|
void |
addUploadedArtifacts(Set<UploaderResult.ArtifactResult> artifacts)
Adds all the given entries to successfully uploaded artifacts.
|
Set<UploaderResult.ArtifactResult> |
getUploadedArtifacts()
Returns a unmodifiable map containing the successfully uploaded
artifacts.
|
boolean |
isEmptyUpload()
Returns if no files matching the artifact filter where found.
|
boolean |
isFailed()
Returns if the upload was not completed successfully.
|
void |
setEmptyUpload(boolean isEmptyUpload)
Marks this upload that no matching artifacts where found.
|
void |
setFailed(boolean failed)
Marks this upload as failed.
|
public Set<UploaderResult.ArtifactResult> getUploadedArtifacts()
public void addUploadedArtifacts(Set<UploaderResult.ArtifactResult> artifacts)
artifacts
- a map containing identifier and filename of artifacts.public boolean isFailed()
Depending on the protocol version some files may have been uploaded regardless.
public void setFailed(boolean failed)
failed
- the status of this upload.public boolean isEmptyUpload()
public void setEmptyUpload(boolean isEmptyUpload)
isEmptyUpload
- true if nothing to upload was found,
false otherwise.Copyright © 2016–2018. All rights reserved.