001 /**
002 * Copyright 2010-2013 The Kuali Foundation
003 *
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl2.php
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016 package org.kuali.common.util;
017
018 public class MonitorTextFileResult {
019
020 boolean exists;
021 boolean contains;
022 boolean timeoutExceeded;
023 long elapsed;
024 String absolutePath;
025 String content;
026
027 public MonitorTextFileResult() {
028 this(false, false, false, -1);
029 }
030
031 public MonitorTextFileResult(boolean exists, boolean contains, boolean timeoutExceeded, long elapsed) {
032 super();
033 this.exists = exists;
034 this.contains = contains;
035 this.timeoutExceeded = timeoutExceeded;
036 this.elapsed = elapsed;
037 }
038
039 public boolean isExists() {
040 return exists;
041 }
042
043 public void setExists(boolean exists) {
044 this.exists = exists;
045 }
046
047 public boolean isContains() {
048 return contains;
049 }
050
051 public void setContains(boolean contains) {
052 this.contains = contains;
053 }
054
055 public long getElapsed() {
056 return elapsed;
057 }
058
059 public void setElapsed(long elapsed) {
060 this.elapsed = elapsed;
061 }
062
063 public boolean isTimeoutExceeded() {
064 return timeoutExceeded;
065 }
066
067 public void setTimeoutExceeded(boolean timeoutExceeded) {
068 this.timeoutExceeded = timeoutExceeded;
069 }
070
071 public String getContent() {
072 return content;
073 }
074
075 public void setContent(String content) {
076 this.content = content;
077 }
078
079 public String getAbsolutePath() {
080 return absolutePath;
081 }
082
083 public void setAbsolutePath(String absolutePath) {
084 this.absolutePath = absolutePath;
085 }
086
087 }