public class ArtifactHandlerPublishingResultImpl extends Object implements ArtifactHandlerPublishingResult
ArtifactHandlerPublishingResult.Status
Modifier and Type | Method and Description |
---|---|
static ArtifactHandlerPublishingResult |
defer() |
static ArtifactHandlerPublishingResult |
failure() |
static ArtifactHandlerPublishingResult |
fromSuccessFlag(boolean isSuccessful) |
static ArtifactHandlerPublishingResult |
fromSuccessFlag(boolean isSuccessful,
Supplier<Pair<Integer,Long>> uploadStatsSupplier) |
String |
getArchiveName()
Returns archive name if artifact has been compressed by automatic archive creation, null otherwise.
|
ArchiverType |
getArchiverType() |
String |
getArtifactHandlerKey() |
ArtifactHandlerPublishingResult.Status |
getStatus() |
Integer |
getTotalUploadedCount() |
Long |
getTotalUploadedSize() |
boolean |
isSuccessful() |
void |
setArchiveName(String archiveName) |
void |
setArchiverType(ArchiverType archiverType) |
void |
setArtifactHandlerKey(String completeKey) |
static ArtifactHandlerPublishingResult |
success(Integer totalUploadedCnt,
Long totalUploadedSize) |
public boolean isSuccessful()
isSuccessful
in interface ArtifactHandlerPublishingResult
public ArtifactHandlerPublishingResult.Status getStatus()
getStatus
in interface ArtifactHandlerPublishingResult
public Long getTotalUploadedSize()
getTotalUploadedSize
in interface ArtifactHandlerPublishingResult
@Nullable public Integer getTotalUploadedCount()
getTotalUploadedCount
in interface ArtifactHandlerPublishingResult
public void setArtifactHandlerKey(@NotNull String completeKey)
setArtifactHandlerKey
in interface ArtifactHandlerPublishingResult
@NotNull public String getArtifactHandlerKey()
getArtifactHandlerKey
in interface ArtifactHandlerPublishingResult
@NotNull public ArchiverType getArchiverType()
getArchiverType
in interface ArtifactHandlerPublishingResult
public void setArchiverType(@NotNull ArchiverType archiverType)
setArchiverType
in interface ArtifactHandlerPublishingResult
@Nullable public String getArchiveName()
ArtifactHandlerPublishingResult
getArchiveName
in interface ArtifactHandlerPublishingResult
public void setArchiveName(@Nullable String archiveName)
setArchiveName
in interface ArtifactHandlerPublishingResult
public static ArtifactHandlerPublishingResult failure()
public static ArtifactHandlerPublishingResult success(@Nullable Integer totalUploadedCnt, @Nullable Long totalUploadedSize)
public static ArtifactHandlerPublishingResult defer()
public static ArtifactHandlerPublishingResult fromSuccessFlag(boolean isSuccessful)
public static ArtifactHandlerPublishingResult fromSuccessFlag(boolean isSuccessful, @NotNull Supplier<Pair<Integer,Long>> uploadStatsSupplier)
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.