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
-
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.UsegetInputStream()
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
-
getInputStream()
instead.