Package gov.usgs.earthquake.eidsutil
Class EIDSMessageEvent
- java.lang.Object
-
- java.util.EventObject
-
- gov.usgs.earthquake.eidsutil.EIDSMessageEvent
-
- All Implemented Interfaces:
java.io.Serializable
public class EIDSMessageEvent extends java.util.EventObject
EIDSMessageEvent objects are sent from EIDSClients to EIDSListeners.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EIDSMessageEvent(QWEmbeddedClient source, java.lang.Long serverSequenceNumber, java.util.Date serverTimeGenerated, java.lang.String feederSourceHost, java.lang.Long feederSequenceNumber, java.lang.String rootNamespace, java.lang.String rootElement, java.lang.String message)
Create a new EIDSMessageEvent.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getMessage()
java.lang.Long
getMessageSequence()
java.lang.String
getMessageSource()
QWEmbeddedClient
getQWEmbeddedClient()
java.lang.String
getRootElement()
java.lang.String
getRootNamespace()
java.lang.String
getServerHost()
java.lang.Long
getServerSequence()
java.util.Date
getServerTimeGenerated()
-
-
-
Constructor Detail
-
EIDSMessageEvent
public EIDSMessageEvent(QWEmbeddedClient source, java.lang.Long serverSequenceNumber, java.util.Date serverTimeGenerated, java.lang.String feederSourceHost, java.lang.Long feederSequenceNumber, java.lang.String rootNamespace, java.lang.String rootElement, java.lang.String message)
Create a new EIDSMessageEvent.- Parameters:
source
- the EIDSClient that received the message.feederSourceHost
- the origin of the message.feederSequenceNumber
- a unique identifier from feederSourceHost.rootNamespace
- the rootElement namespace of the messagerootElement
- the message rootElement local name.message
- the message that was received.serverSequenceNumber
- the sequence number assigned by the server that delivered this message.serverTimeGenerated
- the date the server received this message.
-
-
Method Detail
-
getQWEmbeddedClient
public QWEmbeddedClient getQWEmbeddedClient()
- Returns:
- the message source as an EIDSClient.
-
getServerHost
public java.lang.String getServerHost()
- Returns:
- the serverHost
-
getServerSequence
public java.lang.Long getServerSequence()
- Returns:
- the serverSequenceNumber
-
getServerTimeGenerated
public java.util.Date getServerTimeGenerated()
- Returns:
- the serverTimeGenerated
-
getMessageSource
public java.lang.String getMessageSource()
- Returns:
- combined with message sequence, uniquely identifies this message.
-
getMessageSequence
public java.lang.Long getMessageSequence()
- Returns:
- combined with message source, uniquely identifies this message.
-
getRootNamespace
public java.lang.String getRootNamespace()
- Returns:
- the namespace of the xml root element.
-
getRootElement
public java.lang.String getRootElement()
- Returns:
- the xml root element of the message.
-
getMessage
public java.lang.String getMessage()
- Returns:
- the message.
-
-