public class RealtimeIndexTask extends AbstractTask
| Modifier and Type | Class and Description |
|---|---|
static class |
RealtimeIndexTask.TaskActionSegmentPublisher |
| Constructor and Description |
|---|
RealtimeIndexTask(String id,
TaskResource taskResource,
FireDepartment fireDepartment) |
| Modifier and Type | Method and Description |
|---|---|
String |
getNodeType()
Get the nodeType for if/when this task publishes on zookeeper.
|
<T> QueryRunner<T> |
getQueryRunner(Query<T> query)
Returns query runners for this task.
|
FireDepartment |
getRealtimeIngestionSchema() |
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, getTaskLocks, getTaskResource, hashCode, joinId, success, toStringpublic RealtimeIndexTask(String id, TaskResource taskResource, FireDepartment fireDepartment)
public String getType()
Taskpublic String getNodeType()
TaskgetNodeType in interface TaskgetNodeType in class AbstractTaskpublic <T> QueryRunner<T> getQueryRunner(Query<T> query)
TaskgetQueryRunner in interface TaskgetQueryRunner in class AbstractTaskT - query result typepublic 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 FireDepartment getRealtimeIngestionSchema()
Copyright © 2015. All rights reserved.