Class ArchivedJobServiceImpl
- java.lang.Object
-
- com.netflix.genie.web.services.impl.ArchivedJobServiceImpl
-
- All Implemented Interfaces:
ArchivedJobService
public class ArchivedJobServiceImpl extends java.lang.Object implements ArchivedJobService
Default implementation ofArchivedJobService
.- Since:
- 4.0.0
-
-
Constructor Summary
Constructors Constructor Description ArchivedJobServiceImpl(DataServices dataServices, org.springframework.core.io.ResourceLoader resourceLoader, io.micrometer.core.instrument.MeterRegistry meterRegistry)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArchivedJobMetadata
getArchivedJobMetadata(java.lang.String jobId)
Retrieve the metadata about the contents and location of a jobs archived artifacts.
-
-
-
Constructor Detail
-
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 Detail
-
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(java.lang.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
-
-