blob: f1c35b147c228a437ec6edeb0da9870c9d6dc777 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "internal.h"
#include <ostream>
namespace storage::api {
InternalCommand::InternalCommand(uint32_t type)
: StorageCommand(MessageType::INTERNAL),
_type(type)
{ }
InternalCommand::~InternalCommand() = default;
InternalReply::InternalReply(uint32_t type, const InternalCommand& cmd)
: StorageReply(cmd),
_type(type)
{ }
InternalReply::~InternalReply() = default;
void
InternalCommand::print(std::ostream& out, bool verbose, const std::string& indent) const
{
out << "InternalCommand(" << _type << ")";
if (verbose) {
out << " : ";
StorageCommand::print(out, verbose, indent);
}
}
void
InternalReply::print(std::ostream& out, bool verbose, const std::string& indent) const
{
out << "InternalReply(" << _type << ")";
if (verbose) {
out << " : ";
StorageReply::print(out, verbose, indent);
}
}
}
|