org.eclipse.rse.services.clientserver.processes
Interface IHostProcessFilter
-
All Known Implementing Classes:
-
HostProcessFilterImpl
-
public interface IHostProcessFilter
Method Summary
|
boolean
|
allows
(
String status)
Returns whether this filter allows a process with the status line
status to pass through. |
boolean
|
getAnyStatus
()
Returns true when all process states are selected. |
String
|
getGid
()
Return the process group id (gid) part of this filter string. |
String
|
getMaxVM
()
Returns the maximum VM size for processes allowed by this filter |
String
|
getMinVM
()
Returns the minimum VM size for processes allowed by this filter |
String
|
getName
()
Return the process name part of this filter string. |
String
|
getPid
()
Return the process id (pid) part of this filter string. |
String
|
getPpid
()
Return the process parent id (ppid) part of this filter string. |
boolean
|
getSpecificState
(
String stateCode)
Check whether this filter requires that the given state is set. |
String
|
getUsername
()
Return the username part of this filter string. |
boolean
|
satisfiesState
(
String stateString)
Check whether a given process state String matches this filter. |
void
|
setAnyStatus
()
Select all/any process states |
void
|
setGid
(
String obj)
Set the process group id (gid) part of this filter string. |
void
|
setMaxVM
(
String strMaxVM)
Sets the maximum VM size for processes allowed by this filter |
void
|
setMinVM
(
String strMinVM)
Sets the minimum VM size for processes allowed by this filter |
void
|
setName
(
String obj)
Set the name part of this filter string. |
void
|
setPid
(
String obj)
Set the process id part of this filter string. |
void
|
setPpid
(
String obj)
Set the process parent id part of this filter string. |
void
|
setSpecificState
(
String stateCode)
Change this filter such that it requires the given state to be set. |
void
|
setUsername
(
String obj)
Set the user id (uid) part of this filter string. |
getName
String getName()
- Return the process name part of this filter string.
-
getUsername
String getUsername()
- Return the username part of this filter string.
-
getGid
String getGid()
- Return the process group id (gid) part of this filter string.
-
getPpid
String getPpid()
- Return the process parent id (ppid) part of this filter string.
-
getPid
String getPid()
- Return the process id (pid) part of this filter string.
-
getAnyStatus
boolean getAnyStatus()
- Returns true when all process states are selected. The individual state
queries will return false in this case.
-
getMinVM
String getMinVM()
- Returns the minimum VM size for processes allowed by this filter
-
getMaxVM
String getMaxVM()
- Returns the maximum VM size for processes allowed by this filter
-
setName
void setName(
String obj)
- Set the name part of this filter string. This can be simple or
generic, where generic is a name containing one or two asterisks
anywhere in the name.
-
setUsername
void setUsername(
String obj)
- Set the user id (uid) part of this filter string. This can be simple or
generic, where generic is a uid containing one or two asterisks anywhere
in the name.
-
setGid
void setGid(
String obj)
- Set the process group id (gid) part of this filter string.
-
setPpid
void setPpid(
String obj)
- Set the process parent id part of this filter string.
-
setPid
void setPid(
String obj)
- Set the process id part of this filter string.
-
setAnyStatus
void setAnyStatus()
- Select all/any process states
-
setMinVM
void setMinVM(
String strMinVM)
- Sets the minimum VM size for processes allowed by this filter
-
setMaxVM
void setMaxVM(
String strMaxVM)
- Sets the maximum VM size for processes allowed by this filter
-
allows
boolean allows(
String status)
- Returns whether this filter allows a process with the status line
status
to pass through. The status line contains some of the contents of
the status file contained in the processes numbered directory in
the /proc filesystem. For example, the status line of process 12345 is
the contents of the file /proc/12345/stat.
The status line must be structured as follows:
"pid|name|status|tgid|ppid|tracerpid|uid|username|gid|vmSize|vmRSS"
-
getSpecificState
boolean getSpecificState(
String stateCode)
- Check whether this filter requires that the given state is set.
-
-
Parameters:
-
stateCode
- state code to check. One of the String constants
in
ISystemProcessRemoteConstants.ALL_STATES_STR
.
setSpecificState
void setSpecificState(
String stateCode)
- Change this filter such that it requires the given state to be set.
-
-
Parameters:
-
stateCode
- state code to check. One of the String constants
in
ISystemProcessRemoteConstants.ALL_STATES_STR
.
satisfiesState
boolean satisfiesState(
String stateString)
- Check whether a given process state String matches this filter.
-
-
Parameters:
-
stateString
- A state String, holding a list of state constants
from
ISystemProcessRemoteConstants.ALL_STATES_STR
,
separated by comma (",").
Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.