public class HTTPAlarmCallback extends java.lang.Object implements AlarmCallback
| Constructor and Description |
|---|
HTTPAlarmCallback(com.ning.http.client.AsyncHttpClient asyncHttpClient,
com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
| Modifier and Type | Method and Description |
|---|---|
void |
call(Stream stream,
AlertCondition.CheckResult result) |
void |
checkConfiguration() |
java.util.Map<java.lang.String,java.lang.Object> |
getAttributes() |
java.lang.String |
getName() |
ConfigurationRequest |
getRequestedConfiguration() |
void |
initialize(Configuration config) |
@Inject
public HTTPAlarmCallback(com.ning.http.client.AsyncHttpClient asyncHttpClient,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
public void initialize(Configuration config) throws AlarmCallbackConfigurationException
initialize in interface AlarmCallbackAlarmCallbackConfigurationExceptionpublic void call(Stream stream, AlertCondition.CheckResult result) throws AlarmCallbackException
call in interface AlarmCallbackAlarmCallbackExceptionpublic ConfigurationRequest getRequestedConfiguration()
getRequestedConfiguration in interface AlarmCallbackpublic java.lang.String getName()
getName in interface AlarmCallbackpublic java.util.Map<java.lang.String,java.lang.Object> getAttributes()
getAttributes in interface AlarmCallbackpublic void checkConfiguration()
throws ConfigurationException
checkConfiguration in interface AlarmCallbackConfigurationExceptionCopyright © 2012-2014 TORCH GmbH. All Rights Reserved.