Class JobOrchestrator
java.lang.Object
com.bluebell.greenhouse.planter.orchestrators.job.JobOrchestrator
- All Implemented Interfaces:
GenericOrchestrator
Owns the unit of work for the
Job endpoints.- Version:
- 3.0.6
- Author:
- Stephen Prizio
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncancelAttempt(String jobId) Requests cancellation and returns the resulting lifecycle state.downloadArtifact(String artifactId) Resolves an authorized artifact download inside the job orchestration boundary.getAttempt(String jobId) Resolves durable attempt detail by public UUID.Returns a page of action-execution events.retryAttempt(String jobId, String reason) Creates a linked retry and returns its public identity.searchJobSummaries(JobSearchRequest searchRequest) Searches bounded durable job summaries.
-
Constructor Details
-
JobOrchestrator
public JobOrchestrator()
-
-
Method Details
-
searchJobSummaries
@Transactional(readOnly=true) public PaginatedJobSummaryDTO searchJobSummaries(JobSearchRequest searchRequest) Searches bounded durable job summaries.- Parameters:
searchRequest- operator search request- Returns:
- summary page
-
getAttempt
Resolves durable attempt detail by public UUID.- Parameters:
jobId- public job identifier- Returns:
- attempt detail
-
getEvents
@Transactional(readOnly=true) public PaginatedActionEventDTO getEvents(String executionId, String severity, int page, int pageSize) Returns a page of action-execution events.- Parameters:
executionId- public execution identifierseverity- optional severity codepage- page numberpageSize- page size- Returns:
- event page
-
downloadArtifact
Resolves an authorized artifact download inside the job orchestration boundary.- Parameters:
artifactId- public artifact identifier- Returns:
- artifact download metadata and resource
-
retryAttempt
Creates a linked retry and returns its public identity.- Parameters:
jobId- public selected attempt identifierreason- operator reason- Returns:
- new attempt submission
-
cancelAttempt
Requests cancellation and returns the resulting lifecycle state.- Parameters:
jobId- public job identifier- Returns:
- command result
-