public class KafkaIndexTaskClient extends Object
Modifier and Type | Class and Description |
---|---|
class |
KafkaIndexTaskClient.NoTaskLocationException |
class |
KafkaIndexTaskClient.TaskNotRunnableException |
Constructor and Description |
---|
KafkaIndexTaskClient(com.metamx.http.client.HttpClient httpClient,
com.fasterxml.jackson.databind.ObjectMapper jsonMapper,
TaskInfoProvider taskInfoProvider) |
Modifier and Type | Method and Description |
---|---|
Map<Integer,Long> |
getCurrentOffsets(String id,
boolean retry) |
Map<Integer,Long> |
getEndOffsets(String id) |
org.joda.time.DateTime |
getStartTime(String id,
boolean retry) |
KafkaIndexTask.Status |
getStatus(String id) |
Map<Integer,Long> |
pause(String id) |
Map<Integer,Long> |
pause(String id,
long timeout) |
void |
resume(String id) |
void |
setEndOffsets(String id,
Map<Integer,Long> endOffsets) |
void |
setEndOffsets(String id,
Map<Integer,Long> endOffsets,
boolean resume) |
void |
stop(String id,
boolean publish) |
public KafkaIndexTaskClient(com.metamx.http.client.HttpClient httpClient, com.fasterxml.jackson.databind.ObjectMapper jsonMapper, TaskInfoProvider taskInfoProvider)
public void stop(String id, boolean publish)
public void resume(String id)
public KafkaIndexTask.Status getStatus(String id)
public org.joda.time.DateTime getStartTime(String id, boolean retry)
Copyright © 2011–2016. All rights reserved.