Package dev.galasa.framework.spi.ras
Class ResultArchiveStoreFileSystem
java.lang.Object
java.nio.file.FileSystem
dev.galasa.framework.spi.ras.ResultArchiveStoreFileSystem
- All Implemented Interfaces:
Closeable,AutoCloseable
Create a Result Archive Store specific File System
-
Constructor Summary
ConstructorsConstructorDescriptionResultArchiveStoreFileSystem(ResultArchiveStoreFileSystemProvider fileSystemProvider) Create a RAS File System -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static StringcreateRegexFromGlob(String glob) Convert a glob into a regexgetPathMatcher(String syntaxAndInput) booleanisOpen()booleanprotected ResultArchiveStorePathnewPathObject(String path) provider()voidsetReadOnly(boolean readOnly)
-
Constructor Details
-
ResultArchiveStoreFileSystem
Create a RAS File System- Parameters:
fileSystemProvider- - The provider to use with it, local or etcd3 etc
-
-
Method Details
-
provider
- Specified by:
providerin classFileSystem
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classFileSystem- Throws:
IOException
-
isOpen
public boolean isOpen()- Specified by:
isOpenin classFileSystem
-
isReadOnly
public boolean isReadOnly()- Specified by:
isReadOnlyin classFileSystem
-
getSeparator
- Specified by:
getSeparatorin classFileSystem
-
getRootDirectories
- Specified by:
getRootDirectoriesin classFileSystem
-
getFileStores
- Specified by:
getFileStoresin classFileSystem
-
supportedFileAttributeViews
- Specified by:
supportedFileAttributeViewsin classFileSystem
-
getPath
- Specified by:
getPathin classFileSystem
-
newPathObject
-
getPathMatcher
- Specified by:
getPathMatcherin classFileSystem
-
getUserPrincipalLookupService
- Specified by:
getUserPrincipalLookupServicein classFileSystem
-
newWatchService
- Specified by:
newWatchServicein classFileSystem- Throws:
IOException
-
setReadOnly
public void setReadOnly(boolean readOnly) -
createRegexFromGlob
Convert a glob into a regex- Parameters:
glob- - the glob to convert- Returns:
- - the resulting regex
-