Class ArtifactHandlerPublishingResultImpl
- java.lang.Object
-
- com.atlassian.bamboo.build.artifact.ArtifactHandlerPublishingResultImpl
-
- All Implemented Interfaces:
ArtifactHandlerPublishingResult
public class ArtifactHandlerPublishingResultImpl extends Object implements ArtifactHandlerPublishingResult
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.atlassian.bamboo.build.artifact.ArtifactHandlerPublishingResult
ArtifactHandlerPublishingResult.Status
-
-
Method Summary
-
-
-
Method Detail
-
isSuccessful
public boolean isSuccessful()
- Specified by:
isSuccessful
in interfaceArtifactHandlerPublishingResult
-
getStatus
public ArtifactHandlerPublishingResult.Status getStatus()
- Specified by:
getStatus
in interfaceArtifactHandlerPublishingResult
-
getTotalUploadedSize
public Long getTotalUploadedSize()
- Specified by:
getTotalUploadedSize
in interfaceArtifactHandlerPublishingResult
-
getTotalUploadedCount
@Nullable public @Nullable Integer getTotalUploadedCount()
- Specified by:
getTotalUploadedCount
in interfaceArtifactHandlerPublishingResult
-
setArtifactHandlerKey
public void setArtifactHandlerKey(@NotNull @NotNull String completeKey)
- Specified by:
setArtifactHandlerKey
in interfaceArtifactHandlerPublishingResult
-
getArtifactHandlerKey
@NotNull public @NotNull String getArtifactHandlerKey()
- Specified by:
getArtifactHandlerKey
in interfaceArtifactHandlerPublishingResult
-
getArchiverType
@NotNull public @NotNull ArchiverType getArchiverType()
- Specified by:
getArchiverType
in interfaceArtifactHandlerPublishingResult
-
setArchiverType
public void setArchiverType(@NotNull @NotNull ArchiverType archiverType)
- Specified by:
setArchiverType
in interfaceArtifactHandlerPublishingResult
-
getArchiveName
@Nullable public @Nullable String getArchiveName()
Description copied from interface:ArtifactHandlerPublishingResult
Returns archive name if artifact has been compressed by automatic archive creation, null otherwise.- Specified by:
getArchiveName
in interfaceArtifactHandlerPublishingResult
-
setArchiveName
public void setArchiveName(@Nullable @Nullable String archiveName)
- Specified by:
setArchiveName
in interfaceArtifactHandlerPublishingResult
-
failure
public static ArtifactHandlerPublishingResult failure()
-
success
public static ArtifactHandlerPublishingResult success(@Nullable @Nullable Integer totalUploadedCnt, @Nullable @Nullable Long totalUploadedSize)
-
defer
public static ArtifactHandlerPublishingResult defer()
-
fromSuccessFlag
public static ArtifactHandlerPublishingResult fromSuccessFlag(boolean isSuccessful)
-
fromSuccessFlag
public static ArtifactHandlerPublishingResult fromSuccessFlag(boolean isSuccessful, @NotNull @NotNull Supplier<Pair<Integer,Long>> uploadStatsSupplier)
-
-