Class ArchivedJobServiceImpl
java.lang.Object
com.netflix.genie.web.services.impl.ArchivedJobServiceImpl
- All Implemented Interfaces:
ArchivedJobService
Default implementation of
ArchivedJobService
.- Since:
- 4.0.0
-
Constructor Summary
ConstructorDescriptionArchivedJobServiceImpl
(DataServices dataServices, org.springframework.core.io.ResourceLoader resourceLoader, io.micrometer.core.instrument.MeterRegistry meterRegistry) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetArchivedJobMetadata
(String jobId) Retrieve the metadata about the contents and location of a jobs archived artifacts.
-
Constructor Details
-
ArchivedJobServiceImpl
public ArchivedJobServiceImpl(DataServices dataServices, org.springframework.core.io.ResourceLoader resourceLoader, io.micrometer.core.instrument.MeterRegistry meterRegistry) Constructor.- Parameters:
dataServices
- TheDataServices
instance to useresourceLoader
- TheResourceLoader
used to get resourcesmeterRegistry
- TheMeterRegistry
used to collect metrics
-
-
Method Details
-
getArchivedJobMetadata
@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(String jobId) throws JobNotFoundException, JobNotArchivedException, JobDirectoryManifestNotFoundException Retrieve the metadata about the contents and location of a jobs archived artifacts.- Specified by:
getArchivedJobMetadata
in interfaceArchivedJobService
- Parameters:
jobId
- The id of the job- Returns:
- A
ArchivedJobMetadata
instance - Throws:
JobNotFoundException
- 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
-