IndexingTaskDruidJobWatcher

Extends \PhpDruidIngest\DruidJobWatcher\BasicDruidJobWatcher

package

Default

Methods

constructQueryExecutor

constructQueryExecutor( $jobId) : \DruidFamiliar\QueryExecutor\DruidNodeDruidQueryExecutor

constructQueryGenerator

constructQueryGenerator() : \PhpDruidIngest\QueryGenerator\IndexingTaskStatusQueryGenerator

constructQueryParameters

constructQueryParameters() : \PhpDruidIngest\QueryParameters\IndexingTaskStatusQueryParameters

constructQueryResponseHandler

constructQueryResponseHandler() : \PhpDruidIngest\ResponseHandler\IndexingTaskStatusResponseHandler

Wait to retry watching for a pending job.

doWait( $waitDelay) 
throws

Arguments

$waitDelay

getDruidIp

getDruidIp() : mixed

Response

mixed

getDruidPort

getDruidPort() : mixed

Response

mixed

getOutput

getOutput() : \Psr\Log\LoggerInterface

Response

\Psr\Log\LoggerInterface

getProtocol

getProtocol() : string

Response

string

getWatchAttempts

getWatchAttempts() : integer

Response

integer

handleTaskStatus

handleTaskStatus(\PhpDruidIngest\QueryResponse\IndexingTaskStatusQueryResponse $response) : boolean
throws

Arguments

Response

boolean

Called when a job's status moves to Completed state.

onJobCompleted() : mixed
inherited

Response

mixed

Called when a job's status moves to a Failed state.

onJobFailed() : mixed
inherited

Response

mixed

Called when a job's status is still in a Running/Pending state after watching period ends.

onJobPending() : mixed
inherited

Response

mixed

Reset watch attempts.

resetWatchAttempts() 

setDruidIp

setDruidIp(mixed $druidIp) 

Arguments

$druidIp

mixed

setDruidPort

setDruidPort(mixed $druidPort) 

Arguments

$druidPort

mixed

setOutput

setOutput(\Psr\Log\LoggerInterface $output) 

Arguments

$output

\Psr\Log\LoggerInterface

setProtocol

setProtocol(string $protocol) 

Arguments

$protocol

string

If a job watching can be cancelled, call this to cancel.

stopWatchingJob() : mixed
inherited

Response

mixed

Begin watching given job id.

watchJob(string $jobId) : mixed
inherited

Calls either onJobCompleted or onJobFailed unless stopWatchingJob is called first. If given job is already completed or failed, the appropriate callback will be called.

Arguments

$jobId

string

Response

mixed

Properties

output

output : \Psr\Log\LoggerInterface
var

Type(s)

\Psr\Log\LoggerInterface

druidIp

druidIp : 

Type(s)

druidPort

druidPort : 

Type(s)

protocol

protocol : 

Type(s)

druidPath

druidPath : 

Type(s)

druidPathAction

druidPathAction : 

Type(s)

The current number of watch attempts for the currently running job

watchAttempts : integer
var

Type(s)

integer

Maximum number of times will attempt to check a status before giving up

maximumWatchAttempts : integer
var

Type(s)

integer

Delay between task status polling checks.

watchAttemptDelay : integer
var

seconds waited between polling

Type(s)

integer

Druid Indexing Task Job Id

watchingJobId : string
inherited
var

Type(s)

string