< prev index next >

jdk/src/java.base/share/classes/java/lang/Process.java

Print this page

        

*** 302,312 **** * @return {@code true} if the implementation of {@link #destroy} is to * normally terminate the process; * otherwise, {@link #destroy} forcibly terminates the process * @throws UnsupportedOperationException if the Process implementation * does not support this operation ! * @since 1.9 */ public boolean supportsNormalTermination() { throw new UnsupportedOperationException(this.getClass() + ".supportsNormalTermination() not supported" ); } --- 302,312 ---- * @return {@code true} if the implementation of {@link #destroy} is to * normally terminate the process; * otherwise, {@link #destroy} forcibly terminates the process * @throws UnsupportedOperationException if the Process implementation * does not support this operation ! * @since 9 */ public boolean supportsNormalTermination() { throw new UnsupportedOperationException(this.getClass() + ".supportsNormalTermination() not supported" ); }
*** 338,348 **** * {@link #toHandle toHandle().getPid()}. * * @return the native process id of the process * @throws UnsupportedOperationException if the Process implementation * does not support this operation ! * @since 1.9 */ public long getPid() { return toHandle().getPid(); } --- 338,348 ---- * {@link #toHandle toHandle().getPid()}. * * @return the native process id of the process * @throws UnsupportedOperationException if the Process implementation * does not support this operation ! * @since 9 */ public long getPid() { return toHandle().getPid(); }
*** 407,417 **** * The process may be observed to have terminated with {@link #isAlive} * before the ComputableFuture is completed and dependent actions are invoked. * * @return a new {@code CompletableFuture<Process>} for the Process * ! * @since 1.9 */ public CompletableFuture<Process> onExit() { return CompletableFuture.supplyAsync(this::waitForInternal); } --- 407,417 ---- * The process may be observed to have terminated with {@link #isAlive} * before the ComputableFuture is completed and dependent actions are invoked. * * @return a new {@code CompletableFuture<Process>} for the Process * ! * @since 9 */ public CompletableFuture<Process> onExit() { return CompletableFuture.supplyAsync(this::waitForInternal); }
*** 469,479 **** * @return Returns a ProcessHandle for the Process * @throws UnsupportedOperationException if the Process implementation * does not support this operation * @throws SecurityException if a security manager has been installed and * it denies RuntimePermission("manageProcess") ! * @since 1.9 */ public ProcessHandle toHandle() { throw new UnsupportedOperationException(this.getClass() + ".toHandle() not supported"); } --- 469,479 ---- * @return Returns a ProcessHandle for the Process * @throws UnsupportedOperationException if the Process implementation * does not support this operation * @throws SecurityException if a security manager has been installed and * it denies RuntimePermission("manageProcess") ! * @since 9 */ public ProcessHandle toHandle() { throw new UnsupportedOperationException(this.getClass() + ".toHandle() not supported"); }
*** 489,499 **** * {@link #toHandle toHandle().info()}. * * @return a snapshot of information about the process, always non-null * @throws UnsupportedOperationException if the Process implementation * does not support this operation ! * @since 1.9 */ public ProcessHandle.Info info() { return toHandle().info(); } --- 489,499 ---- * {@link #toHandle toHandle().info()}. * * @return a snapshot of information about the process, always non-null * @throws UnsupportedOperationException if the Process implementation * does not support this operation ! * @since 9 */ public ProcessHandle.Info info() { return toHandle().info(); }
*** 514,524 **** * direct children of the process * @throws UnsupportedOperationException if the Process implementation * does not support this operation * @throws SecurityException if a security manager has been installed and * it denies RuntimePermission("manageProcess") ! * @since 1.9 */ public Stream<ProcessHandle> children() { return toHandle().children(); } --- 514,524 ---- * direct children of the process * @throws UnsupportedOperationException if the Process implementation * does not support this operation * @throws SecurityException if a security manager has been installed and * it denies RuntimePermission("manageProcess") ! * @since 9 */ public Stream<ProcessHandle> children() { return toHandle().children(); }
*** 540,550 **** * are descendants of the process * @throws UnsupportedOperationException if the Process implementation * does not support this operation * @throws SecurityException if a security manager has been installed and * it denies RuntimePermission("manageProcess") ! * @since 1.9 */ public Stream<ProcessHandle> descendants() { return toHandle().descendants(); } --- 540,550 ---- * are descendants of the process * @throws UnsupportedOperationException if the Process implementation * does not support this operation * @throws SecurityException if a security manager has been installed and * it denies RuntimePermission("manageProcess") ! * @since 9 */ public Stream<ProcessHandle> descendants() { return toHandle().descendants(); }
< prev index next >