public interface StorageManager
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(StorageManagerListener listener)
Receive notification of changes
|
org.rundeck.storage.api.Resource<ResourceMeta> |
createFileResource(java.lang.String path,
java.io.InputStream input,
java.util.Map<java.lang.String,java.lang.String> meta)
Create new resource, fails if it exists
|
boolean |
deleteAllFileResources(java.lang.String root)
Recursively delete all files from the root path
|
boolean |
deleteFileResource(java.lang.String path)
delete a resource
|
boolean |
existsDirResource(java.lang.String path) |
boolean |
existsFileResource(java.lang.String path) |
org.rundeck.storage.api.Resource<ResourceMeta> |
getFileResource(java.lang.String path)
Return config file contents
|
java.util.List<java.lang.String> |
listDirPaths(java.lang.String path)
List the full paths of all resources in the directory at the given path
|
java.util.List<java.lang.String> |
listDirPaths(java.lang.String path,
java.lang.String pattern)
List the full paths of all resources in the directory at the given path
|
long |
loadFileResource(java.lang.String path,
java.io.OutputStream output)
Read the contents of a file at the path into the outputstream
|
void |
removeListener(StorageManagerListener listener)
Remove a listener
|
org.rundeck.storage.api.Resource<ResourceMeta> |
updateFileResource(java.lang.String path,
java.io.InputStream input,
java.util.Map<java.lang.String,java.lang.String> meta)
Update contents of an existing file
|
org.rundeck.storage.api.Resource<ResourceMeta> |
writeFileResource(java.lang.String path,
java.io.InputStream input,
java.util.Map<java.lang.String,java.lang.String> meta)
Write to a resource, create if it does not exist
|
void addListener(StorageManagerListener listener)
listener - void removeListener(StorageManagerListener listener)
listener - boolean existsFileResource(java.lang.String path)
path - boolean existsDirResource(java.lang.String path)
path - java.util.List<java.lang.String> listDirPaths(java.lang.String path,
java.lang.String pattern)
path - path directory pathpattern - pattern matchjava.util.List<java.lang.String> listDirPaths(java.lang.String path)
path - path directory pathorg.rundeck.storage.api.Resource<ResourceMeta> getFileResource(java.lang.String path)
path - long loadFileResource(java.lang.String path,
java.io.OutputStream output)
throws java.io.IOException
path - output - java.io.IOExceptionorg.rundeck.storage.api.Resource<ResourceMeta> updateFileResource(java.lang.String path, java.io.InputStream input, java.util.Map<java.lang.String,java.lang.String> meta)
path - pathinput - datameta - metaorg.rundeck.storage.api.Resource<ResourceMeta> createFileResource(java.lang.String path, java.io.InputStream input, java.util.Map<java.lang.String,java.lang.String> meta)
path - pathinput - streammeta - metadataorg.rundeck.storage.api.Resource<ResourceMeta> writeFileResource(java.lang.String path, java.io.InputStream input, java.util.Map<java.lang.String,java.lang.String> meta)
path - pathinput - streammeta - metadataboolean deleteFileResource(java.lang.String path)
path - pathboolean deleteAllFileResources(java.lang.String root)
root - root path