![]() |
Kea
1.5.0
|
This class represents configuration element which is associated with the modification timestamp. More...
#include <stamped_element.h>
Inheritance diagram for isc::data::StampedElement:Public Member Functions | |
| StampedElement () | |
| Constructor. More... | |
| boost::posix_time::ptime | getModificationTime () const |
| Returns timestamp. More... | |
| void | setModificationTime (const boost::posix_time::ptime ×tamp) |
| Sets timestamp to the explicitly provided value. More... | |
| void | updateModificationTime () |
| Sets timestmp to the current time. More... | |
This class represents configuration element which is associated with the modification timestamp.
Classes storing Kea configuration should derive from this object to track modification times of the configuration objects. This is specifically required by the Kea Configuration Backend feature which stores configuration in the database and must be able to recognize recently modified objects to fetch incremental changes.
Element and should not be confused with the classes being derived from Element class. Those classes are used to represent JSON structures, whereas this class represents data fetched from the database.StamepedElement. Definition at line 31 of file stamped_element.h.
| isc::data::StampedElement::StampedElement | ( | ) |
|
inline |
Returns timestamp.
Definition at line 50 of file stamped_element.h.
|
inline |
Sets timestamp to the explicitly provided value.
| timestamp | New timestamp value. |
Definition at line 42 of file stamped_element.h.
Referenced by updateModificationTime().
| void isc::data::StampedElement::updateModificationTime | ( | ) |
Sets timestmp to the current time.
Definition at line 17 of file stamped_element.cc.
References setModificationTime().
Here is the call graph for this function: