Class Rpm

java.lang.Object
com.artipie.rpm.Rpm

public final class Rpm extends Object
The RPM front. First, you make an instance of this class, providing your storage as an argument:
 Rpm rpm = new Rpm(storage);
Then, you put your binary RPM artifact to the storage and call batchUpdate(Key). This method will parse the all RPM packages in repository and update all the necessary meta-data files. Right after this, your clients will be able to use the package, via yum:
 rpm.batchUpdate(new Key.From("rmp-repo"));
Since:
0.1
  • Constructor Details

    • Rpm

      public Rpm(Storage stg)
      New Rpm for repository in storage. Does not include filelists.xml in update.
      Parameters:
      stg - The storage which contains repository
    • Rpm

      public Rpm(Storage stg, boolean filelists)
      New Rpm for repository in storage.
      Parameters:
      stg - The storage which contains repository
      filelists - Include file lists in update
    • Rpm

      public Rpm(Storage stg, NamingPolicy naming, Digest dgst, boolean filelists)
      Ctor.
      Parameters:
      stg - The storage
      naming - RPM files naming policy
      dgst - Hashing sum computation algorithm
      filelists - Include file lists in update
    • Rpm

      public Rpm(Storage storage, RepoConfig config)
      Ctor.
      Parameters:
      storage - The storage
      config - Repository configuration
  • Method Details

    • update

      @Deprecated public io.reactivex.Completable update(String key)
      Deprecated.
      use update(Key) instead
      Update the meta info for single artifact.
      Parameters:
      key - The name of the file just updated
      Returns:
      Completion or error signal.
    • update

      @Deprecated public io.reactivex.Completable update(Key key)
      Deprecated.
      This method calls batchUpdate(Key) with parent of the key
      Update the meta info for single artifact.
      Parameters:
      key - The name of the file just updated
      Returns:
      Completion or error signal.
    • batchUpdate

      @Deprecated public io.reactivex.Completable batchUpdate(String prefix)
      Deprecated.
      use batchUpdate(Key) instead
      Batch update RPM files for repository.
      Parameters:
      prefix - Repository key prefix (String)
      Returns:
      Completable action
    • batchUpdate

      public io.reactivex.Completable batchUpdate(Key prefix)
      Batch update RPM files for repository.
      Parameters:
      prefix - Repository key prefix
      Returns:
      Completable action
      Throws:
      ArtipieIOException - On IO-operation errors
    • batchUpdateIncrementally

      @Deprecated public io.reactivex.Completable batchUpdateIncrementally(Key prefix)
      Deprecated.
      Batch update RPM files for repository, works exactly as batchUpdate(Key).
      Parameters:
      prefix - Repo prefix
      Returns:
      Completable action
      Throws:
      ArtipieIOException - On IO-operation errors