aboutsummaryrefslogtreecommitdiffstats
path: root/storage/src/vespa/storage/storageserver/rpc/encoded_cluster_state_bundle.h
blob: 54419bb60ccc40651173833cd8ce70b3a1bfa448 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright Yahoo. 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;
};

}