public class ArchivedJobServiceImpl extends java.lang.Object implements ArchivedJobService
ArchivedJobService.| Constructor and Description |
|---|
ArchivedJobServiceImpl(DataServices dataServices,
org.springframework.core.io.ResourceLoader resourceLoader,
io.micrometer.core.instrument.MeterRegistry meterRegistry)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ArchivedJobMetadata |
getArchivedJobMetadata(java.lang.String jobId)
Retrieve the metadata about the contents and location of a jobs archived artifacts.
|
public ArchivedJobServiceImpl(DataServices dataServices, org.springframework.core.io.ResourceLoader resourceLoader, io.micrometer.core.instrument.MeterRegistry meterRegistry)
dataServices - The DataServices instance to useresourceLoader - The ResourceLoader used to get resourcesmeterRegistry - The MeterRegistry used to collect metrics@Cacheable(cacheNames="archivedJobMetadata",
sync=true)
@Retryable(maxAttemptsExpression="#{${genie.retry.archived-job-get-metadata.noOfRetries:5}}",
include=JobDirectoryManifestNotFoundException.class,
backoff=@Backoff(delayExpression="#{${genie.retry.archived-job-get-metadata.initialDelay:1000}}",multiplierExpression="#{${genie.retry.archived-job-get-metadata.multiplier:2.0}}"))
public ArchivedJobMetadata getArchivedJobMetadata(java.lang.String jobId)
throws JobNotFoundException,
JobNotArchivedException,
JobDirectoryManifestNotFoundException
getArchivedJobMetadata in interface ArchivedJobServicejobId - The id of the jobArchivedJobMetadata instanceJobNotFoundException - When no job with id jobId is found in the systemJobNotArchivedException - If the job wasn't archived so no manifest could be retrievedJobDirectoryManifestNotFoundException - If the job was archived but the manifest can't be located