public class LocalModelStorageProvider extends Object implements ModelStorageProvider
ModelStorageProvider
based on local ConcurrentHashMap
.Constructor and Description |
---|
LocalModelStorageProvider() |
Modifier and Type | Method and Description |
---|---|
FileOrDirectory |
get(String key)
Returns file or directory associated with the specified path.
|
Lock |
lock(String key)
Locks the specified path.
|
void |
put(String key,
FileOrDirectory file)
Saves file or directory associated with the specified path.
|
void |
remove(String key)
Removes file or directory associated with the specified path.
|
public FileOrDirectory get(String key)
get
in interface ModelStorageProvider
key
- Path of file or directory.public void put(String key, FileOrDirectory file)
put
in interface ModelStorageProvider
key
- Path to the file or directory.file
- File or directory to be saved.public void remove(String key)
remove
in interface ModelStorageProvider
key
- Path to the file or directory.public Lock lock(String key)
lock
in interface ModelStorageProvider
key
- Path to be locked.
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024