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 */
016 package org.kuali.common.util;
017
018 /**
019 * This is a pojo representing what is returned when executing "ps -f" on an Amazon Linux server
020 */
021 public class UnixProcess {
022 // UID PID PPID C STIME TTY TIME CMD
023
024 String userId;
025 Integer processId;
026 Integer parentProcessId;
027 String cpu;
028 String startTime;
029 String terminal;
030 String totalCpuUsage;
031 String command;
032
033 public String getUserId() {
034 return userId;
035 }
036
037 public void setUserId(String userId) {
038 this.userId = userId;
039 }
040
041 public Integer getProcessId() {
042 return processId;
043 }
044
045 public void setProcessId(Integer processId) {
046 this.processId = processId;
047 }
048
049 public Integer getParentProcessId() {
050 return parentProcessId;
051 }
052
053 public void setParentProcessId(Integer parentProcessId) {
054 this.parentProcessId = parentProcessId;
055 }
056
057 public String getCpu() {
058 return cpu;
059 }
060
061 public void setCpu(String cpu) {
062 this.cpu = cpu;
063 }
064
065 public String getStartTime() {
066 return startTime;
067 }
068
069 public void setStartTime(String startTime) {
070 this.startTime = startTime;
071 }
072
073 public String getTerminal() {
074 return terminal;
075 }
076
077 public void setTerminal(String terminal) {
078 this.terminal = terminal;
079 }
080
081 public String getTotalCpuUsage() {
082 return totalCpuUsage;
083 }
084
085 public void setTotalCpuUsage(String totalCpuUsage) {
086 this.totalCpuUsage = totalCpuUsage;
087 }
088
089 public String getCommand() {
090 return command;
091 }
092
093 public void setCommand(String command) {
094 this.command = command;
095 }
096
097 }