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.ElasticsearchException
protected void doStop() throws org.elasticsearch.ElasticsearchException
doStop
in class org.elasticsearch.common.component.AbstractLifecycleComponent<Checkpointer>
org.elasticsearch.ElasticsearchException
protected void doClose() throws org.elasticsearch.ElasticsearchException
doClose
in class org.elasticsearch.common.component.AbstractLifecycleComponent<Checkpointer>
org.elasticsearch.ElasticsearchException
public void checkpoint(String id) throws IOException
id
- topic or subscriberIOException
public void flushCheckpoint() throws IOException
IOException
public Long checkpointedAt(String id) throws IOException
IOException
public void indexBulk(org.elasticsearch.action.index.IndexRequest request, InteractiveChannel channel) throws IOException
request
- the index requestchannel
- the interactive channelIOException
public void deleteBulk(org.elasticsearch.action.delete.DeleteRequest request, InteractiveChannel channel) throws IOException
request
- the delete requestchannel
- the interactive channelIOException
public void flushBulk(InteractiveChannel channel) throws IOException
channel
- the interactive channelIOException
Copyright © 2012–2014. All rights reserved.