1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.common.util.secure.channel;
17
18
19
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 }