public class HttpPollConfig<T> extends PollConfig<HttpToolResponse,T,HttpPollConfig<T>>
Modifier and Type | Field and Description |
---|---|
static com.google.common.base.Predicate<HttpToolResponse> |
DEFAULT_SUCCESS |
NO_SENSOR, REMOVE, UNCHANGED, UNSET
Constructor and Description |
---|
HttpPollConfig(AttributeSensor<T> sensor) |
HttpPollConfig(HttpPollConfig<T> other) |
Modifier and Type | Method and Description |
---|---|
HttpPollConfig<T> |
body(byte[] val) |
java.util.Map<java.lang.String,java.lang.String> |
buildHeaders(java.util.Map<java.lang.String,java.lang.String> baseHeaders) |
java.net.URI |
buildUri(java.net.URI baseUri,
java.util.Map<java.lang.String,java.lang.String> baseUriVars) |
HttpPollConfig<T> |
connectionTimeout(Duration val) |
static HttpPollConfig<java.lang.Void> |
forMultiple() |
static <T> HttpPollConfig<T> |
forSensor(AttributeSensor<T> sensor) |
byte[] |
getBody() |
Duration |
getConnectionTimeout() |
java.lang.String |
getMethod() |
Duration |
getSocketTimeout() |
java.lang.String |
getSuburl() |
java.util.Map<java.lang.String,java.lang.String> |
getVars() |
HttpPollConfig<T> |
headers(java.util.Map<java.lang.String,java.lang.String> val) |
HttpPollConfig<T> |
method(java.lang.String val) |
HttpPollConfig<T> |
socketTimeout(Duration val) |
HttpPollConfig<T> |
suburl(java.lang.String val) |
HttpPollConfig<T> |
vars(java.util.Map<java.lang.String,java.lang.String> val) |
description, getDescription, getPeriod, period, period, period
checkSuccess, checkSuccess, equals, getCheckSuccess, getOnException, getOnFailure, getOnSuccess, getSensor, hasCheckSuccessHandler, hasExceptionHandler, hasFailureHandler, hashCode, hasSuccessHandler, onException, onFailure, onFailureOrException, onResult, onSuccess, setOnException, setOnFailure, setOnFailureOrException, setOnResult, setOnSuccess, toString
public static final com.google.common.base.Predicate<HttpToolResponse> DEFAULT_SUCCESS
public HttpPollConfig(AttributeSensor<T> sensor)
public HttpPollConfig(HttpPollConfig<T> other)
public static <T> HttpPollConfig<T> forSensor(AttributeSensor<T> sensor)
public static HttpPollConfig<java.lang.Void> forMultiple()
public java.lang.String getSuburl()
public java.util.Map<java.lang.String,java.lang.String> getVars()
public Duration getConnectionTimeout()
public Duration getSocketTimeout()
public java.lang.String getMethod()
public byte[] getBody()
public HttpPollConfig<T> method(java.lang.String val)
public HttpPollConfig<T> suburl(java.lang.String val)
public HttpPollConfig<T> vars(java.util.Map<java.lang.String,java.lang.String> val)
public HttpPollConfig<T> headers(java.util.Map<java.lang.String,java.lang.String> val)
public HttpPollConfig<T> body(byte[] val)
public HttpPollConfig<T> connectionTimeout(Duration val)
public HttpPollConfig<T> socketTimeout(Duration val)
public java.net.URI buildUri(java.net.URI baseUri, java.util.Map<java.lang.String,java.lang.String> baseUriVars)
public java.util.Map<java.lang.String,java.lang.String> buildHeaders(java.util.Map<java.lang.String,java.lang.String> baseHeaders)