public class ADCEventMonitor extends GenericService implements MessageSink
| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
CLASS_VERSION
Class version string 
 | 
protected java.util.Map | 
mBodyDataReporterMap
Map of bodyDataReporters keyed by ADC client name 
 | 
protected java.util.Map | 
mHeadDataReporterMap
Map of headDataReporters keyed by ADC client name 
 | 
protected static java.util.ResourceBundle | 
sResourceBundle
Resource Bundle 
 | 
SERVICE_INFO_KEYDEFAULT_LOG_TRACE_STATUSDEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS| Constructor and Description | 
|---|
ADCEventMonitor()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
doStartService()
This is called after a Service has been created, placed into the
 naming hierarchy, and initialized with its configured property
 values. 
 | 
protected ADCDataReporter[] | 
findDataReporter(java.util.Map pDataReporters,
                java.lang.String pClientName)
Locate the ADCDataReporter with the specified client name. 
 | 
protected java.util.Map | 
generateDataReporterMap(ADCDataReporter[] pDataReporters)
Construct a map version of an  
ADCDataReporter array
 using the data reporters' client names as keys. | 
ADCDataReporter[] | 
getBodyDataReporters()  | 
ADCRequestData | 
getCurrentRequestData()
Return the EventHolder associated with the current request. 
 | 
ADCDataReporter[] | 
getHeadDataReporters()  | 
java.lang.String | 
getRequestDataPath()  | 
java.lang.String | 
processADCData(ADCDataReporter[] pDataReporters)
Generate page content for the current request using the specified
 array of ADCDataReporters. 
 | 
java.lang.String | 
processBodyData()
Generate page content for the current request using the configured
 bodyDataReporters. 
 | 
java.lang.String | 
processBodyData(java.lang.String pClientName)
Generate page content for the current request using the
 bodyDataReporter configured for to specified ADC client. 
 | 
java.lang.String | 
processHeadData()
Generate page content for the current request using the configured
 headDataReporters. 
 | 
java.lang.String | 
processHeadData(java.lang.String pClientName)
Generate page content for the current request using the
 headDataReporter configured for to specified ADC client. 
 | 
void | 
receiveMessage(java.lang.String pPortName,
              javax.jms.Message pMessage)
For every event we receive, store it in the requestData component. 
 | 
void | 
setBodyDataReporters(ADCDataReporter[] pBodyDataReporters)
The components responsible for generating client-specific auto-tagging data
 (e.g., javascript) just before the </body> tag. 
 | 
void | 
setHeadDataReporters(ADCDataReporter[] pHeadDataReporters)
The components responsible for generating client-specific auto-tagging data
 (e.g., javascript) just before the </head> tag. 
 | 
void | 
setRequestDataPath(java.lang.String pRequestDataPath)
The path to the request-scoped Nucleus component that holds the events for
 the current request. 
 | 
addLogListener, createAdminServlet, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService, toStringvlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarningpublic static final java.lang.String CLASS_VERSION
protected static java.util.ResourceBundle sResourceBundle
protected java.util.Map mHeadDataReporterMap
protected java.util.Map mBodyDataReporterMap
public void setRequestDataPath(java.lang.String pRequestDataPath)
pRequestDataPath - the path to the request-scoped Nucleus component
        that holds the events for the current request.public java.lang.String getRequestDataPath()
public void setHeadDataReporters(ADCDataReporter[] pHeadDataReporters)
pADCDataReporter - the class responsible for generating the 
        client-specific auto-tagging data.public ADCDataReporter[] getHeadDataReporters()
public void setBodyDataReporters(ADCDataReporter[] pBodyDataReporters)
pADCDataReporter - the class responsible for generating the 
        client-specific auto-tagging data.public ADCDataReporter[] getBodyDataReporters()
public void doStartService()
                    throws ServiceException
doStartService in class GenericServiceServiceException - if the Service had a problem starting uppublic void receiveMessage(java.lang.String pPortName,
                           javax.jms.Message pMessage)
                    throws javax.jms.JMSException
receiveMessage in interface MessageSinkpPortName - the name of the port on which the message was receivedpMessage - the JMS message received.javax.jms.JMSExceptionMessageSink.receiveMessage(java.lang.String, javax.jms.Message)public java.lang.String processADCData(ADCDataReporter[] pDataReporters)
pDataReporters - the array of ADCDataReporters to invokepublic java.lang.String processBodyData()
public java.lang.String processBodyData(java.lang.String pClientName)
pClientName - the name of the ADC client or null
                    to process all clientspublic java.lang.String processHeadData()
public java.lang.String processHeadData(java.lang.String pClientName)
pClientName - the name of the ADC client or null
                    to process all clientspublic ADCRequestData getCurrentRequestData()
protected ADCDataReporter[] findDataReporter(java.util.Map pDataReporters, java.lang.String pClientName)
pDataReporters - the Map of candidate ADCDataReporterspClientName - the name to locate in the Mapprotected java.util.Map generateDataReporterMap(ADCDataReporter[] pDataReporters)
ADCDataReporter array
 using the data reporters' client names as keys.