public class InputService extends Object
| Modifier and Type | Field and Description |
|---|---|
protected com.ning.http.client.AsyncHttpClient |
httpclient |
protected com.fasterxml.jackson.databind.ObjectMapper |
mapper |
protected URI |
serverUrl |
| Constructor and Description |
|---|
InputService(com.ning.http.client.AsyncHttpClient httpclient,
URI serverUrl,
ServerStatus serverStatus) |
| Modifier and Type | Method and Description |
|---|---|
InputSummaryResponse |
getPersistedInput(String inputId) |
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 URI serverUrl
@Inject
public InputService(com.ning.http.client.AsyncHttpClient httpclient,
@Named(value="ServerUri")
URI serverUrl,
ServerStatus serverStatus)
public List<InputSummaryResponse> getPersistedInputs() throws IOException
IOExceptionpublic InputSummaryResponse getPersistedInput(String inputId) throws IOException
IOExceptionpublic RegisterInputResponse registerInCluster(MessageInput input) throws ExecutionException, InterruptedException, IOException
public void unregisterInCluster(MessageInput input) throws ExecutionException, InterruptedException, IOException
Copyright © 2012–2014 TORCH GmbH. All rights reserved.