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 */ 016package org.kuali.common.util.secure.channel; 017 018/** 019 * @deprecated 020 */ 021@Deprecated 022public class Result { 023 024 public Result(String command, int exitValue, String stdin, String stdout, String stderr, String encoding, long start, long stop) { 025 this.command = command; 026 this.exitValue = exitValue; 027 this.stdin = stdin; 028 this.stdout = stdout; 029 this.stderr = stderr; 030 this.encoding = encoding; 031 this.start = start; 032 this.stop = stop; 033 this.elapsed = stop - start; 034 } 035 036 private final String command; 037 private final int exitValue; 038 private final String stdin; 039 private final String stdout; 040 private final String stderr; 041 private final String encoding; 042 private final long start; 043 private final long stop; 044 private final long elapsed; 045 046 public String getEncoding() { 047 return encoding; 048 } 049 050 public String getCommand() { 051 return command; 052 } 053 054 public String getStdin() { 055 return stdin; 056 } 057 058 public int getExitValue() { 059 return exitValue; 060 } 061 062 public String getStdout() { 063 return stdout; 064 } 065 066 public String getStderr() { 067 return stderr; 068 } 069 070 public long getStart() { 071 return start; 072 } 073 074 public long getStop() { 075 return stop; 076 } 077 078 public long getElapsed() { 079 return elapsed; 080 } 081}