aboutsummaryrefslogtreecommitdiffstats
path: root/storage/src/vespa/storage/storageserver/rpc/encoded_cluster_state_bundle.h
blob: 2443d8af2a30c13fafddc853bac542e6daff3cea (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include <vespa/vespalib/data/databuffer.h>
#include <vespa/vespalib/util/compressor.h>

namespace storage::rpc {

/**
 * Contains an opaque encoded (possibly compressed) representation of a ClusterStateBundle.
 */
struct EncodedClusterStateBundle {
    vespalib::compression::CompressionConfig::Type _compression_type;
    uint32_t _uncompressed_length;
    std::unique_ptr<vespalib::DataBuffer> _buffer;
};

}