Class Artifact

java.lang.Object
com.tibco.ep.sb.ads.Artifact

public class Artifact extends Object
An artifact loaded in the cluster.

An Artifact instance is uniquely identified by its type, name, and version.

Since:
10.2
  • Method Details

    • getType

      public String getType()
      Returns:
      Artifact's type
    • getName

      public String getName()
      Returns:
      Artifact's name
    • getVersion

      public String 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

      public String getData()
      Deprecated.
      Use getInputStream() 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

      public String getMetadata()
      Returns:
      Artifact metadata, or empty string if no artifact metadata exists for this artifact
    • getEncoding

      public String getEncoding()
      Returns:
      Artifact encoding, or empty string if no encoding was set for this artifact
    • getInputStream

      public InputStream getInputStream()
      Returns:
      Artifact input stream