public class NoopTask extends AbstractTask
Constructor and Description |
---|
NoopTask(String id,
long runTime,
long isReadyTime,
String isReadyResult,
io.druid.data.input.FirehoseFactory firehoseFactory) |
Modifier and Type | Method and Description |
---|---|
static NoopTask |
create() |
io.druid.data.input.FirehoseFactory |
getFirehoseFactory() |
io.druid.indexing.common.task.NoopTask.IsReadyResult |
getIsReadyResult() |
long |
getIsReadyTime() |
long |
getRunTime() |
String |
getType()
Returns a descriptive label for this task type.
|
boolean |
isReady(TaskActionClient taskActionClient)
Execute preflight actions for a task.
|
TaskStatus |
run(TaskToolbox toolbox)
Execute a task.
|
equals, getClasspathPrefix, getDataSource, getGroupId, getId, getNodeType, getQueryRunner, getTaskLocks, getTaskResource, hashCode, joinId, makeId, success, toString
public String getType()
Task
public long getRunTime()
public long getIsReadyTime()
public io.druid.indexing.common.task.NoopTask.IsReadyResult getIsReadyResult()
public io.druid.data.input.FirehoseFactory getFirehoseFactory()
public boolean isReady(TaskActionClient taskActionClient) throws Exception
Task
taskActionClient
- action client for this task (not the full toolbox)Exception
- if the task should be considered a failurepublic TaskStatus run(TaskToolbox toolbox) throws Exception
Task
toolbox
- Toolbox for this taskException
- if this task failedpublic static NoopTask create()
Copyright © 2011–2015. All rights reserved.