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, makeId, success, toString
public RealtimeIndexTask(String id, TaskResource taskResource, FireDepartment fireDepartment)
public String getType()
Task
public String getNodeType()
Task
getNodeType
in interface Task
getNodeType
in class AbstractTask
public <T> QueryRunner<T> getQueryRunner(Query<T> query)
Task
getQueryRunner
in interface Task
getQueryRunner
in class AbstractTask
T
- query result typepublic 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 FireDepartment getRealtimeIngestionSchema()
Copyright © 2011–2015. All rights reserved.