public class LazyCreatedComputationManager extends java.lang.Object implements ComputationManager
Constructor and Description |
---|
LazyCreatedComputationManager(ComputationManagerFactory factory) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
<R> java.util.concurrent.CompletableFuture<R> |
execute(ExecutionEnvironment environment,
ExecutionHandler<R> handler)
Submits for execution commands defined by the specified
ExecutionHandler ,
using the specified ExecutionEnvironment . |
java.util.concurrent.Executor |
getExecutor()
An executor which may be used to perform expensive processing inside this JVM.
|
java.nio.file.Path |
getLocalDir() |
ComputationResourcesStatus |
getResourcesStatus() |
java.lang.String |
getVersion() |
java.io.OutputStream |
newCommonFile(java.lang.String fileName) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
execute
public LazyCreatedComputationManager(ComputationManagerFactory factory)
public java.lang.String getVersion()
getVersion
in interface ComputationManager
public java.io.OutputStream newCommonFile(java.lang.String fileName) throws java.io.IOException
newCommonFile
in interface ComputationManager
java.io.IOException
public <R> java.util.concurrent.CompletableFuture<R> execute(ExecutionEnvironment environment, ExecutionHandler<R> handler)
ComputationManager
ExecutionHandler
,
using the specified ExecutionEnvironment
.
The result of type R
will be provided asynchronously through the returned CompletableFuture
.
execute
in interface ComputationManager
R
- the type of the result expected from the commands execution.environment
- specifies environment details such as the working directory prefix and environment variables.handler
- defines the commands to be executed together with preprocessing and postprocessing.public ComputationResourcesStatus getResourcesStatus()
getResourcesStatus
in interface ComputationManager
public java.util.concurrent.Executor getExecutor()
ComputationManager
getExecutor
in interface ComputationManager
public java.nio.file.Path getLocalDir()
getLocalDir
in interface ComputationManager
public void close()
close
in interface ComputationManager
close
in interface java.lang.AutoCloseable
Copyright © 2019. All rights reserved.