Package com.splunk.logging
Class HttpEventCollectorErrorHandler
java.lang.Object
com.splunk.logging.HttpEventCollectorErrorHandler
public class HttpEventCollectorErrorHandler extends Object
Splunk http event collector error handler.
A user application can utilize HttpEventCollectorErrorHandler in order to detect errors
caused by network connection and/or Splunk server.
Usage example:
HttpEventCollectorErrorHandler.onError(new HttpEventErrorHandler.ErrorCallback() {
public void error(final String data, final Exception ex) { handle exception }
});
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
HttpEventCollectorErrorHandler.ErrorCallback
static class
HttpEventCollectorErrorHandler.ServerErrorException
This exception is passed to error callback when Splunk server replies an error -
Constructor Summary
Constructors Constructor Description HttpEventCollectorErrorHandler()
-
Method Summary
Modifier and Type Method Description static void
error(List<HttpEventCollectorEventInfo> data, Exception ex)
Report an exceptionstatic void
onError(HttpEventCollectorErrorHandler.ErrorCallback callback)
Register error callbacks
-
Constructor Details
-
HttpEventCollectorErrorHandler
public HttpEventCollectorErrorHandler()
-
-
Method Details