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
ConstructorDescriptionResultArchiveStoreFileSystem
(ResultArchiveStoreFileSystemProvider fileSystemProvider) Create a RAS File System -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
static String
createRegexFromGlob
(String glob) Convert a glob into a regexgetPathMatcher
(String syntaxAndInput) boolean
isOpen()
boolean
protected ResultArchiveStorePath
newPathObject
(String path) provider()
void
setReadOnly
(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:
provider
in classFileSystem
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classFileSystem
- Throws:
IOException
-
isOpen
public boolean isOpen()- Specified by:
isOpen
in classFileSystem
-
isReadOnly
public boolean isReadOnly()- Specified by:
isReadOnly
in classFileSystem
-
getSeparator
- Specified by:
getSeparator
in classFileSystem
-
getRootDirectories
- Specified by:
getRootDirectories
in classFileSystem
-
getFileStores
- Specified by:
getFileStores
in classFileSystem
-
supportedFileAttributeViews
- Specified by:
supportedFileAttributeViews
in classFileSystem
-
getPath
- Specified by:
getPath
in classFileSystem
-
newPathObject
-
getPathMatcher
- Specified by:
getPathMatcher
in classFileSystem
-
getUserPrincipalLookupService
- Specified by:
getUserPrincipalLookupService
in classFileSystem
-
newWatchService
- Specified by:
newWatchService
in 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
-