public final class ArtifactAssetImpl extends RemoteAssetImpl implements ArtifactAsset
| Constructor and Description |
|---|
ArtifactAssetImpl(AssetImpl asset)
Creates new instance using values from provided
AssetImpl. |
ArtifactAssetImpl(LoggedArtifactAssetImpl asset)
Creates new instance using values from provided
LoggedArtifactAssetImpl. |
ArtifactAssetImpl(RemoteAssetImpl asset)
Creates new instance using values from provided
RemoteAssetImpl. |
ArtifactAssetImpl(String name,
Path filePath,
long size,
Map<String,Object> metadata,
String assetType)
Creates new instance with specified parameters.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<Long> |
getSize()
Returns the optional size of this asset if appropriate.
|
boolean |
isRemote()
Returns
true if this is remote asset, i.e., providing URI to the remote location to download
content. |
getLinkgetExperimentContext, getFile, getFileLikeData, getGroupingName, getLogicalPath, getMetadata, getType, setContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLinkgetExperimentContext, getFile, getFileLikeData, getLogicalPath, getMetadata, getTypepublic ArtifactAssetImpl(String name, Path filePath, long size, Map<String,Object> metadata, String assetType)
name - the logical path/name of the asset.filePath - the path to the asset file.size - the size of the asset file.metadata - the meta-data associated with asset.assetType - the type of the asset.public ArtifactAssetImpl(AssetImpl asset)
AssetImpl.asset - the AssetImpl to copy data from.public ArtifactAssetImpl(RemoteAssetImpl asset)
RemoteAssetImpl.asset - the RemoteAssetImpl to copy relevant data from.public ArtifactAssetImpl(LoggedArtifactAssetImpl asset)
LoggedArtifactAssetImpl.asset - the LoggedArtifactAssetImpl to get values from.public Optional<Long> getSize()
ArtifactAssetgetSize in interface ArtifactAssetpublic boolean isRemote()
ArtifactAssettrue if this is remote asset, i.e., providing URI to the remote location to download
content.isRemote in interface ArtifactAssettrue if this is remote asset.Copyright © 2022. All rights reserved.