Class FileSystemPackagesStorage

  • All Implemented Interfaces:
    org.apache.pulsar.packages.management.core.PackagesStorage

    public class FileSystemPackagesStorage
    extends java.lang.Object
    implements org.apache.pulsar.packages.management.core.PackagesStorage
    Packages management storage implementation with filesystem.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.concurrent.CompletableFuture<java.lang.Void> closeAsync()  
      java.lang.String dataPath()  
      java.util.concurrent.CompletableFuture<java.lang.Void> deleteAsync​(java.lang.String path)  
      java.util.concurrent.CompletableFuture<java.lang.Boolean> existAsync​(java.lang.String path)  
      void initialize()  
      java.util.concurrent.CompletableFuture<java.util.List<java.lang.String>> listAsync​(java.lang.String path)  
      java.util.concurrent.CompletableFuture<java.lang.Void> readAsync​(java.lang.String path, java.io.OutputStream outputStream)  
      java.util.concurrent.CompletableFuture<java.lang.Void> writeAsync​(java.lang.String path, java.io.InputStream inputStream)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • initialize

        public void initialize()
        Specified by:
        initialize in interface org.apache.pulsar.packages.management.core.PackagesStorage
      • writeAsync

        public java.util.concurrent.CompletableFuture<java.lang.Void> writeAsync​(java.lang.String path,
                                                                                 java.io.InputStream inputStream)
        Specified by:
        writeAsync in interface org.apache.pulsar.packages.management.core.PackagesStorage
      • readAsync

        public java.util.concurrent.CompletableFuture<java.lang.Void> readAsync​(java.lang.String path,
                                                                                java.io.OutputStream outputStream)
        Specified by:
        readAsync in interface org.apache.pulsar.packages.management.core.PackagesStorage
      • deleteAsync

        public java.util.concurrent.CompletableFuture<java.lang.Void> deleteAsync​(java.lang.String path)
        Specified by:
        deleteAsync in interface org.apache.pulsar.packages.management.core.PackagesStorage
      • listAsync

        public java.util.concurrent.CompletableFuture<java.util.List<java.lang.String>> listAsync​(java.lang.String path)
        Specified by:
        listAsync in interface org.apache.pulsar.packages.management.core.PackagesStorage
      • existAsync

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> existAsync​(java.lang.String path)
        Specified by:
        existAsync in interface org.apache.pulsar.packages.management.core.PackagesStorage
      • closeAsync

        public java.util.concurrent.CompletableFuture<java.lang.Void> closeAsync()
        Specified by:
        closeAsync in interface org.apache.pulsar.packages.management.core.PackagesStorage
      • dataPath

        public java.lang.String dataPath()
        Specified by:
        dataPath in interface org.apache.pulsar.packages.management.core.PackagesStorage