Class ElasticSearchDelete
- java.lang.Object
-
- org.apache.manifoldcf.agents.output.elasticsearch.ElasticSearchConnection
-
- org.apache.manifoldcf.agents.output.elasticsearch.ElasticSearchDelete
-
public class ElasticSearchDelete extends ElasticSearchConnection
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.manifoldcf.agents.output.elasticsearch.ElasticSearchConnection
ElasticSearchConnection.CallThread, ElasticSearchConnection.Result
-
-
Field Summary
-
Fields inherited from class org.apache.manifoldcf.agents.output.elasticsearch.ElasticSearchConnection
config, jsonException
-
-
Constructor Summary
Constructors Constructor Description ElasticSearchDelete(org.apache.http.client.HttpClient client, ElasticSearchConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(java.lang.String documentURI)protected booleanhandleResultCode(int code, java.lang.String response)-
Methods inherited from class org.apache.manifoldcf.agents.output.elasticsearch.ElasticSearchConnection
call, checkJson, getApiUrl, getCallUrlSnippet, getResponse, getResult, getResultCode, getResultDescription, handleHttpException, handleIOException, setResult, setResultCode
-
-
-
-
Constructor Detail
-
ElasticSearchDelete
public ElasticSearchDelete(org.apache.http.client.HttpClient client, ElasticSearchConfig config)
-
-
Method Detail
-
execute
public void execute(java.lang.String documentURI) throws org.apache.manifoldcf.core.interfaces.ManifoldCFException, org.apache.manifoldcf.agents.interfaces.ServiceInterruption- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruption
-
handleResultCode
protected boolean handleResultCode(int code, java.lang.String response) throws org.apache.manifoldcf.core.interfaces.ManifoldCFException, org.apache.manifoldcf.agents.interfaces.ServiceInterruption- Overrides:
handleResultCodein classElasticSearchConnection- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruption
-
-