public class HttpLatencyDetector extends AbstractEnricher
builder()
this exposes.
This is currently tested against relatively simple GET requests, optionally returned from sensors. It does not currently support POST and has limited support for https.
Modifier and Type | Class and Description |
---|---|
static class |
HttpLatencyDetector.Builder |
AbstractEntityAdjunct.AdjunctTagSupport
BrooklynObject.TagSupport
Configurable.ConfigurationSupport
BrooklynObjectInternal.ConfigurationSupportInternal
Modifier and Type | Field and Description |
---|---|
static Duration |
LATENCY_WINDOW_DEFAULT_PERIOD |
static ConfigKey<Duration> |
PERIOD |
static AttributeSensor<java.lang.Double> |
REQUEST_LATENCY_IN_SECONDS_IN_WINDOW |
static AttributeSensor<java.lang.Double> |
REQUEST_LATENCY_IN_SECONDS_MOST_RECENT |
static ConfigKey<java.lang.Boolean> |
REQUIRE_SERVICE_UP |
static ConfigKey<Duration> |
ROLLUP_WINDOW_SIZE |
static ConfigKey<?> |
URL |
static ConfigKey<com.google.common.base.Function<java.lang.String,java.lang.String>> |
URL_POST_PROCESSING |
static ConfigKey<AttributeSensor<?>> |
URL_SENSOR |
SUPPRESS_DUPLICATES
Constructor and Description |
---|
HttpLatencyDetector() |
Modifier and Type | Method and Description |
---|---|
static HttpLatencyDetector.Builder |
builder() |
void |
destroy()
Unsubscribes and clears all managed subscriptions; is called by the owning entity when a policy is removed
and should always be called by any subclasses overriding this method
|
void |
setEntity(EntityLocal entity) |
void |
updateEnablement()
refreshes whether the latency detection feed should be enabled,
based on e.g.
|
getEnricherType, getRebindSupport
config, configure, getAllConfig, getConfig, getConfigMap, getDisplayName, getName, getUniqueTag, isDestroyed, isRunning, setConfig, setDisplayName, setName, tags, toString
getCatalogItemId, getId, getManagementContext, getTagSupport, init, rebind, setCatalogItemId, setManagementContext
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAllConfig, getConfig, getId, getName, setConfig
getUniqueTag, isDestroyed, isRunning
getCatalogItemId, getDisplayName, getTagSupport, tags
config
setCatalogItemId
public static final Duration LATENCY_WINDOW_DEFAULT_PERIOD
public static final ConfigKey<?> URL
public static final ConfigKey<AttributeSensor<?>> URL_SENSOR
public static final ConfigKey<com.google.common.base.Function<java.lang.String,java.lang.String>> URL_POST_PROCESSING
public static final ConfigKey<java.lang.Boolean> REQUIRE_SERVICE_UP
public static final AttributeSensor<java.lang.Double> REQUEST_LATENCY_IN_SECONDS_MOST_RECENT
public static final AttributeSensor<java.lang.Double> REQUEST_LATENCY_IN_SECONDS_IN_WINDOW
public void setEntity(EntityLocal entity)
setEntity
in class AbstractEnricher
public void updateEnablement()
public void destroy()
AbstractEntityAdjunct
destroy
in class AbstractEntityAdjunct
public static HttpLatencyDetector.Builder builder()