|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.nucleus.logging.VariableArgumentApplicationLoggingImpl atg.nucleus.GenericService atg.adc.ADCEventMonitor
public class ADCEventMonitor
This class is listens for events sent while processing the request, and stores them in a request-scoped ADCRequestData object. This class also triggers the pipeline that produces the auto-tagging output.
Field Summary | |
---|---|
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 |
Fields inherited from class atg.nucleus.GenericService |
---|
SERVICE_INFO_KEY |
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
---|
DEFAULT_LOG_TRACE_STATUS |
Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
Constructor Summary | |
---|---|
ADCEventMonitor()
|
Method Summary | |
---|---|
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. |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CLASS_VERSION
protected static java.util.ResourceBundle sResourceBundle
protected java.util.Map mHeadDataReporterMap
protected java.util.Map mBodyDataReporterMap
Constructor Detail |
---|
public ADCEventMonitor()
Method Detail |
---|
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 GenericService
ServiceException
- 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 MessageSink
pPortName
- the name of the port on which the message was receivedpMessage
- the JMS message received.
javax.jms.JMSException
MessageSink.receiveMessage(java.lang.String, javax.jms.Message)
public java.lang.String processADCData(ADCDataReporter[] pDataReporters)
pDataReporters
- the array of ADCDataReporters to invoke
public 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 clients
public 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 clients
public 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 Map
protected java.util.Map generateDataReporterMap(ADCDataReporter[] pDataReporters)
ADCDataReporter
array
using the data reporters' client names as keys.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |