001/**
002 * Copyright 2010-2014 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 */
016package org.kuali.common.util;
017
018public 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                this.exists = exists;
033                this.contains = contains;
034                this.timeoutExceeded = timeoutExceeded;
035                this.elapsed = elapsed;
036        }
037
038        public boolean isExists() {
039                return exists;
040        }
041
042        public void setExists(boolean exists) {
043                this.exists = exists;
044        }
045
046        public boolean isContains() {
047                return contains;
048        }
049
050        public void setContains(boolean contains) {
051                this.contains = contains;
052        }
053
054        public long getElapsed() {
055                return elapsed;
056        }
057
058        public void setElapsed(long elapsed) {
059                this.elapsed = elapsed;
060        }
061
062        public boolean isTimeoutExceeded() {
063                return timeoutExceeded;
064        }
065
066        public void setTimeoutExceeded(boolean timeoutExceeded) {
067                this.timeoutExceeded = timeoutExceeded;
068        }
069
070        public String getContent() {
071                return content;
072        }
073
074        public void setContent(String content) {
075                this.content = content;
076        }
077
078        public String getAbsolutePath() {
079                return absolutePath;
080        }
081
082        public void setAbsolutePath(String absolutePath) {
083                this.absolutePath = absolutePath;
084        }
085
086}