|
Apache Geode Native .NET Reference 1.15.0
|
#include <IPersistenceManager.hpp>
Public Member Functions | |
| void | Close () |
| Closes the persistence manager instance. More... | |
| void | Destroy (TKey key) |
| Destroys the entry specified by the key in the argument. More... | |
| void | Init (IRegion< TKey, TValue >^ region, Properties< String^, String^>^ diskProperties) |
| Called after an implementation object is created. More... | |
| TValue | Read (TKey key) |
| Reads the value for the key from the disk. More... | |
| bool | ReadAll () |
| Reads all the values from the region. More... | |
| void | Write (TKey key, TValue value) |
| Writes a key, value pair of region to the disk. More... | |
| bool | WriteAll () |
| Writes all the entries for a region. More... | |
IPersistenceManager interface for persistence and overflow. This class abstracts the disk-related operations in case of persistence or overflow to disk. A specific disk storage implementation will implement all the methods described here.
| void Apache::Geode::Client::IPersistenceManager< TKey, TValue >::Close | ( | ) |
Closes the persistence manager instance.
| void Apache::Geode::Client::IPersistenceManager< TKey, TValue >::Destroy | ( | TKey | key | ) |
Destroys the entry specified by the key in the argument.
| key | key of the entry which is being destroyed. |
| void Apache::Geode::Client::IPersistenceManager< TKey, TValue >::Init | ( | IRegion< TKey, TValue >^ | region, |
| Properties< String^, String^>^ | diskProperties | ||
| ) |
Called after an implementation object is created.
Initializes all the implementation specific environments needed.
| region | Region for which this PersistenceManager is initialized. |
| diskProperties | Configuration Properties used by PersistenceManager implementation. |
| TValue Apache::Geode::Client::IPersistenceManager< TKey, TValue >::Read | ( | TKey | key | ) |
Reads the value for the key from the disk.
| key | key for which the value has to be read. |
| bool Apache::Geode::Client::IPersistenceManager< TKey, TValue >::ReadAll | ( | ) |
Reads all the values from the region.
| void Apache::Geode::Client::IPersistenceManager< TKey, TValue >::Write | ( | TKey | key, |
| TValue | value | ||
| ) |
Writes a key, value pair of region to the disk.
The actual file or database related write operations should be implemented in this method by the class implementing this method.
| key | the key to write. |
| value | the value to write. |
| bool Apache::Geode::Client::IPersistenceManager< TKey, TValue >::WriteAll | ( | ) |
Writes all the entries for a region.
Refer persistance requirement doc for the use case.