public class LazyCreatedComputationManager extends Object implements ComputationManager
Constructor and Description |
---|
LazyCreatedComputationManager(ComputationManagerFactory factory) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
<R> CompletableFuture<R> |
execute(ExecutionEnvironment environment,
ExecutionHandler<R> handler)
Submits for execution commands defined by the specified
ExecutionHandler ,
using the specified ExecutionEnvironment . |
<R> CompletableFuture<R> |
execute(ExecutionEnvironment environment,
ExecutionHandler<R> handler,
ComputationParameters parameters)
Submits for execution commands defined by the specified
ExecutionHandler ,
using the specified ExecutionEnvironment . |
Executor |
getExecutor()
An executor which may be used to perform expensive processing inside this JVM.
|
Path |
getLocalDir() |
ComputationResourcesStatus |
getResourcesStatus() |
String |
getVersion() |
OutputStream |
newCommonFile(String fileName) |
public LazyCreatedComputationManager(ComputationManagerFactory factory)
public String getVersion()
getVersion
in interface ComputationManager
public OutputStream newCommonFile(String fileName) throws IOException
newCommonFile
in interface ComputationManager
IOException
public <R> 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 <R> CompletableFuture<R> execute(ExecutionEnvironment environment, ExecutionHandler<R> handler, ComputationParameters parameters)
ComputationManager
ExecutionHandler
,
using the specified ExecutionEnvironment
.
The result of type R
will be provided asynchronously through the returned CompletableFuture
.
Additional technical parameters may be provided through the ComputationParameters
.
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.parameters
- defines additional technical parameterspublic ComputationResourcesStatus getResourcesStatus()
getResourcesStatus
in interface ComputationManager
public Executor getExecutor()
ComputationManager
getExecutor
in interface ComputationManager
public Path getLocalDir()
getLocalDir
in interface ComputationManager
public void close()
close
in interface ComputationManager
close
in interface AutoCloseable
Copyright © 2020. All rights reserved.