]> git.somenet.org - pub/jan/dst18.git/blob - ass3-event/src/main/java/dst/ass3/event/model/events/UploadDuration.java
Add template for assignment 3
[pub/jan/dst18.git] / ass3-event / src / main / java / dst / ass3 / event / model / events / UploadDuration.java
1 package dst.ass3.event.model.events;
2
3 import java.io.Serializable;
4
5 /**
6  * Indicates the amount of time an IUploadEventInfo took to get from QUEUED to UPLOADED.
7  */
8 public class UploadDuration implements Serializable {
9
10     private static final long serialVersionUID = -6976972381929291369L;
11
12     private long eventId;
13     private String server;
14     private long duration;
15
16     public UploadDuration() {
17     }
18
19     public UploadDuration(long eventId, String server, long duration) {
20         this.eventId = eventId;
21         this.server = server;
22         this.duration = duration;
23     }
24
25     public long getEventId() {
26         return eventId;
27     }
28
29     public void setEventId(long eventId) {
30         this.eventId = eventId;
31     }
32
33     public String getServer() {
34         return server;
35     }
36
37     public void setServer(String server) {
38         this.server = server;
39     }
40
41     public long getDuration() {
42         return duration;
43     }
44
45     public void setDuration(long duration) {
46         this.duration = duration;
47     }
48
49     @Override
50     public String toString() {
51         return "UploadDuration{" +
52                 "eventId=" + eventId +
53                 ", server='" + server + '\'' +
54                 ", duration=" + duration +
55                 '}';
56     }
57 }