public class QueryBatchException extends Exception implements QueryEvent
An exception which occurred when attempting to retrieve a batch of matches to a query.
| Constructor and Description |
|---|
QueryBatchException(QueryEvent queryEvent,
Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
QueryBatcher |
getBatcher()
The QueryBatcher assocated with this event–useful for modifying the
ForestConfiguration or calling DataMovementManager.stopJob(Batcher) if needed. |
DatabaseClient |
getClient()
The DatabaseClient used to retrieve this batch (if it’s a job based on a QueryDefinition).
|
Forest |
getForest()
The forest queried for this event if this job is based on a QueryDefinition.
|
long |
getForestBatchNumber()
Within the context of this forest within the job, the numeric position of this batch.
|
long |
getForestResultsSoFar()
Within the context of this forest within the job, the number of uris processed including the uris in this event if this is a QueryBatch.
|
long |
getJobBatchNumber()
Within the context of the job, the numeric position of this batch.
|
long |
getJobResultsSoFar()
Within the context of the job, the number of uris processed including the uris in this event if this is a QueryBatch.
|
JobTicket |
getJobTicket()
The ticket for this job.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic QueryBatchException(QueryEvent queryEvent, Throwable cause)
public QueryBatcher getBatcher()
The QueryBatcher assocated with this event–useful for modifying the ForestConfiguration or calling DataMovementManager.stopJob(Batcher) if needed.
getBatcher in interface QueryEventpublic DatabaseClient getClient()
The DatabaseClient used to retrieve this batch (if it’s a job based on a QueryDefinition). This is useful for performing additional operations on the same host. If this job is based on an Iterator this is just the DatabaseClient for the next host in the round-robin rotation.
getClient in interface QueryEventpublic long getJobBatchNumber()
Within the context of the job, the numeric position of this batch.
getJobBatchNumber in interface QueryEventpublic long getJobResultsSoFar()
Within the context of the job, the number of uris processed including the uris in this event if this is a QueryBatch.
getJobResultsSoFar in interface QueryEventpublic long getForestBatchNumber()
Within the context of this forest within the job, the numeric position of this batch.
getForestBatchNumber in interface QueryEventpublic long getForestResultsSoFar()
Within the context of this forest within the job, the number of uris processed including the uris in this event if this is a QueryBatch.
getForestResultsSoFar in interface QueryEventpublic Forest getForest()
The forest queried for this event if this job is based on a QueryDefinition. Returns null if this job is based on an Iterator.
getForest in interface QueryEventpublic JobTicket getJobTicket()
The ticket for this job. This can be useful for getting a snapshot getJobReport or for calling stopJob if needed.
getJobTicket in interface QueryEventCopyright © 2013-2017 MarkLogic Corporation.