Package io.kestra.storage.local
Class LocalStorage
- java.lang.Object
-
- io.kestra.storage.local.LocalStorage
-
- All Implemented Interfaces:
io.kestra.core.storages.StorageInterface
@Singleton @LocalStorageEnabled public class LocalStorage extends java.lang.Object implements io.kestra.core.storages.StorageInterface
-
-
Constructor Summary
Constructors Constructor Description LocalStorage(LocalConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandelete(java.net.URI uri)java.io.InputStreamget(java.net.URI uri)java.net.URIput(java.net.URI uri, java.io.InputStream data)java.lang.Longsize(java.net.URI 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:
getin interfaceio.kestra.core.storages.StorageInterface- Throws:
java.io.FileNotFoundException
-
size
public java.lang.Long size(java.net.URI uri) throws java.io.IOException- Specified by:
sizein interfaceio.kestra.core.storages.StorageInterface- Throws:
java.io.IOException
-
put
public java.net.URI put(java.net.URI uri, java.io.InputStream data) throws java.io.IOException- Specified by:
putin interfaceio.kestra.core.storages.StorageInterface- Throws:
java.io.IOException
-
delete
public boolean delete(java.net.URI uri) throws java.io.IOException- Specified by:
deletein interfaceio.kestra.core.storages.StorageInterface- Throws:
java.io.IOException
-
-