public class MapDBPropertyStorage<T> extends InMemoryPropertyStorage
propertyNames, propertyStorage| Constructor and Description |
|---|
MapDBPropertyStorage(File directoryPath) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanStorage()
Delete all the information from the Storage
|
void |
close()
Close the storage Map
|
String |
get(String key)
Get a value for a key in the Map
|
String |
get(String itemId,
String propertyName)
Get the Value for an specific combination of itemId and propertyName
|
Set<String> |
getAvailableProperties()
Properties available in the Map
|
protected String |
getCombinedKey(String itemId,
String propertyName)
Get a combined key from an ItemId and Property Name
|
void |
put(String key,
Object value)
Put a key, value in the storage
|
void |
put(String itemId,
String propertyName,
String propertyValue)
This function store a particular property from the store system, in this case
the key is the combination of the itemId and the propertyName
|
long |
storageSize()
Get the Size of the Storage
|
cleanFilePersistence, flushpublic MapDBPropertyStorage(File directoryPath)
public void put(String itemId, String propertyName, String propertyValue)
InMemoryPropertyStorageput in interface IPropertyStorageput in class InMemoryPropertyStorageitemId - Item identifierpropertyName - property NamepropertyValue - property Valuepublic String get(String itemId, String propertyName)
InMemoryPropertyStorageget in interface IPropertyStorageget in class InMemoryPropertyStorageitemId - Item identifierpropertyName - Property Namepublic void put(String key, Object value)
InMemoryPropertyStorageput in interface IMapStorageput in class InMemoryPropertyStoragekey - String keyvalue - value for the keypublic String get(String key)
InMemoryPropertyStorageget in interface IMapStorageget in class InMemoryPropertyStoragekey - key to be retrirveprotected String getCombinedKey(String itemId, String propertyName)
InMemoryPropertyStoragegetCombinedKey in class InMemoryPropertyStorageitemId - Item identifierpropertyName - Property identifierpublic Set<String> getAvailableProperties()
InMemoryPropertyStoragegetAvailableProperties in class InMemoryPropertyStoragepublic long storageSize()
InMemoryPropertyStoragestorageSize in interface IMapStoragestorageSize in class InMemoryPropertyStoragepublic void close()
throws PgatkIOException
InMemoryPropertyStorageclose in interface IMapStorageclose in class InMemoryPropertyStoragePgatkIOExceptionpublic void cleanStorage()
IMapStoragecleanStorage in interface IMapStoragecleanStorage in class InMemoryPropertyStorageCopyright © 2021. All rights reserved.