public final class LoggedArtifactImpl extends Object implements LoggedArtifact
LoggedArtifact.| Modifier and Type | Method and Description |
|---|---|
DownloadedArtifact |
download(Path folder) |
DownloadedArtifact |
download(@NonNull Path folder,
@NonNull AssetOverwriteStrategy overwriteStrategy)
Download the current Artifact Version assets to a given directory.
|
Set<String> |
getAliases() |
Set<String> |
getArtifactTags()
Returns set of TAGs associated with the artifact.
|
String |
getArtifactType()
Returns type of the artifact.
|
LoggedArtifactAsset |
getAsset(String assetLogicalPath)
Allows getting asset keyed by provided
logicalPath from the Comet backend. |
Collection<LoggedArtifactAsset> |
getAssets()
Allows reading list of assets associated with this artifact from the Comet backend.
|
String |
getFullName()
Returns the fully qualified name of the artifact in form 'workspace/name:version'.
|
Map<String,Object> |
getMetadata() |
Collection<LoggedArtifactAsset> |
getRemoteAssets()
Allows reading list of remote assets associated with this artifact from Comet backend.
|
long |
getSize()
Returns the total size of logged artifact version; it is the sum of all the artifact version assets.
|
String |
getSourceExperimentKey()
Returns key of the experiment that was used to create this artifact.
|
String |
getVersion()
Returns the version of this artifact represented in semantic version format.
|
String |
getVersionId()
Returns the unique identifier of the artifact version.
|
Set<String> |
getVersionTags() |
String |
getWorkspace()
Returns workspace name where artifact was logged.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAliases, getArtifactId, getMetadata, getName, getVersionTagspublic Set<String> getArtifactTags()
LoggedArtifactgetArtifactTags in interface LoggedArtifactpublic String getArtifactType()
LoggedArtifactgetArtifactType in interface LoggedArtifactpublic long getSize()
LoggedArtifactgetSize in interface LoggedArtifactpublic String getSourceExperimentKey()
LoggedArtifactgetSourceExperimentKey in interface LoggedArtifactpublic String getVersion()
LoggedArtifactgetVersion in interface LoggedArtifactpublic String getWorkspace()
LoggedArtifactgetWorkspace in interface LoggedArtifactpublic String getVersionId()
LoggedArtifactgetVersionId in interface LoggedArtifactpublic String getFullName()
LoggedArtifactgetFullName in interface LoggedArtifactpublic Collection<LoggedArtifactAsset> getRemoteAssets() throws ArtifactException
LoggedArtifactThis method is the remote method invocation and will contact the Comet backend.
getRemoteAssets in interface LoggedArtifactLoggedArtifactAsset associated with this artifact.ArtifactException - if failed to read assets from Comet.public Collection<LoggedArtifactAsset> getAssets() throws ArtifactException
LoggedArtifactThis method is the remote method invocation and will contact the Comet backend.
getAssets in interface LoggedArtifactLoggedArtifactAsset associated with this artifact.ArtifactException - if failed to read assets from the Comet.public LoggedArtifactAsset getAsset(String assetLogicalPath) throws ArtifactException
LoggedArtifactlogicalPath from the Comet backend.getAsset in interface LoggedArtifactassetLogicalPath - the logical path of the asset.LoggedArtifactAsset instance associated with given logical path.ArtifactAssetNotFoundException - if failed to find asset with given logical path.ArtifactException - if operation failed.public DownloadedArtifact download(Path folder)
download in interface LoggedArtifactpublic DownloadedArtifact download(@NonNull @NonNull Path folder, @NonNull @NonNull AssetOverwriteStrategy overwriteStrategy) throws ArtifactException
LoggedArtifactdownload in interface LoggedArtifactfolder - the path to the folder to keep downloaded files of the assets.overwriteStrategy - the overwriting strategy to apply when conflicting file name found.Artifact representing downloaded artifact with a list of all associated assets.ArtifactException - thrown if operation failed.Copyright © 2022. All rights reserved.