public class ClusterTask extends GenieBaseTask
Constructor and Description |
---|
ClusterTask(@NotNull io.micrometer.core.instrument.MeterRegistry registry,
@NotNull GenieFileTransferService fts)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
executeTask(@NotNull java.util.Map<java.lang.String,java.lang.Object> context)
Execute the task.
|
buildLocalFilePath
public ClusterTask(@NotNull @NotNull io.micrometer.core.instrument.MeterRegistry registry, @NotNull @NotNull GenieFileTransferService fts)
registry
- The metrics registry to usefts
- File transfer servicepublic void executeTask(@NotNull @NotNull java.util.Map<java.lang.String,java.lang.Object> context) throws GenieException, java.io.IOException
context
- Information needed to execute the task.GenieException
- if there is an error.java.io.IOException
- if there is a problem writing to the disk.