Package org.eclnt.jsfserver.streamstore
Class StreamStoreFile
java.lang.Object
org.eclnt.jsfserver.streamstore.StreamStoreFile
- All Implemented Interfaces:
IStreamStore,IStreamStoreWithBinary
IStreamStore implementation that persist the stream store
data within the file system.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckIfStreamExists(String path, boolean withError) getContainedFolders(String path, boolean withError) getContainedStreams(String path, boolean withError) Querying is done gains the stream store directory + against the configuration directory of the web application (eclntjsfserver/config).Root directory which is used by the stream store.voidvoidbyte[]Reading is done in the following sequence:
1.)voidremoveStream(String path, boolean withError) Removing is done from the stream store directory.voidvoidWriting is done into the stream store directory.
-
Constructor Details
-
StreamStoreFile
public StreamStoreFile()
-
-
Method Details
-
init
- Parameters:
rootDirectoryWS- Directory (wiht ending slash) that is the base for all file operations.
-
init
- Parameters:
rootDirectoryWS- Directory (wiht ending slash) that is the base for all file operations.withTenantManagement- Indicator if tenant management should be activated or not. By default tenant management is activated - there should be a really "good reason" not to use it.
-
getContainedStreams
Querying is done gains the stream store directory + against the configuration directory of the web application (eclntjsfserver/config).- Specified by:
getContainedStreamsin interfaceIStreamStore
-
getRootDirectory
Root directory which is used by the stream store. -
getContainedFolders
- Specified by:
getContainedFoldersin interfaceIStreamStore
-
readUTF8
Reading is done in the following sequence:
1.) From stream store file system
2.) From eclntjsfserver/config directory- Specified by:
readUTF8in interfaceIStreamStore
-
writeUTF8
Writing is done into the stream store directory.- Specified by:
writeUTF8in interfaceIStreamStore
-
readData
- Specified by:
readDatain interfaceIStreamStoreWithBinary
-
writeData
- Specified by:
writeDatain interfaceIStreamStoreWithBinary
-
removeStream
Removing is done from the stream store directory.- Specified by:
removeStreamin interfaceIStreamStore
-
checkIfStreamExists
- Specified by:
checkIfStreamExistsin interfaceIStreamStore
-