View Javadoc

1   /**
2    * Copyright 2010-2013 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
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  }