aboutsummaryrefslogtreecommitdiffstats
path: root/storage/src/vespa/storage/distributor/maintenance/maintenanceoperation.h
blob: 585e85a6f1372c5e6bd4919119292e542c12e977 (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 Vespa.ai. 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