|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.sysmgt.sdk.remote.Process
Field Summary | |
---|---|
static int |
PROC_PRIORITY_BACKGROUND
|
static int |
PROC_PRIORITY_FOREGROUND
|
static int |
PROC_PRIORITY_HIGH
|
static int |
PROC_PRIORITY_IDLE
|
static int |
PROC_PRIORITY_LOW
|
static int |
PROC_PRIORITY_NORMAL
|
static int |
PROC_PRIORITY_REAL_TIME
|
static int |
PROC_PRIORITY_SERVER
|
static int |
PROC_PRIORITY_TIME_CRIT
|
static int |
PROC_PRIORITY_UNKNOWN
|
static int |
PROC_TYPE_APPLICATION
|
Constructor Summary | |
---|---|
protected |
Process()
Constructor |
|
Process(long pid,
long moid)
Constructor |
Method Summary | |
---|---|
static Process |
findById(LoginSession session,
long pid,
long moid)
Finds the Process object matching the specified process id |
static java.util.List |
getAllProcesses(LoginSession s,
long moid)
|
java.lang.String |
getCommand()
Gets the command for the process executable |
java.lang.String |
getCPUTime()
Gets the amount of CPU time the process has used |
java.lang.String |
getExecutableDate()
Gets the date of the process executable |
java.lang.String |
getExecutableDescription()
Gets the description for the process executable |
java.lang.String |
getExecutableVersion()
Gets the version of the process executable |
java.lang.Long |
getMemoryusage()
Gets the amount of memory used by the process |
long |
getMoid()
Gets the Managed System ID for this process |
java.lang.Boolean |
getMonitored()
Gets whether the process is being monitored by Director |
java.lang.String |
getName()
Gets the name of this process |
java.lang.Long |
getParentId()
Gets the parent process id for this process |
long |
getPid()
Gets the process id for this process |
java.lang.Integer |
getPriority()
Gets the priority of the process |
java.lang.String |
getStatus()
getStatus - gets the status of the process |
java.lang.String |
getSubSystem()
getSubSystem - gets the subsystem of the process |
java.lang.Integer |
getThreadcount()
Gets the number of threads the process is using |
java.lang.String |
getUser()
Gets the user name the process is running under |
void |
setCommand(java.lang.String command)
Sets the command for the process executable |
void |
setCPUTime(java.lang.String CPUTime)
Sets the amount of CPU time the process has used |
void |
setExecutableDate(java.lang.String executableDate)
Sets the date of the process executable |
void |
setExecutableDescription(java.lang.String executableDescription)
Sets the description for the process executable |
void |
setExecutableVersion(java.lang.String executableVersion)
Sets the version of the process executable |
void |
setMemoryusage(java.lang.Long memoryusage)
Sets the amount of memory used by the process |
void |
setMoid(long moid)
Sets the Managed System id for this process |
void |
setMonitored(java.lang.Boolean monitored)
Sets whether the process is being monitored by Director |
void |
setName(java.lang.String name)
Sets the name of the process |
void |
setParentId(java.lang.Long parentId)
Sets the parent process id for this process |
void |
setPid(long pid)
Sets the process id for this process |
void |
setPriority(java.lang.Integer priority)
Sets the priority of the process |
void |
setStatus(java.lang.String status)
Sets the status of the process (os400 specific) |
void |
setSubSystem(java.lang.String subsystem)
Sets the subsystem of the process (0s400 specific) |
void |
setThreadcount(java.lang.Integer threadcount)
Sets the number of threads the process is using |
void |
setUser(java.lang.String user)
Sets the user name the process is running under |
static java.lang.Boolean |
terminate(LoginSession session,
long pid,
long moid,
int type)
|
static java.lang.Boolean |
terminate(LoginSession session,
Process proc,
ManagedSystem ms)
|
java.lang.String |
toString()
Get the process information in the form of a string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int PROC_PRIORITY_IDLE
public static final int PROC_PRIORITY_LOW
public static final int PROC_PRIORITY_BACKGROUND
public static final int PROC_PRIORITY_NORMAL
public static final int PROC_PRIORITY_FOREGROUND
public static final int PROC_PRIORITY_HIGH
public static final int PROC_PRIORITY_SERVER
public static final int PROC_PRIORITY_TIME_CRIT
public static final int PROC_PRIORITY_REAL_TIME
public static final int PROC_PRIORITY_UNKNOWN
public static final int PROC_TYPE_APPLICATION
Constructor Detail |
protected Process()
public Process(long pid, long moid)
pid
- - the process id for the processmoid
- - the Managed System id where the process is runningMethod Detail |
public static java.util.List getAllProcesses(LoginSession s, long moid) throws ServerCommunicationException, RequestFailedException
s
- - the login sessionmoid
- - the id of the Managed System to retrieve the processes from
ServerCommunicationException
RequestFailedException
public static java.lang.Boolean terminate(LoginSession session, Process proc, ManagedSystem ms) throws ServerCommunicationException, RequestFailedException
session
- - the login sessionms
- - the Managed System object where the process is running
ServerCommunicationException
RequestFailedException
public static java.lang.Boolean terminate(LoginSession session, long pid, long moid, int type) throws ServerCommunicationException, RequestFailedException
session
- - the login sessionpid
- - the process id to terminatemoid
- - the Managed System id where the process is running
ServerCommunicationException
RequestFailedException
public static Process findById(LoginSession session, long pid, long moid) throws ServerCommunicationException, RequestFailedException
pid
- - the process id to search formoid
- - the managed system id where the process is running
ServerCommunicationException
RequestFailedException
public long getMoid()
public void setMoid(long moid)
moid
- - the managed object IDpublic long getPid()
public void setPid(long pid)
public java.lang.String getName()
public void setName(java.lang.String name)
name
- - the name of the processpublic java.lang.String getUser()
public void setUser(java.lang.String user)
user
- - the user ID the process is running underpublic java.lang.Long getParentId()
public void setParentId(java.lang.Long parentId)
parentId
- - the parent process idpublic java.lang.Integer getThreadcount()
public void setThreadcount(java.lang.Integer threadcount)
threadcount
- - the number of threads the process is usingpublic java.lang.Integer getPriority()
public void setPriority(java.lang.Integer priority)
priority
- - the priority of the processpublic java.lang.Boolean getMonitored()
public void setMonitored(java.lang.Boolean monitored)
monitored
- - true/false whether the process is monitored by Directorpublic java.lang.Long getMemoryusage()
public void setMemoryusage(java.lang.Long memoryusage)
memoryusage
- - the amount of memory the process is usingpublic java.lang.String getCPUTime()
public void setCPUTime(java.lang.String CPUTime)
CPUTime
- - the amount of CPU time the process is usingpublic java.lang.String getExecutableVersion()
public void setExecutableVersion(java.lang.String executableVersion)
executableVersion
- - the version of the process executablepublic java.lang.String getExecutableDate()
public void setExecutableDate(java.lang.String executableDate)
executableDate
- - the date of the process executablepublic java.lang.String getExecutableDescription()
public void setExecutableDescription(java.lang.String executableDescription)
executableDescription
- - the description for the process executablepublic java.lang.String getCommand()
public void setCommand(java.lang.String command)
command
- - the command for the process executablepublic java.lang.String getStatus()
public void setStatus(java.lang.String status)
status
- - status of the processpublic java.lang.String getSubSystem()
public void setSubSystem(java.lang.String subsystem)
subsystem
- - subsystem of the processpublic java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |