public class Checkpointer extends org.elasticsearch.common.component.AbstractLifecycleComponent<Checkpointer>
| Constructor and Description |
|---|
Checkpointer(org.elasticsearch.common.settings.Settings settings,
org.elasticsearch.client.Client client) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkpoint(String id)
Checkpointing a topic or a subscriber.
|
Long |
checkpointedAt(String id) |
void |
deleteBulk(org.elasticsearch.action.delete.DeleteRequest request,
InteractiveChannel channel)
Perform bulk delete
|
protected void |
doClose() |
protected void |
doStart() |
protected void |
doStop() |
void |
flushBulk(InteractiveChannel channel)
Flush bulk
|
void |
flushCheckpoint() |
void |
indexBulk(org.elasticsearch.action.index.IndexRequest request,
InteractiveChannel channel)
Perform bulk indexing
|
@Inject public Checkpointer(org.elasticsearch.common.settings.Settings settings, org.elasticsearch.client.Client client)
protected void doStart() throws org.elasticsearch.ElasticsearchException
doStart in class org.elasticsearch.common.component.AbstractLifecycleComponent<Checkpointer>org.elasticsearch.ElasticsearchExceptionprotected void doStop() throws org.elasticsearch.ElasticsearchException
doStop in class org.elasticsearch.common.component.AbstractLifecycleComponent<Checkpointer>org.elasticsearch.ElasticsearchExceptionprotected void doClose() throws org.elasticsearch.ElasticsearchException
doClose in class org.elasticsearch.common.component.AbstractLifecycleComponent<Checkpointer>org.elasticsearch.ElasticsearchExceptionpublic void checkpoint(String id) throws IOException
id - topic or subscriberIOExceptionpublic void flushCheckpoint() throws IOException
IOExceptionpublic Long checkpointedAt(String id) throws IOException
IOExceptionpublic void indexBulk(org.elasticsearch.action.index.IndexRequest request, InteractiveChannel channel) throws IOException
request - the index requestchannel - the interactive channelIOExceptionpublic void deleteBulk(org.elasticsearch.action.delete.DeleteRequest request, InteractiveChannel channel) throws IOException
request - the delete requestchannel - the interactive channelIOExceptionpublic void flushBulk(InteractiveChannel channel) throws IOException
channel - the interactive channelIOExceptionCopyright © 2012–2014. All rights reserved.