blob: 0675e63909692e5d9392c7f4474a268d2bb2e746 (
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
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
/**
* @class storage::api::BucketInfoCommand
* @ingroup messageapi
*
* @brief Superclass for storage commands that returns bucket info.
*
* This class doesn't add any functionality now, other than being able to check
* if a message is an instance of this class. But we want commands and replies
* to be in the same inheritance structure, and the reply adds functionality.
*/
#pragma once
#include "bucketcommand.h"
namespace storage::api {
class BucketInfoCommand : public BucketCommand {
protected:
BucketInfoCommand(const MessageType& type, const document::Bucket &bucket) noexcept
: BucketCommand(type, bucket) {}
public:
DECLARE_POINTER_TYPEDEFS(BucketInfoCommand);
void print(std::ostream& out, bool verbose, const std::string& indent) const override;
};
}
|