public class JobTask extends GenieBaseTask
Constructor and Description |
---|
JobTask(@NotNull AttachmentService attachmentService,
@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 JobTask(@NotNull @NotNull AttachmentService attachmentService, @NotNull @NotNull io.micrometer.core.instrument.MeterRegistry registry, @NotNull @NotNull GenieFileTransferService fts)
attachmentService
- An implementation of the Attachment Serviceregistry
- 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.