diff options
Diffstat (limited to 'storage/src/vespa/storageapi/messageapi/bucketinfocommand.h')
-rw-r--r-- | storage/src/vespa/storageapi/messageapi/bucketinfocommand.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/storage/src/vespa/storageapi/messageapi/bucketinfocommand.h b/storage/src/vespa/storageapi/messageapi/bucketinfocommand.h new file mode 100644 index 00000000000..0f6627328a9 --- /dev/null +++ b/storage/src/vespa/storageapi/messageapi/bucketinfocommand.h @@ -0,0 +1,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) + : BucketCommand(type, bucket) {} + +public: + DECLARE_POINTER_TYPEDEFS(BucketInfoCommand); + void print(std::ostream& out, bool verbose, const std::string& indent) const override; +}; + +} + |