blob: 2dea4416e19f50770813bca0c947a2bed3f86fd5 (
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
46
47
48
49
50
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "documentmessage.h"
#include <vespa/document/bucket/bucketid.h>
namespace documentapi {
class GetBucketStateMessage : public DocumentMessage {
private:
document::BucketId _bucket;
protected:
// Implements DocumentMessage.
DocumentReply::UP doCreateReply() const override;
public:
/**
* Constructs a new message for deserialization.
*/
GetBucketStateMessage();
/**
* Constructs a new message with initial content.
*
* @param bucket The bucket whose state to retrieve.
*/
GetBucketStateMessage(const document::BucketId &bucket);
/**
* Returns the bucket whose state to retrieve.
*
* @return The bucket id.
*/
document::BucketId getBucketId() const { return _bucket; }
/**
* Sets the bucket whose state to retrieve.
*
* @param bucket The bucket id to set.
*/
void setBucketId(document::BucketId bucket) { _bucket = bucket; }
bool hasSequenceId() const override;
uint64_t getSequenceId() const override;
uint32_t getType() const override;
string toString() const override { return "getbucketstatemessage"; }
};
}
|