|
lintel 0.2.0
|
#include <PropertyRepository.h>
Public Member Functions | |
| PropertyRepository (PropertyRepositoryType type, const std::shared_ptr< Configuration > &configuration) | |
| virtual | ~PropertyRepository ()=default |
| PropertyRepositoryType | getType () const |
| bool | isShadow () const |
| bool | isEnabled () const |
| virtual DataStorage | getDataStorage ()=0 |
| bool | isMutable () const |
| virtual void | save (const std::vector< std::shared_ptr< PropertyBase > > &properties)=0 |
| virtual void | save (std::shared_ptr< PropertyBase > property)=0 |
| virtual void | deleteOf (const std::vector< std::shared_ptr< PropertyBase > > &properties) |
| virtual std::vector< std::shared_ptr< PropertyBase > > | awake ()=0 |
| virtual std::vector< std::shared_ptr< PropertyBase > > | allOf (const std::string &processName=".*", const std::string &className=".*", const std::string &instanceName=".*", const std::string &name=".*") |
Abstract base class for property repositories
|
inline |
| type | repository type |
| configuration | configuration source |
|
virtualdefault |
|
inlinevirtual |
Query properties with optional filters
Returns an empty vector by default: an implementation without query support reports "no overrides", which PropertyService reads as "keep the configured default". The default is only reached for FilePropertyRepository, whose values come from the XML configuration and are never queried at runtime.
| processName | regex for process name |
| className | regex for class name |
| instanceName | regex for instance name |
| name | regex for property name |
Reimplemented in lintel::SharedMemoryPropertyRepository, and lintel::DatabasePropertyRepository.
|
pure virtual |
load all properties from repository and return result
Implemented in lintel::DatabasePropertyRepository, lintel::FilePropertyRepository, and lintel::SharedMemoryPropertyRepository.
|
inlinevirtual |
deletes properties in the mentioned repository
No-op by default: a read-only repository has nothing to delete from. PropertyService only reaches this method behind an isMutable() check, so the default is unreachable for FilePropertyRepository, which PropertyRepositoryComponent::parse rejects with a ConfigurationException when mutable="true" is configured.
Reimplemented in lintel::DatabasePropertyRepository, and lintel::SharedMemoryPropertyRepository.
|
pure virtual |
Implemented in lintel::DatabasePropertyRepository, lintel::FilePropertyRepository, and lintel::SharedMemoryPropertyRepository.
|
inline |
returns priority of repository
|
inline |
|
inline |
returns if save operations are supported or not
|
inline |
|
pure virtual |
save properties to repository
Implemented in lintel::DatabasePropertyRepository, lintel::SharedMemoryPropertyRepository, and lintel::FilePropertyRepository.
|
pure virtual |
save property to repository
Implemented in lintel::DatabasePropertyRepository, lintel::FilePropertyRepository, and lintel::SharedMemoryPropertyRepository.