aboutsummaryrefslogtreecommitdiffstats
path: root/documentapi/src/vespa/documentapi/messagebus/messages/statbucketmessage.cpp
blob: 9c59a13c29fdaf9d7674798538bc32c314b195f9 (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
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "statbucketmessage.h"
#include "statbucketreply.h"
#include <vespa/document/bucket/fixed_bucket_spaces.h>
#include <vespa/documentapi/messagebus/documentprotocol.h>

using document::FixedBucketSpaces;

namespace documentapi {

StatBucketMessage::StatBucketMessage() :
    DocumentMessage(),
    _bucketId(document::BucketId()),
    _documentSelection(),
    _bucketSpace(FixedBucketSpaces::default_space_name())
{}

StatBucketMessage::StatBucketMessage(document::BucketId bucketId, const string& documentSelection) :
    DocumentMessage(),
    _bucketId(bucketId),
    _documentSelection(documentSelection),
    _bucketSpace(FixedBucketSpaces::default_space_name())
{}

StatBucketMessage::~StatBucketMessage() {
}

DocumentReply::UP
StatBucketMessage::doCreateReply() const
{
    return DocumentReply::UP(new StatBucketReply());
}

uint32_t
StatBucketMessage::getType() const
{
    return DocumentProtocol::MESSAGE_STATBUCKET;
}

}