Class DefaultArtifact

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

public class DefaultArtifact extends Object
Container for the metadata used to register a default artifact.

A default artifact is an artifact packaged with the EventFlow fragment that an operator loads at startup. Default artifacts are optional and can be used instead of, or together with, an artifact from an external artifact server. If an operator uses both a default artifact and an external artifact then the default artifact is loaded first and then is replaced by the external artifact when the external artifact is loaded. If, at a later time, the external artifact is deactivated then the default artifact is automatically reloaded in the operator.

Default artifacts are configured in the ArtifactDescriptor instance specified when the operator registers for an artifact.

Default artifacts are private to the operator and cannot be managed using the activate artifact, deactivate artifact, register artifact, and remove artifact administration commands.

  • Constructor Details

    • DefaultArtifact

      public DefaultArtifact(String defaultFile)
      Parameters:
      defaultFile - Resource path of file containing the default artifact.
    • DefaultArtifact

      public DefaultArtifact(String defaultFile, Optional<String> version, Optional<String> encoding, Optional<String> metadataFile)
      Parameters:
      defaultFile - Resource path of the file containing the default artifact.
      version - Version of the default artifact.
      encoding - Encoding of the default artifact.
      metadataFile - Resource path of file containing the default artifact's metadata.
  • Method Details

    • getDefaultFile

      public String getDefaultFile()
      Returns:
      Resource path of the file containing the default artifact.
    • getVersion

      public Optional<String> getVersion()
      Returns:
      Version of the default artifact, if one was specified.
    • getEncoding

      public Optional<String> getEncoding()
      Returns:
      Encoding of the default artifact, if one was specified.
    • getMetadataFile

      public Optional<String> getMetadataFile()
      Returns:
      Resource path of the file containing the default artifact's metadata, if one was specified