1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.common.util;
17
18 public class MonitorTextFileResult {
19
20 boolean exists;
21 boolean contains;
22 boolean timeoutExceeded;
23 long elapsed;
24 String absolutePath;
25 String content;
26
27 public MonitorTextFileResult() {
28 this(false, false, false, -1);
29 }
30
31 public MonitorTextFileResult(boolean exists, boolean contains, boolean timeoutExceeded, long elapsed) {
32 this.exists = exists;
33 this.contains = contains;
34 this.timeoutExceeded = timeoutExceeded;
35 this.elapsed = elapsed;
36 }
37
38 public boolean isExists() {
39 return exists;
40 }
41
42 public void setExists(boolean exists) {
43 this.exists = exists;
44 }
45
46 public boolean isContains() {
47 return contains;
48 }
49
50 public void setContains(boolean contains) {
51 this.contains = contains;
52 }
53
54 public long getElapsed() {
55 return elapsed;
56 }
57
58 public void setElapsed(long elapsed) {
59 this.elapsed = elapsed;
60 }
61
62 public boolean isTimeoutExceeded() {
63 return timeoutExceeded;
64 }
65
66 public void setTimeoutExceeded(boolean timeoutExceeded) {
67 this.timeoutExceeded = timeoutExceeded;
68 }
69
70 public String getContent() {
71 return content;
72 }
73
74 public void setContent(String content) {
75 this.content = content;
76 }
77
78 public String getAbsolutePath() {
79 return absolutePath;
80 }
81
82 public void setAbsolutePath(String absolutePath) {
83 this.absolutePath = absolutePath;
84 }
85
86 }