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

Kai Reinhard
17.24.2021 1c9178997dd15d65b5f84b4870b3e54caa30ff61
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
package de.micromata.borgbutler;
 
/**
 * 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 BorgQueueStatistics {
    int numberOfRunningAndQueuedJobs = 0;
    int numberOfOldJobs = 0;
    int numberOfActiveQueues = 0;
    int totalNumberOfQueues = 0;
 
    public int getNumberOfRunningAndQueuedJobs() {
        return this.numberOfRunningAndQueuedJobs;
    }
 
    public int getNumberOfOldJobs() {
        return this.numberOfOldJobs;
    }
 
    public int getNumberOfActiveQueues() {
        return this.numberOfActiveQueues;
    }
 
    public int getTotalNumberOfQueues() {
        return this.totalNumberOfQueues;
    }
}