Package com.tibco.ep.sb.ads
Class Artifact
java.lang.Object
com.tibco.ep.sb.ads.Artifact
An artifact loaded in the cluster.
An Artifact instance is uniquely identified by its type, name, and version.
- Since:
- 10.2
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Defines the artifact encoding types -
Method Summary
-
Method Details
-
getType
- Returns:
- Artifact's type
-
getName
- Returns:
- Artifact's name
-
getVersion
- Returns:
- Artifact's version
-
getLatest
public boolean getLatest()- Returns:
- Whether or not the artifact is tagged as the "latest" version of the artifact.
-
getData
Deprecated.UsegetArtifactData()
instead.Returns the artifact's data.This operation may read the artifact's data from a file. If an I/O error occurs a StreamBaseRuntimeException is thrown.
- Returns:
- Artifact's data
- Throws:
StreamBaseRuntimeException
- if a file I/O error occurs
-
getMetadata
- Returns:
- Artifact metadata, or empty string if no artifact metadata exists for this artifact
-
getEncoding
- Returns:
- Artifact encoding, or empty string if no encoding was set for this artifact
-
getInputStream
- Returns:
- Artifact input stream
-
getArtifactData
Access the resource represented by this Artifact object and return its contents.- Returns:
- the contents of the resource
- Throws:
ArtifactException
- an error occurred accessing the underlying resource's contents
-
artifactToString
Creates a string containing artifact type, name, version, latest and encoding information.- Returns:
- a string representation of the artifact including its type, name, version and encoding
-
getArtifactData()
instead.