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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
checkIfStreamExists
(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.void
void
byte[]
Reading is done in the following sequence:
1.)void
removeStream
(String path, boolean withError) Removing is done from the stream store directory.void
void
Writing 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:
getContainedStreams
in interfaceIStreamStore
-
getRootDirectory
Root directory which is used by the stream store. -
getContainedFolders
- Specified by:
getContainedFolders
in interfaceIStreamStore
-
readUTF8
Reading is done in the following sequence:
1.) From stream store file system
2.) From eclntjsfserver/config directory- Specified by:
readUTF8
in interfaceIStreamStore
-
writeUTF8
Writing is done into the stream store directory.- Specified by:
writeUTF8
in interfaceIStreamStore
-
readData
- Specified by:
readData
in interfaceIStreamStoreWithBinary
-
writeData
- Specified by:
writeData
in interfaceIStreamStoreWithBinary
-
removeStream
Removing is done from the stream store directory.- Specified by:
removeStream
in interfaceIStreamStore
-
checkIfStreamExists
- Specified by:
checkIfStreamExists
in interfaceIStreamStore
-