Add more commands
[jFCPlib.git] / src / main / java / net / pterodactylus / fcp / RequestProgress.java
1 package net.pterodactylus.fcp;
2
3 /**
4  * Progress information about a request.
5  *
6  * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
7  */
8 public class RequestProgress {
9
10         private final int total;
11         private final int required;
12         private final int failed;
13         private final int fatallyFailed;
14         private final long lastProgress;
15         private final int succeeded;
16         private final boolean finalizedTotal;
17         private final int minSuccessFetchBlocks;
18
19         public RequestProgress(int total, int required, int failed, int fatallyFailed, long lastProgress, int succeeded,
20                 boolean finalizedTotal, int minSuccessFetchBlocks) {
21                 this.total = total;
22                 this.required = required;
23                 this.failed = failed;
24                 this.fatallyFailed = fatallyFailed;
25                 this.lastProgress = lastProgress;
26                 this.succeeded = succeeded;
27                 this.finalizedTotal = finalizedTotal;
28                 this.minSuccessFetchBlocks = minSuccessFetchBlocks;
29         }
30
31         public int getTotal() {
32                 return total;
33         }
34
35         public int getRequired() {
36                 return required;
37         }
38
39         public int getFailed() {
40                 return failed;
41         }
42
43         public int getFatallyFailed() {
44                 return fatallyFailed;
45         }
46
47         public long getLastProgress() {
48                 return lastProgress;
49         }
50
51         public int getSucceeded() {
52                 return succeeded;
53         }
54
55         public boolean isFinalizedTotal() {
56                 return finalizedTotal;
57         }
58
59         public int getMinSuccessFetchBlocks() {
60                 return minSuccessFetchBlocks;
61         }
62
63 }