blob: 625422baafb3a753ce9b5804c0525545703b6f14 (
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
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vespa/storage/distributor/operations/operation.h>
namespace storage::distributor {
class MaintenanceOperation : public Operation
{
public:
enum Type {
DELETE_BUCKET,
MERGE_BUCKET,
SPLIT_BUCKET,
JOIN_BUCKET,
SET_BUCKET_STATE,
GARBAGE_COLLECTION,
OPERATION_COUNT
};
using SP = std::shared_ptr<MaintenanceOperation>;
virtual const std::string& getDetailedReason() const = 0;
};
} // storage::distributor
|