com.ibm.wsspi.monitoring

Interface EventSource

All Superinterfaces:
com.ibm.wsspi.monitoring.metadata.EventSource, WellKnownEventNatures

  1. public interface EventSource
  2. extends com.ibm.wsspi.monitoring.metadata.EventSource, WellKnownEventNatures
An event source represents a monitoarable element kind of a WBI component. Examples are: a map, an adaptive entity timer, etc...

See Also:

Each monitorable element defines an event source, each event source defines a set of component-element specific event points.

Examples for event points are ENTER, EXIT, FAILURE

An event source object is used to retrieve event points to fire monitoring events or plain loggers to trace diagnosis or other messages.


Field Summary

Modifier and Type Field and Description
  1. static
  2. java.lang.String
COPYRIGHT
Fields inherited from interface com.ibm.wsspi.monitoring.metadata.EventSource
P_AUDIT, P_CEI, P_PERSISTENT, P_QUERYABLE
Fields inherited from interface com.ibm.wsspi.monitoring.WellKnownEventNatures
ENTRY, EXIT, FAILED, FAILURE

Method Summary

Modifier and Type Method and Description
  1. EventPoint
getEventPoint(java.lang.String eventPointName)
Factory method, creates an EventPoint for the monitored element represented by the event point.
  1. EventSourceContext
getEventSourceContext()
  1. java.util.logging.Logger
getLogger()
Returns the logger named using the component-type, component, element-kind, element-name tupel
  1. java.lang.Object
getPmiHandler()
  1. boolean
isOverridingDefaults()
Methods inherited from interface com.ibm.wsspi.monitoring.metadata.EventSource
getElementKindName, getElementName, getEventNatureArray, getMonitoringSpec, getName, getProperties, hasProperty

Field Detail

  1. static final java.lang.String COPYRIGHT
See Also:

Method Detail

getEventPoint

  1. EventPoint getEventPoint(java.lang.String eventPointName)
Factory method, creates an EventPoint for the monitored element represented by the event point.
Parameters:
eventPointName - a valid event nature for this
Returns:
the event point specified by the name

getLogger

  1. java.util.logging.Logger getLogger( )
Returns the logger named using the component-type, component, element-kind, element-name tupel
Returns:
the logger associated with this event source

isOverridingDefaults

  1. boolean isOverridingDefaults()
Returns:
true if this event source publishes events to other targets (log, cei) or different payload levels then specified as default in the corresponding .mes file (@see EventSourceContext)

getEventSourceContext

  1. EventSourceContext getEventSourceContext( )
Returns:
the event source context from which this event source is created

getPmiHandler

  1. java.lang.Object getPmiHandler( )
Returns:
performance monitor handler to report stats for this event source