com.isti.quakewatch.message
Interface QWDataMsgProcessor

All Known Implementing Classes:
CommTest.CommTestMsgProcessor, QWMsgManager

public interface QWDataMsgProcessor

Interface QWDataMsgProcessor defines methods for data-message processing.


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.
 

Method Detail

setConnectionMgr

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

Parameters:
connMgrObj - The connection-manager object to use.

processDataMessage

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.

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).

getLastEventInStorage

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

Returns:
The 'QWMsgNumTimeRec' object for the last event held in storage.