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
46
47
48
49
50
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "statusmessages.h"
#include <ostream>
namespace storage {
RequestStatusPage::RequestStatusPage(const framework::HttpUrlPath& path)
: api::InternalCommand(ID),
_path(path),
_sortToken()
{ }
RequestStatusPage::~RequestStatusPage() { }
void
RequestStatusPage::print(std::ostream& out, bool verbose, const std::string& indent) const {
out << "RequestStatusPage()";
if (verbose) {
out << " : ";
InternalCommand::print(out, true, indent);
}
}
RequestStatusPageReply::RequestStatusPageReply(const RequestStatusPage& cmd, const std::string& status)
: api::InternalReply(ID, cmd),
_status(status),
_sortToken(cmd.getSortToken())
{ }
RequestStatusPageReply::~RequestStatusPageReply() { }
void
RequestStatusPageReply::print(std::ostream& out, bool verbose, const std::string& indent) const {
out << "RequestStatusPageReply()";
if (verbose) {
out << " : ";
InternalReply::print(out, true, indent);
}
}
std::unique_ptr<api::StorageReply>
RequestStatusPage::makeReply()
{
return std::make_unique<RequestStatusPageReply>(*this, "");
}
}
|