public class InputService
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected com.ning.http.client.AsyncHttpClient |
httpclient |
protected com.fasterxml.jackson.databind.ObjectMapper |
mapper |
protected java.net.URI |
serverUrl |
| Constructor and Description |
|---|
InputService(com.ning.http.client.AsyncHttpClient httpclient,
java.net.URI serverUrl,
ServerStatus serverStatus) |
| Modifier and Type | Method and Description |
|---|---|
InputSummaryResponse |
getPersistedInput(java.lang.String inputId) |
java.util.List<InputSummaryResponse> |
getPersistedInputs() |
RegisterInputResponse |
registerInCluster(MessageInput input) |
void |
unregisterInCluster(MessageInput input) |
protected final com.fasterxml.jackson.databind.ObjectMapper mapper
protected final com.ning.http.client.AsyncHttpClient httpclient
protected final java.net.URI serverUrl
@Inject
public InputService(com.ning.http.client.AsyncHttpClient httpclient,
@Named(value="graylog2_server_uri")
java.net.URI serverUrl,
ServerStatus serverStatus)
public java.util.List<InputSummaryResponse> getPersistedInputs() throws java.io.IOException
java.io.IOExceptionpublic InputSummaryResponse getPersistedInput(java.lang.String inputId) throws java.io.IOException
java.io.IOExceptionpublic RegisterInputResponse registerInCluster(MessageInput input) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException, java.io.IOException
java.util.concurrent.ExecutionExceptionjava.lang.InterruptedExceptionjava.io.IOExceptionpublic void unregisterInCluster(MessageInput input) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException, java.io.IOException
java.util.concurrent.ExecutionExceptionjava.lang.InterruptedExceptionjava.io.IOExceptionCopyright © 2012-2015 Graylog, Inc.. All Rights Reserved.