com.isti.quakewatch.message
Interface MsgProcessorInterface


public interface MsgProcessorInterface

Interface MsgProcessorInterface defines the QuakeWatch client data-message processing method.


Method Summary
 void processDataMessage(org.jdom.Element qwMsgElement, org.jdom.Element dataMsgElement, java.lang.String xmlMsgStr, boolean requestedFlag, java.lang.Long msgNumObj, java.util.Date timeGenObj)
          Processes any number of "Event" and "Product" elements in the given "DataMessage" element.
 

Method Detail

processDataMessage

void processDataMessage(org.jdom.Element qwMsgElement,
                        org.jdom.Element dataMsgElement,
                        java.lang.String xmlMsgStr,
                        boolean requestedFlag,
                        java.lang.Long msgNumObj,
                        java.util.Date timeGenObj)
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 indicate the the message was "requested" (and that it should not be processed as a "real-time" message).
msgNumObj - a 'Long' object holding the message number for the message, or null if a message number is not available.
timeGenObj - a 'Date' object holding the time-generated value for the message, or null if a time-generated value is not available.