Class LocalStorage

  • All Implemented Interfaces:
    io.kestra.core.storages.StorageInterface

    @Singleton
    @LocalStorageEnabled
    public class LocalStorage
    extends java.lang.Object
    implements io.kestra.core.storages.StorageInterface
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean delete​(java.net.URI uri)  
      java.util.List<java.net.URI> deleteByPrefix​(java.net.URI storagePrefix)  
      java.io.InputStream get​(java.net.URI uri)  
      java.net.URI put​(java.net.URI uri, java.io.InputStream data)  
      java.lang.Long size​(java.net.URI uri)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface io.kestra.core.storages.StorageInterface

        executionPrefix, executionPrefix, extractExecutionId, from, from, outputPrefix, outputPrefix, uri
    • Constructor Detail

      • LocalStorage

        @Inject
        public LocalStorage​(LocalConfig config)
    • Method Detail

      • get

        public java.io.InputStream get​(java.net.URI uri)
                                throws java.io.FileNotFoundException
        Specified by:
        get in interface io.kestra.core.storages.StorageInterface
        Throws:
        java.io.FileNotFoundException
      • size

        public java.lang.Long size​(java.net.URI uri)
                            throws java.io.FileNotFoundException
        Specified by:
        size in interface io.kestra.core.storages.StorageInterface
        Throws:
        java.io.FileNotFoundException
      • put

        public java.net.URI put​(java.net.URI uri,
                                java.io.InputStream data)
                         throws java.io.IOException
        Specified by:
        put in interface io.kestra.core.storages.StorageInterface
        Throws:
        java.io.IOException
      • delete

        public boolean delete​(java.net.URI uri)
                       throws java.io.IOException
        Specified by:
        delete in interface io.kestra.core.storages.StorageInterface
        Throws:
        java.io.IOException
      • deleteByPrefix

        public java.util.List<java.net.URI> deleteByPrefix​(java.net.URI storagePrefix)
                                                    throws java.io.IOException
        Specified by:
        deleteByPrefix in interface io.kestra.core.storages.StorageInterface
        Throws:
        java.io.IOException