blob: 88b89f1f201d2a2aed54124e5bbb42362a1ffee1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.node.admin.maintenance.disk;
import com.yahoo.vespa.hosted.node.admin.task.util.file.FileFinder;
import java.util.Collection;
/**
* @author freva
*/
public interface DiskCleanupRule {
Collection<PrioritizedFileAttributes> prioritize();
enum Priority {
LOWEST, LOW, MEDIUM, HIGH, HIGHEST
}
record PrioritizedFileAttributes(FileFinder.FileAttributes fileAttributes, Priority priority) { }
}
|