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;
17  
18  /**
19   * This is a pojo representing what is returned when executing "ps -f" on an Amazon Linux server
20   */
21  public class UnixProcess {
22  	// UID PID PPID C STIME TTY TIME CMD
23  
24  	String userId;
25  	Integer processId;
26  	Integer parentProcessId;
27  	String cpu;
28  	String startTime;
29  	String terminal;
30  	String totalCpuUsage;
31  	String command;
32  
33  	public String getUserId() {
34  		return userId;
35  	}
36  
37  	public void setUserId(String userId) {
38  		this.userId = userId;
39  	}
40  
41  	public Integer getProcessId() {
42  		return processId;
43  	}
44  
45  	public void setProcessId(Integer processId) {
46  		this.processId = processId;
47  	}
48  
49  	public Integer getParentProcessId() {
50  		return parentProcessId;
51  	}
52  
53  	public void setParentProcessId(Integer parentProcessId) {
54  		this.parentProcessId = parentProcessId;
55  	}
56  
57  	public String getCpu() {
58  		return cpu;
59  	}
60  
61  	public void setCpu(String cpu) {
62  		this.cpu = cpu;
63  	}
64  
65  	public String getStartTime() {
66  		return startTime;
67  	}
68  
69  	public void setStartTime(String startTime) {
70  		this.startTime = startTime;
71  	}
72  
73  	public String getTerminal() {
74  		return terminal;
75  	}
76  
77  	public void setTerminal(String terminal) {
78  		this.terminal = terminal;
79  	}
80  
81  	public String getTotalCpuUsage() {
82  		return totalCpuUsage;
83  	}
84  
85  	public void setTotalCpuUsage(String totalCpuUsage) {
86  		this.totalCpuUsage = totalCpuUsage;
87  	}
88  
89  	public String getCommand() {
90  		return command;
91  	}
92  
93  	public void setCommand(String command) {
94  		this.command = command;
95  	}
96  
97  }