com.isti.quakewatch.utiltest
Class CommTest.CommTestMsgProcessor

java.lang.Object
  extended by com.isti.quakewatch.utiltest.CommTest.CommTestMsgProcessor
All Implemented Interfaces:
QWDataMsgProcessor
Enclosing class:
CommTest

protected class CommTest.CommTestMsgProcessor
extends java.lang.Object
implements QWDataMsgProcessor


Constructor Summary
protected CommTest.CommTestMsgProcessor()
           
 
Method Summary
 QWMsgNumTimeRec getLastEventInStorage()
          Returns the last event held in storage.
 void processDataMessage(org.jdom.Element qwMsgElement, org.jdom.Element dataMsgElement, java.lang.String xmlMsgStr, boolean requestedFlag)
          Processes any number of "Event" and "Product" elements in the given "DataMessage" element.
 void setConnectionMgr(QWConnectionMgr connMgrObj)
          Enters the connection manager to be used by this message processor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommTest.CommTestMsgProcessor

protected CommTest.CommTestMsgProcessor()
Method Detail

processDataMessage

public void processDataMessage(org.jdom.Element qwMsgElement,
                               org.jdom.Element dataMsgElement,
                               java.lang.String xmlMsgStr,
                               boolean requestedFlag)
Processes any number of "Event" and "Product" elements in the given "DataMessage" element.

Specified by:
processDataMessage in interface QWDataMsgProcessor
Parameters:
qwMsgElement - The "QWmessage" element.
dataMsgElement - The "DataMessage" element.
xmlMsgStr - the XML text message string.
requestedFlag - true to set the "requested" flag on the generated data-message objects (to indicate that they should not be processed as a "real-time" message).

setConnectionMgr

public void setConnectionMgr(QWConnectionMgr connMgrObj)
Enters the connection manager to be used by this message processor.

Specified by:
setConnectionMgr in interface QWDataMsgProcessor
Parameters:
connMgrObj - The connection-manager object to use.

getLastEventInStorage

public QWMsgNumTimeRec getLastEventInStorage()
Returns the last event held in storage.

Specified by:
getLastEventInStorage in interface QWDataMsgProcessor
Returns:
The 'QWMsgNumTimeRec' object for the last event held in storage.