public class NoopTask extends AbstractTask
| Constructor and Description | 
|---|
NoopTask(String id,
        String dataSource,
        long runTime,
        long isReadyTime,
        String isReadyResult,
        FirehoseFactory firehoseFactory,
        Map<String,Object> context)  | 
| Modifier and Type | Method and Description | 
|---|---|
static NoopTask | 
create()  | 
static NoopTask | 
create(int priority)  | 
static NoopTask | 
create(String dataSource)  | 
static NoopTask | 
create(String id,
      int priority)  | 
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. 
 | 
canRestore, equals, getClasspathPrefix, getContext, getDataSource, getGroupId, getId, getNodeType, getQueryRunner, getTaskResource, hashCode, stopGracefully, success, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetContextValue, getContextValue, getPrioritypublic String getType()
Taskpublic long getRunTime()
public long getIsReadyTime()
public io.druid.indexing.common.task.NoopTask.IsReadyResult getIsReadyResult()
public FirehoseFactory getFirehoseFactory()
public boolean isReady(TaskActionClient taskActionClient) throws Exception
TasktaskActionClient - action client for this task (not the full toolbox)Exception - if the task should be considered a failurepublic TaskStatus run(TaskToolbox toolbox) throws Exception
Tasktoolbox - Toolbox for this taskException - if this task failedpublic static NoopTask create()
public static NoopTask create(int priority)
Copyright © 2011–2018. All rights reserved.