| Modifier and Type | Field and Description |
|---|---|
| private static final ProcessHandle | |
| private static final ProcessHandle. | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static String | |
| public static List | Returns: a list of all the running processes. May throw an exception if running on an unsupported JDK
Deprecated
for removal since 2.4. Use
ProcessHandle#allProcesses() instead.
Returns all the running processes. |
| public static ProcessInfo | Returns: the current process
Deprecated
for removal since 2.4. Use
ProcessHandle#current() to get the current process information.
Returns information about the current process |
| public static long | Returns: the ID of this process
Deprecated
for removal since 2.4. Use
ProcessHandle#pid() instead.
Get the ID of this process. |
| public static String |
| current | back to summary |
|---|---|
| private static final ProcessHandle current | |
| currentInfo | back to summary |
|---|---|
| private static final ProcessHandle. | |
| name | back to summary |
|---|---|
| private static final String name | |
| Process | back to summary |
|---|---|
| private Process() | |
| computeProcessName | back to summary |
|---|---|
| private static String computeProcessName() | |
| getAllProcesses | back to summary |
|---|---|
| public static List Returns all the running processes.
| |
| getCurrentProcess | back to summary |
|---|---|
| public static ProcessInfo getCurrentProcess()
Deprecated for removal since 2.4. Use Returns information about the current process
| |
| getProcessId | back to summary |
|---|---|
| public static long getProcessId()
Get the ID of this process. This is the operating system specific PID.
| |
| getProcessName | back to summary |
|---|---|
| public static String getProcessName() Get the name of this process. If the process name is not known, then "<unknown>" is returned.
The process name may be overridden by setting the
| |