blob: c9c3cb5395653721e783641536cb5ae5e8668a02 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vector>
#include <vespa/storage/distributor/maintenance/prioritizedbucket.h>
#include <vespa/storage/distributor/maintenance/maintenancepriorityandtype.h>
#include <vespa/storage/distributor/maintenance/node_maintenance_stats_tracker.h>
namespace storage::distributor {
class MaintenancePriorityGenerator
{
public:
virtual ~MaintenancePriorityGenerator() = default;
virtual MaintenancePriorityAndType prioritize(
const document::Bucket &bucket,
NodeMaintenanceStatsTracker &statsTarcker) const = 0;
};
}
|