1 package com.github.sbugat.rundeckmonitor;
2
3 import java.util.Date;
4
5
6
7
8
9
10
11 public final class JobExecutionInfo {
12
13
14 private final Long executionId;
15
16
17 private final Date startedAt;
18
19
20 private final String description;
21
22
23 private final boolean longExecution;
24
25
26 private final boolean newJob;
27
28
29
30
31
32
33
34
35
36
37 public JobExecutionInfo(final Long executionIdArg, final Date startedAtArg, final String descriptionArg, final boolean longExecutionArg, final boolean newJobArg) {
38 executionId = executionIdArg;
39 startedAt = new Date(startedAtArg.getTime());
40 description = descriptionArg;
41 longExecution = longExecutionArg;
42 newJob = newJobArg;
43 }
44
45
46
47
48
49
50 public Long getExecutionId() {
51 return executionId;
52 }
53
54
55
56
57
58
59 public Date getStartedAt() {
60 return new Date(startedAt.getTime());
61 }
62
63
64
65
66
67
68 public String getDescription() {
69 return description;
70 }
71
72
73
74
75
76
77 public boolean isLongExecution() {
78 return longExecution;
79 }
80
81
82
83
84
85
86 public boolean isNewJob() {
87 return newJob;
88 }
89 }