5
void LogEntryKey::encode(bufferlist& bl) const
12
void LogEntryKey::decode(bufferlist::iterator& bl)
19
void LogEntryKey::dump(Formatter *f) const
21
f->dump_stream("who") << who;
22
f->dump_stream("stamp") << stamp;
23
f->dump_unsigned("seq", seq);
26
void LogEntryKey::generate_test_instances(list<LogEntryKey*>& o)
28
o.push_back(new LogEntryKey);
29
o.push_back(new LogEntryKey(entity_inst_t(), utime_t(1,2), 34));
34
void LogEntry::encode(bufferlist& bl) const
36
ENCODE_START(2, 2, bl);
46
void LogEntry::decode(bufferlist::iterator& bl)
48
DECODE_START_LEGACY_COMPAT_LEN(2, 2, 2, bl);
59
void LogEntry::dump(Formatter *f) const
61
f->dump_stream("who") << who;
62
f->dump_stream("stamp") << stamp;
63
f->dump_unsigned("seq", seq);
64
f->dump_stream("type") << type;
65
f->dump_string("message", msg);
68
void LogEntry::generate_test_instances(list<LogEntry*>& o)
70
o.push_back(new LogEntry);
76
void LogSummary::encode(bufferlist& bl) const
78
ENCODE_START(2, 2, bl);
79
::encode(version, bl);
84
void LogSummary::decode(bufferlist::iterator& bl)
86
DECODE_START_LEGACY_COMPAT_LEN(2, 2, 2, bl);
87
::decode(version, bl);
92
void LogSummary::dump(Formatter *f) const
94
f->dump_unsigned("version", version);
95
f->open_array_section("tail");
96
for (list<LogEntry>::const_iterator p = tail.begin(); p != tail.end(); ++p) {
97
f->open_object_section("entry");
104
void LogSummary::generate_test_instances(list<LogSummary*>& o)
106
o.push_back(new LogSummary);