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.secure.channel;
17  
18  /**
19   * @deprecated
20   */
21  @Deprecated
22  public class Result {
23  
24  	public Result(String command, int exitValue, String stdin, String stdout, String stderr, String encoding, long start, long stop) {
25  		this.command = command;
26  		this.exitValue = exitValue;
27  		this.stdin = stdin;
28  		this.stdout = stdout;
29  		this.stderr = stderr;
30  		this.encoding = encoding;
31  		this.start = start;
32  		this.stop = stop;
33  		this.elapsed = stop - start;
34  	}
35  
36  	private final String command;
37  	private final int exitValue;
38  	private final String stdin;
39  	private final String stdout;
40  	private final String stderr;
41  	private final String encoding;
42  	private final long start;
43  	private final long stop;
44  	private final long elapsed;
45  
46  	public String getEncoding() {
47  		return encoding;
48  	}
49  
50  	public String getCommand() {
51  		return command;
52  	}
53  
54  	public String getStdin() {
55  		return stdin;
56  	}
57  
58  	public int getExitValue() {
59  		return exitValue;
60  	}
61  
62  	public String getStdout() {
63  		return stdout;
64  	}
65  
66  	public String getStderr() {
67  		return stderr;
68  	}
69  
70  	public long getStart() {
71  		return start;
72  	}
73  
74  	public long getStop() {
75  		return stop;
76  	}
77  
78  	public long getElapsed() {
79  		return elapsed;
80  	}
81  }