public abstract class CommonProcessInfo extends Object implements ProcessInfo
Constructor and Description |
---|
CommonProcessInfo()
Creates a new instance and sets a common value for
ProcessInfo.getUserName() . |
Modifier and Type | Method and Description |
---|---|
List<String> |
getArguments()
Returns the program's command line arguments.
|
Integer |
getPid()
Returns the pid of a process.
|
String |
getProgramName()
Returns a string name describing the program.
|
Long |
getStartTime()
Returns the process start time in microseconds.
|
String |
getUserName()
Returns the name of the user executing the process.
|
protected void |
setArguments(List<String> arguments)
Sets the command line arguments.
|
protected void |
setPid(Integer pid)
Sets the pid variable.
|
protected void |
setProgramName(String programName)
Sets the program name.
|
protected void |
setStartTime(Long startTime)
Sets the process start time.
|
protected void |
setUserName(String userName)
Sets the user name variable.
|
public CommonProcessInfo()
ProcessInfo.getUserName()
.public Integer getPid()
ProcessInfo
getPid
in interface ProcessInfo
null
if not determinedprotected void setPid(Integer pid)
pid
- the pidpublic String getProgramName()
ProcessInfo
getProgramName
in interface ProcessInfo
null
if not determinedprotected void setProgramName(String programName)
programName
- the program namepublic List<String> getArguments()
ProcessInfo
getArguments
in interface ProcessInfo
null
if not determinedprotected void setArguments(List<String> arguments)
arguments
- the argumentspublic Long getStartTime()
ProcessInfo
getStartTime
in interface ProcessInfo
null
if not determinedprotected void setStartTime(Long startTime)
startTime
- the process start time in microsecondspublic String getUserName()
ProcessInfo
getUserName
in interface ProcessInfo
null
if not determinedprotected void setUserName(String userName)
userName
- user nameCopyright © 2018 CoR-Lab. All rights reserved.