FileStorage
The FileStorage interface is responsible for managing auxiliary files like thumbnails or files referenced by the AAS model.
In-Memory
The In-Memory FileStorage keeps all files stored in memory. This means, that once FA³ST Service is stopped or crashes, all changes made during runtime are lost.
Configuration
In-Memory FileStorage does not support any configuration parameters.
Example
1{
2 "fileStorage":
3 {
4 "@class": "org.eclipse.digitaltwin.fa3st.service.filestorage.memory.FileStorageInMemory"
5 },
6 //...
7}
FileSystem
The FileSystem-based FileStorage keeps all files stored in the file system of the local machine. Any change request, such as changing a file, results in a change in the file system. Thus, changes are stored permanently.
Configuration
Name |
Allowed Value |
Description |
Default Value |
|---|---|---|---|
existingDataPath |
String |
A path/directory containing data that should be available on start-up. |
|
path |
String |
The path/directory to use for storing the files. |
. |
Example
1{
2 "fileStorage":
3 {
4 "@class": "org.eclipse.digitaltwin.fa3st.service.filestorage.filesystem.FileStorageFilesystem",
5 "path": "./my/file/cache",
6 "existingDataPath": "./my/initial/data"
7 },
8 //...
9}