Package | Description |
---|---|
java.lang |
Provides classes that are fundamental to the design of the Java
programming language.
|
Modifier and Type | Method | Description |
---|---|---|
static ProcessHandle |
ProcessHandle.current() |
Returns a ProcessHandle for the current process.
|
ProcessHandle |
Process.toHandle() |
Returns a ProcessHandle for the Process.
|
Modifier and Type | Method | Description |
---|---|---|
static Stream<ProcessHandle> |
ProcessHandle.allProcesses() |
Returns a snapshot of all processes visible to the current process.
|
Stream<ProcessHandle> |
Process.children() |
Returns a snapshot of the direct children of the process.
|
Stream<ProcessHandle> |
ProcessHandle.children() |
Returns a snapshot of the current direct children of the process.
|
Stream<ProcessHandle> |
Process.descendants() |
Returns a snapshot of the descendants of the process.
|
Stream<ProcessHandle> |
ProcessHandle.descendants() |
Returns a snapshot of the descendants of the process.
|
static Optional<ProcessHandle> |
ProcessHandle.of(long pid) |
Returns an
Optional<ProcessHandle> for an existing native process. |
CompletableFuture<ProcessHandle> |
ProcessHandle.onExit() |
Returns a
CompletableFuture<ProcessHandle> for the termination
of the process. |
Optional<ProcessHandle> |
ProcessHandle.parent() |
Returns an
Optional<ProcessHandle> for the parent process. |
Modifier and Type | Method | Description |
---|---|---|
int |
ProcessHandle.compareTo(ProcessHandle other) |
Compares this ProcessHandle with the specified ProcessHandle for order.
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-internal+0-adhoc.mlchung.jdk9-jdeps