Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public AbstractElasticsearchPublisher(Context context, ErrorReporter errorReport
this.propertySerializer = new PropertySerializer();
}

private static ElasticsearchOutputAggregator configureOutputAggregator(Settings settings, ErrorReporter errorReporter, HttpRequestHeaders httpRequestHeaders) {
protected ElasticsearchOutputAggregator configureOutputAggregator(Settings settings, ErrorReporter errorReporter, HttpRequestHeaders httpRequestHeaders) {
ElasticsearchOutputAggregator spigot = new ElasticsearchOutputAggregator(settings, errorReporter);

if (settings.isLogsToStderr()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public boolean hasPendingData() {
return sendBuffer.length() != 0;
}

private static String slurpErrors(HttpURLConnection urlConnection) {
protected String slurpErrors(HttpURLConnection urlConnection) {
try {
InputStream stream = urlConnection.getErrorStream();
if (stream == null) {
Expand All @@ -117,4 +117,30 @@ private static String slurpErrors(HttpURLConnection urlConnection) {
}
}

public StringBuilder getSendBuffer() {
return sendBuffer;
}

public Settings getSettings() {
return settings;
}

public Collection<HttpRequestHeader> getHeaderList() {
return headerList;
}

public ErrorReporter getErrorReporter() {
return errorReporter;
}

public boolean isBufferExceeded() {
return bufferExceeded;
}

public void setBufferExceeded(boolean bufferExceeded) {
this.bufferExceeded = bufferExceeded;
}



}