Class NarProperties

java.lang.Object
org.apache.nifi.nar.NarProperties

public class NarProperties extends Object
Properties about a NAR that are persisted by the NarPersistenceProvider.
  • Field Details

    • sourceType

      private final String sourceType
    • sourceId

      private final String sourceId
    • narGroup

      private final String narGroup
    • narId

      private final String narId
    • narVersion

      private final String narVersion
    • narDependencyGroup

      private final String narDependencyGroup
    • narDependencyId

      private final String narDependencyId
    • narDependencyVersion

      private final String narDependencyVersion
    • installed

      private final Instant installed
  • Constructor Details

  • Method Details

    • getSourceType

      public String getSourceType()
    • getSourceId

      public String getSourceId()
    • getNarGroup

      public String getNarGroup()
    • getNarId

      public String getNarId()
    • getNarVersion

      public String getNarVersion()
    • getNarDependencyGroup

      public String getNarDependencyGroup()
    • getNarDependencyId

      public String getNarDependencyId()
    • getNarDependencyVersion

      public String getNarDependencyVersion()
    • getInstalled

      public Instant getInstalled()
    • getCoordinate

      public BundleCoordinate getCoordinate()
    • getDependencyCoordinate

      public Optional<BundleCoordinate> getDependencyCoordinate()
    • toProperties

      public Properties toProperties()
      Returns:
      a Properties instance containing the key/value pairs of the NarProperties
    • parse

      public static NarProperties parse(InputStream inputStream) throws IOException
      Reads an InputStream containing the Properties representation of the NAR Properties and returns the NarProperties instance.
      Parameters:
      inputStream - the input stream
      Returns:
      the NAR properties instance
      Throws:
      IOException - if unable to read the input stream
    • builder

      public static NarProperties.Builder builder()