|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The Monitor service allows one to monitor the throughput and latency of Event Server application endpoints. An Event Server endpoint is either the entry or the exit point in an application stage. Clients can register at the Monitor service to receive events in the form of a MetricEvent that indicate the throughput and the latency metric of an endpoint as defined by the interval parameter. Even though the monitoring activities are processed separately from the application events, monitoring still adds some overhead to the system, hence it is disabled by default. To enable monitoring of an stage, a stage must be marked as 'manageable' in the application assembly and then it can be dynamically enabled or disabled for monitoring through the configuration system.
Endpoint
,
Stage
,
MetricEvent
Field Summary | |
static java.lang.String |
CONTROL_STREAM_FILTER
|
static java.lang.String |
CONTROL_STREAM_ID
|
static java.lang.String |
SERVICE_FILTER
|
static java.lang.String |
SERVICE_ID
|
static java.lang.String |
STREAM_FILTER
|
static java.lang.String |
STREAM_ID
|
static java.util.concurrent.TimeUnit |
TIME_UNIT
|
Method Summary | |
Endpoint |
createEndpoint(java.lang.String applicationId,
java.lang.String stageId,
Endpoint.Direction stagepoint)
Returns endpoint that represents a 'place' in the Event Server that can be monitored. |
boolean |
isEnabled()
Returns if the Monitor service is enabled. |
Statement |
monitorAvgLatency(Endpoint start,
Endpoint end,
long averageInterval,
java.util.concurrent.TimeUnit unit)
Monitor the average latency of events between two endpoints. |
java.lang.String |
monitorAvgLatency(Endpoint start,
Endpoint end,
long averageInterval,
java.util.concurrent.TimeUnit unit,
EventSink listener)
Monitor the average latency of events between two endpoints. |
Statement |
monitorAvgLatencyThreshold(Endpoint start,
Endpoint end,
long averageInterval,
long threshold,
java.util.concurrent.TimeUnit unit)
Monitor if the average latency of events between two endpoints cross a threshold. |
java.lang.String |
monitorAvgLatencyThreshold(Endpoint start,
Endpoint end,
long averageInterval,
long threshold,
java.util.concurrent.TimeUnit unit,
EventSink listener)
Monitor if the average latency of events between two endpoints cross a threshold. |
Statement |
monitorAvgThroughput(Endpoint endpoint,
long throughputInterval,
long averageInterval,
java.util.concurrent.TimeUnit unit)
Monitor the average throughput of events in an endpoint. |
java.lang.String |
monitorAvgThroughput(Endpoint endpoint,
long throughputInterval,
long averageInterval,
java.util.concurrent.TimeUnit unit,
EventSink listener)
Monitor the average throughput of events in an endpoint. |
Statement |
monitorMaxLatency(Endpoint start,
Endpoint end,
long maxInterval,
java.util.concurrent.TimeUnit unit)
Monitor the maximum latency of events between two endpoints. |
java.lang.String |
monitorMaxLatency(Endpoint start,
Endpoint end,
long averageInterval,
java.util.concurrent.TimeUnit unit,
EventSink listener)
Monitor the average latency of events between two endpoints. |
void |
setEnabled(boolean enabled)
Enables the Monitor service. |
void |
terminateAllMonitoring(Endpoint endpoint)
Terminates all monitoring activity for the specified Endpoint. |
Methods inherited from interface com.bea.wlevs.ede.api.EventSink |
onEvent |
Field Detail |
public static final java.util.concurrent.TimeUnit TIME_UNIT
public static final java.lang.String SERVICE_ID
public static final java.lang.String SERVICE_FILTER
public static final java.lang.String STREAM_ID
public static final java.lang.String STREAM_FILTER
public static final java.lang.String CONTROL_STREAM_ID
public static final java.lang.String CONTROL_STREAM_FILTER
Method Detail |
public void setEnabled(boolean enabled)
enabled
- public boolean isEnabled()
public Endpoint createEndpoint(java.lang.String applicationId, java.lang.String stageId, Endpoint.Direction stagepoint)
public Statement monitorAvgThroughput(Endpoint endpoint, long throughputInterval, long averageInterval, java.util.concurrent.TimeUnit unit)
endpoint
- - Endpoint end-point to be monitoredthroughputInterval
- - long throughput interval
defined in TimeUnit unitaverageInterval
- - long average interval
defined in TimeUnit unitunit
- - TimeUnit time unit for throughput and
average intervalpublic java.lang.String monitorAvgThroughput(Endpoint endpoint, long throughputInterval, long averageInterval, java.util.concurrent.TimeUnit unit, EventSink listener)
endpoint
- - Endpoint end-point to be monitoredthroughputInterval
- - long throughput interval
defined in TimeUnit unitaverageInterval
- - long average interval
defined in TimeUnit unitunit
- - TimeUnit time unit for throughput and
average intervallistener
- - EventSink listener of MetricEvents
that contain the average throughput metricpublic Statement monitorAvgLatency(Endpoint start, Endpoint end, long averageInterval, java.util.concurrent.TimeUnit unit)
start
- - Start end-point to be monitoredend
- - End end-point to be monitoredaverageInterval
- - long average interval
defined in TimeUnit unitunit
- - TimeUnit time unit for throughput and
average intervalpublic java.lang.String monitorAvgLatency(Endpoint start, Endpoint end, long averageInterval, java.util.concurrent.TimeUnit unit, EventSink listener)
start
- - Start end-point to be monitoredend
- - End end-point to be monitoredaverageInterval
- - long average interval
defined in TimeUnit unitunit
- - TimeUnit time unit for throughput and
average intervallistener
- - EventSink listener of MetricEvents
that contain the average latency metricpublic Statement monitorAvgLatencyThreshold(Endpoint start, Endpoint end, long averageInterval, long threshold, java.util.concurrent.TimeUnit unit)
start
- - Start end-point to be monitoredend
- - End end-point to be monitoredaverageInterval
- - long average interval
defined in TimeUnit unitthreshold
- - long latency threshold used to emit
MetricEvents when crossedunit
- - TimeUnit time unit for throughput and
average intervalpublic java.lang.String monitorAvgLatencyThreshold(Endpoint start, Endpoint end, long averageInterval, long threshold, java.util.concurrent.TimeUnit unit, EventSink listener)
start
- - Start end-point to be monitoredend
- - End end-point to be monitoredaverageInterval
- - long average interval
defined in TimeUnit unitthreshold
- - long latency threshold used to emit
MetricEvents when crossedlistener
- - EventSink listener of MetricEvents
that contain the average throughput metricunit
- - TimeUnit time unit for throughput and
average intervalpublic Statement monitorMaxLatency(Endpoint start, Endpoint end, long maxInterval, java.util.concurrent.TimeUnit unit)
start
- - Start end-point to be monitoredend
- - End end-point to be monitored
defined in TimeUnit unitunit
- - TimeUnit time unit for throughput and
average intervalpublic java.lang.String monitorMaxLatency(Endpoint start, Endpoint end, long averageInterval, java.util.concurrent.TimeUnit unit, EventSink listener)
start
- - Start end-point to be monitoredend
- - End end-point to be monitoredaverageInterval
- - long average interval
defined in TimeUnit unitunit
- - TimeUnit time unit for throughput and
average intervallistener
- - EventSink listener of MetricEvents
that contain the average latency metricpublic void terminateAllMonitoring(Endpoint endpoint)
endpoint
- The Endpoint
for which monitoring activities must be stopped.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |