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  		super();
33  		this.exists = exists;
34  		this.contains = contains;
35  		this.timeoutExceeded = timeoutExceeded;
36  		this.elapsed = elapsed;
37  	}
38  
39  	public boolean isExists() {
40  		return exists;
41  	}
42  
43  	public void setExists(boolean exists) {
44  		this.exists = exists;
45  	}
46  
47  	public boolean isContains() {
48  		return contains;
49  	}
50  
51  	public void setContains(boolean contains) {
52  		this.contains = contains;
53  	}
54  
55  	public long getElapsed() {
56  		return elapsed;
57  	}
58  
59  	public void setElapsed(long elapsed) {
60  		this.elapsed = elapsed;
61  	}
62  
63  	public boolean isTimeoutExceeded() {
64  		return timeoutExceeded;
65  	}
66  
67  	public void setTimeoutExceeded(boolean timeoutExceeded) {
68  		this.timeoutExceeded = timeoutExceeded;
69  	}
70  
71  	public String getContent() {
72  		return content;
73  	}
74  
75  	public void setContent(String content) {
76  		this.content = content;
77  	}
78  
79  	public String getAbsolutePath() {
80  		return absolutePath;
81  	}
82  
83  	public void setAbsolutePath(String absolutePath) {
84  		this.absolutePath = absolutePath;
85  	}
86  
87  }