mirror of https://github.com/micromata/borgbackup-butler.git

Kai Reinhard
15.39.2021 d80a4b3ab35af575fd06d4e2fb9a3726418c6727
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package de.micromata.borgbutler.server.rest;
 
import de.micromata.borgbutler.BorgQueueStatistics;
import de.micromata.borgbutler.server.BorgVersion;
 
/**
 * Statistics of all the job queues, especially the number of total queued and running jobs.
 * This is used e. g. by the client for showing a badge near to the menu entry "job monitor" with the number
 * of Jobs in the queues.
 */
public class SystemInfo {
    private BorgQueueStatistics queueStatistics;
 
    private boolean configurationOK;
 
    private BorgVersion borgVersion;
 
    public BorgQueueStatistics getQueueStatistics() {
        return this.queueStatistics;
    }
 
    public boolean isConfigurationOK() {
        return this.configurationOK;
    }
 
    public BorgVersion getBorgVersion() {
        return this.borgVersion;
    }
 
    public SystemInfo setQueueStatistics(BorgQueueStatistics queueStatistics) {
        this.queueStatistics = queueStatistics;
        return this;
    }
 
    public SystemInfo setConfigurationOK(boolean configurationOK) {
        this.configurationOK = configurationOK;
        return this;
    }
 
    public SystemInfo setBorgVersion(BorgVersion borgVersion) {
        this.borgVersion = borgVersion;
        return this;
    }
}