public interface JobService
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.JsonNode |
findStepResponses(com.fasterxml.jackson.databind.JsonNode endpointConstants) |
com.fasterxml.jackson.databind.JsonNode |
finishJob(java.lang.String jobId,
java.lang.String jobStatus)
Updated the Job document associated with jobId with the given jobStatus
|
com.fasterxml.jackson.databind.JsonNode |
finishStep(java.lang.String jobId,
java.lang.String stepNumber,
java.lang.String stepStatus,
com.fasterxml.jackson.databind.JsonNode runStepResponse)
Updates the associated Job document after all batches have been processed for a step
|
com.fasterxml.jackson.databind.JsonNode |
getJob(java.lang.String jobId)
Get the Job document associated with the given job ID
|
com.fasterxml.jackson.databind.JsonNode |
getJobWithDetails(java.lang.String jobId)
Get the Job document associated with the given job ID and additional metadata
|
com.fasterxml.jackson.databind.JsonNode |
getMatchingPropertyValues(com.fasterxml.jackson.databind.JsonNode facetValuesSearchQuery)
Invokes the getMatchingPropertyValues operation on the database server
|
static JobService |
on(com.marklogic.client.DatabaseClient db)
Creates a JobService object for executing operations on the database server.
|
static JobService |
on(com.marklogic.client.DatabaseClient db,
com.marklogic.client.io.marker.JSONWriteHandle serviceDeclaration)
Creates a JobService object for executing operations on the database server.
|
com.fasterxml.jackson.databind.JsonNode |
startJob(java.lang.String jobId,
java.lang.String flowName)
Start a new job for the given flowName by creating a new Job document
|
com.fasterxml.jackson.databind.JsonNode |
startStep(java.lang.String jobId,
java.lang.String stepNumber,
java.lang.String flowName,
com.fasterxml.jackson.databind.JsonNode runTimeOptions)
Updates the Job document associated with the given jobId to note that the step has been started
|
static JobService on(com.marklogic.client.DatabaseClient db)
db
- provides a client for communicating with the database serverstatic JobService on(com.marklogic.client.DatabaseClient db, com.marklogic.client.io.marker.JSONWriteHandle serviceDeclaration)
db
- provides a client for communicating with the database serverserviceDeclaration
- substitutes a custom implementation of the servicecom.fasterxml.jackson.databind.JsonNode startStep(java.lang.String jobId, java.lang.String stepNumber, java.lang.String flowName, com.fasterxml.jackson.databind.JsonNode runTimeOptions)
jobId
- provides inputstepNumber
- provides inputflowName
- provides inputrunTimeOptions
- provides inputcom.fasterxml.jackson.databind.JsonNode finishStep(java.lang.String jobId, java.lang.String stepNumber, java.lang.String stepStatus, com.fasterxml.jackson.databind.JsonNode runStepResponse)
jobId
- provides inputstepNumber
- provides inputstepStatus
- provides inputrunStepResponse
- provides inputcom.fasterxml.jackson.databind.JsonNode getJob(java.lang.String jobId)
jobId
- provides inputcom.fasterxml.jackson.databind.JsonNode startJob(java.lang.String jobId, java.lang.String flowName)
jobId
- provides inputflowName
- provides inputcom.fasterxml.jackson.databind.JsonNode getJobWithDetails(java.lang.String jobId)
jobId
- provides inputcom.fasterxml.jackson.databind.JsonNode getMatchingPropertyValues(com.fasterxml.jackson.databind.JsonNode facetValuesSearchQuery)
facetValuesSearchQuery
- provides inputcom.fasterxml.jackson.databind.JsonNode finishJob(java.lang.String jobId, java.lang.String jobStatus)
jobId
- provides inputjobStatus
- provides inputcom.fasterxml.jackson.databind.JsonNode findStepResponses(com.fasterxml.jackson.databind.JsonNode endpointConstants)
endpointConstants
- provides input