Package com.platformlib.process.core
Class DefaultOperationSystemProcess
- java.lang.Object
-
- java.util.concurrent.CompletableFuture<ProcessInstance>
-
- com.platformlib.process.core.DefaultOperationSystemProcess
-
- All Implemented Interfaces:
OperationSystemProcess,java.util.concurrent.CompletionStage<ProcessInstance>,java.util.concurrent.Future<ProcessInstance>
public class DefaultOperationSystemProcess extends java.util.concurrent.CompletableFuture<ProcessInstance> implements OperationSystemProcess
-
-
Constructor Summary
Constructors Constructor Description DefaultOperationSystemProcess()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancomplete(ProcessInstance value)booleancompleteExceptionally(java.lang.Throwable ex)java.util.Optional<java.lang.Integer>getPid()Get process ID.voidsetPid(java.lang.Integer pid)-
Methods inherited from class java.util.concurrent.CompletableFuture
acceptEither, acceptEitherAsync, acceptEitherAsync, allOf, anyOf, applyToEither, applyToEitherAsync, applyToEitherAsync, cancel, completeAsync, completeAsync, completedFuture, completedStage, completeOnTimeout, copy, defaultExecutor, delayedExecutor, delayedExecutor, exceptionally, failedFuture, failedStage, get, get, getNow, getNumberOfDependents, handle, handleAsync, handleAsync, isCancelled, isCompletedExceptionally, isDone, join, minimalCompletionStage, newIncompleteFuture, obtrudeException, obtrudeValue, orTimeout, runAfterBoth, runAfterBothAsync, runAfterBothAsync, runAfterEither, runAfterEitherAsync, runAfterEitherAsync, runAsync, runAsync, supplyAsync, supplyAsync, thenAccept, thenAcceptAsync, thenAcceptAsync, thenAcceptBoth, thenAcceptBothAsync, thenAcceptBothAsync, thenApply, thenApplyAsync, thenApplyAsync, thenCombine, thenCombineAsync, thenCombineAsync, thenCompose, thenComposeAsync, thenComposeAsync, thenRun, thenRunAsync, thenRunAsync, toCompletableFuture, toString, whenComplete, whenCompleteAsync, whenCompleteAsync
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.concurrent.CompletionStage
acceptEither, acceptEitherAsync, acceptEitherAsync, applyToEither, applyToEitherAsync, applyToEitherAsync, exceptionally, handle, handleAsync, handleAsync, runAfterBoth, runAfterBothAsync, runAfterBothAsync, runAfterEither, runAfterEitherAsync, runAfterEitherAsync, thenAccept, thenAcceptAsync, thenAcceptAsync, thenAcceptBoth, thenAcceptBothAsync, thenAcceptBothAsync, thenApply, thenApplyAsync, thenApplyAsync, thenCombine, thenCombineAsync, thenCombineAsync, thenCompose, thenComposeAsync, thenComposeAsync, thenRun, thenRunAsync, thenRunAsync, toCompletableFuture, whenComplete, whenCompleteAsync, whenCompleteAsync
-
-
-
-
Method Detail
-
setPid
public void setPid(java.lang.Integer pid)
-
getPid
public java.util.Optional<java.lang.Integer> getPid()
Description copied from interface:OperationSystemProcessGet process ID.- Specified by:
getPidin interfaceOperationSystemProcess- Returns:
- Returns process identification number (pid) or
Optional.empty()if pid couldn't be gotten
-
completeExceptionally
public boolean completeExceptionally(java.lang.Throwable ex)
- Overrides:
completeExceptionallyin classjava.util.concurrent.CompletableFuture<ProcessInstance>
-
complete
public boolean complete(ProcessInstance value)
- Overrides:
completein classjava.util.concurrent.CompletableFuture<ProcessInstance>
-
-