Package gov.usgs.earthquake.eids
Class EIDSProductBuilder
- java.lang.Object
-
- gov.usgs.util.DefaultConfigurable
-
- gov.usgs.earthquake.distribution.ProductBuilder
-
- gov.usgs.earthquake.eids.EIDSProductBuilder
-
- All Implemented Interfaces:
EIDSListener
,Configurable
public class EIDSProductBuilder extends ProductBuilder implements EIDSListener
Convert messages from EIDS into products. Listens to messages from an EIDSClient. Uses EQXMLProductParser and EventAddonParser to build products. Any built products are sent to all configured productSenders.
-
-
Field Summary
-
Fields inherited from class gov.usgs.earthquake.distribution.ProductBuilder
DEFAULT_PARALLEL_SEND, DEFAULT_PARALLEL_SEND_TIMEOUT, DEFAULT_TRACKER_URL, PARALLEL_SEND_PROPERTY, PARALLEL_SEND_TIMEOUT_PROPERTY, parallelSend, parallelSendTimeout, PRIVATE_KEY_PROPERTY, SENDERS_PROPERTY, SIGNATURE_VERSION_PROPERTY, TRACKER_URL_PROPERTY
-
-
Constructor Summary
Constructors Constructor Description EIDSProductBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] args)
Main method to test EQXMLProductBuilder.void
onEIDSMessage(EIDSMessageEvent event)
Receive EIDS messages from an EIDSClient.-
Methods inherited from class gov.usgs.earthquake.distribution.ProductBuilder
addProductSender, configure, getPrivateKey, getProductSenders, getSignatureVersion, getTrackerURL, parallelSendProduct, removeProductSender, sendProduct, setPrivateKey, setSignatureVersion, setTrackerURL, shutdown, startup
-
Methods inherited from class gov.usgs.util.DefaultConfigurable
getName, setName
-
-
-
-
Method Detail
-
onEIDSMessage
public void onEIDSMessage(EIDSMessageEvent event)
Receive EIDS messages from an EIDSClient. Any received messages are parsed and sent to any ProductSenders. If the message is not EQXML, this method returns immediately.- Specified by:
onEIDSMessage
in interfaceEIDSListener
- Parameters:
event
- an event object representing the message that was received.
-
main
public static void main(java.lang.String[] args)
Main method to test EQXMLProductBuilder. Connects an eids client to the product builder, and uses a dummy product sender that outputs to stderr.- Parameters:
args
- arguments included in the running of main
-
-