public class IgniteModelStorageProvider extends Object implements ModelStorageProvider
ModelStorageProvider
based on Apache Ignite cache.Constructor and Description |
---|
IgniteModelStorageProvider(IgniteCache<String,FileOrDirectory> cache)
Constructs a new instance of Ignite model storage provider.
|
Modifier and Type | Method and Description |
---|---|
FileOrDirectory |
get(String path)
Returns file or directory associated with the specified path.
|
Lock |
lock(String path)
Locks the specified path.
|
void |
put(String path,
FileOrDirectory file)
Saves file or directory associated with the specified path.
|
void |
remove(String path)
Removes file or directory associated with the specified path.
|
public IgniteModelStorageProvider(IgniteCache<String,FileOrDirectory> cache)
cache
- Storage of the files and directories.public FileOrDirectory get(String path)
get
in interface ModelStorageProvider
path
- Path of file or directory.public void put(String path, FileOrDirectory file)
put
in interface ModelStorageProvider
path
- Path to the file or directory.file
- File or directory to be saved.public void remove(String path)
remove
in interface ModelStorageProvider
path
- Path to the file or directory.public Lock lock(String path)
lock
in interface ModelStorageProvider
path
- Path to be locked.
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024