public interface LoggedArtifact
LoggedArtifact allows reading artifact properties and downloading all or particular assets
associated with it.
| Modifier and Type | Method and Description |
|---|---|
DownloadedArtifact |
download(Path folder) |
DownloadedArtifact |
download(Path folder,
AssetOverwriteStrategy overwriteStrategy)
Download the current Artifact Version assets to a given directory.
|
Set<String> |
getAliases()
Returns set of aliases associated with the artifact.
|
String |
getArtifactId()
Returns unique identifier of the artifact.
|
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()
Returns metadata associated with artifact.
|
String |
getName()
Returns name of the artifact.
|
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()
Returns set of TAGs associated with current version of the artifact.
|
String |
getWorkspace()
Returns workspace name where artifact was logged.
|
Set<String> getAliases()
String getArtifactId()
Set<String> getArtifactTags()
String getArtifactType()
Map<String,Object> getMetadata()
String getName()
String getFullName()
long getSize()
String getSourceExperimentKey()
String getVersion()
String getVersionId()
Set<String> getVersionTags()
String getWorkspace()
Collection<LoggedArtifactAsset> getRemoteAssets() throws ArtifactException
This method is the remote method invocation and will contact the Comet backend.
LoggedArtifactAsset associated with this artifact.ArtifactException - if failed to read assets from Comet.Collection<LoggedArtifactAsset> getAssets() throws ArtifactException
This method is the remote method invocation and will contact the Comet backend.
LoggedArtifactAsset associated with this artifact.ArtifactException - if failed to read assets from the Comet.LoggedArtifactAsset getAsset(String assetLogicalPath) throws ArtifactAssetNotFoundException, ArtifactException
logicalPath from the Comet backend.assetLogicalPath - 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.DownloadedArtifact download(Path folder, AssetOverwriteStrategy overwriteStrategy) throws ArtifactException
folder - 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.DownloadedArtifact download(Path folder) throws ArtifactException
ArtifactExceptionCopyright © 2022. All rights reserved.