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
Modifier and TypeMethodDescriptiondefer()
failure()
fromSuccessFlag
(boolean isSuccessful) fromSuccessFlag
(boolean isSuccessful, @NotNull Supplier<Pair<Integer, Long>> uploadStatsSupplier) @Nullable String
Returns archive name if artifact has been compressed by automatic archive creation, null otherwise.@NotNull ArchiverType
@NotNull String
@Nullable Integer
boolean
void
setArchiveName
(@Nullable String archiveName) void
setArchiverType
(@NotNull ArchiverType archiverType) void
setArtifactHandlerKey
(@NotNull String completeKey) toString()
-
Method Details
-
isSuccessful
public boolean isSuccessful()- Specified by:
isSuccessful
in interfaceArtifactHandlerPublishingResult
-
getStatus
- Specified by:
getStatus
in interfaceArtifactHandlerPublishingResult
-
getTotalUploadedSize
- Specified by:
getTotalUploadedSize
in interfaceArtifactHandlerPublishingResult
-
getTotalUploadedCount
- Specified by:
getTotalUploadedCount
in interfaceArtifactHandlerPublishingResult
-
setArtifactHandlerKey
- Specified by:
setArtifactHandlerKey
in interfaceArtifactHandlerPublishingResult
-
getArtifactHandlerKey
- Specified by:
getArtifactHandlerKey
in interfaceArtifactHandlerPublishingResult
-
getArchiverType
- Specified by:
getArchiverType
in interfaceArtifactHandlerPublishingResult
-
setArchiverType
- Specified by:
setArchiverType
in interfaceArtifactHandlerPublishingResult
-
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
- Specified by:
setArchiveName
in interfaceArtifactHandlerPublishingResult
-
failure
-
success
public static ArtifactHandlerPublishingResult success(@Nullable @Nullable Integer totalUploadedCnt, @Nullable @Nullable Long totalUploadedSize) -
defer
-
fromSuccessFlag
-
fromSuccessFlag
public static ArtifactHandlerPublishingResult fromSuccessFlag(boolean isSuccessful, @NotNull @NotNull Supplier<Pair<Integer, Long>> uploadStatsSupplier) -
toString
-