public class HttpLatencyDetector extends AbstractEnricher implements Enricher
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.AdjunctTagSupportBrooklynObject.TagSupportConfigurable.ConfigurationSupportBrooklynObjectInternal.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, getRebindSupportconfig, configure, getConfig, getConfigMap, getDisplayName, getUniqueTag, isDestroyed, isRunning, setConfig, setDisplayName, subscribe, subscribeToChildren, subscribeToMembers, tags, toString, unsubscribe, unsubscribegetCatalogItemId, getId, getManagementContext, init, rebind, setCatalogItemId, setManagementContextequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetConfig, getEnricherType, getId, getRebindSupport, setConfiggetUniqueTag, isDestroyed, isRunninggetCatalogItemId, getDisplayName, tagsconfigsetCatalogItemIdpublic 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 AbstractEnricherpublic void updateEnablement()
public void destroy()
AbstractEntityAdjunctdestroy in class AbstractEntityAdjunctpublic static HttpLatencyDetector.Builder builder()