aboutsummaryrefslogtreecommitdiffstats
path: root/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/maintenance/disk/DiskCleanupRule.java
blob: 3b11f68910c13ef555da6f19e4b501cdddf5f70e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright Yahoo. 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) { }
}