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 "@class" : "de.fraunhofer.iosb.ilt.faaast.service.filestorage.memory.FileStorageInMemory"
4 },
5 //...
6}
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 "@class" : "de.fraunhofer.iosb.ilt.faaast.service.filestorage.filesystem.FileStorageFilesystem",
4 "path": "./my/file/cache",
5 "existingDataPath": "./my/initial/data"
6 },
7 //...
8}