Indexer

« Back to receiving

The indexer is a complex listener that processes products to aggregate the various product types from various sources into the seismic events to which they relate. In addition to the standard listener properties, this type of listener accepts the following specific properties:

archiveInterval
The interval (in milliseconds) on which to run the configured archive policies
Default: 300000
archivePolicy
A comma-separated list of named configuration sub-sections, each of which define an archive policy
associator
The name of a configuration sub-section defining an associator for the indexer to use when associating products.
Optional, default: DefaultAssociator
associateUsingCurrentProducts
Boolean flag indicating if only current (i.e., not superseded) products shall be considered when searching for candidate events to which a product should be associated.
Optional, default: false
index
Property referencing a JDBCProductIndex configuration sub-section.
One of index or indexFile is required
indexFile
The name of a file where a SQLite database for the index will be created.
One of index or indexFile is required
listeners
A comma-separated list of listeners to be notified about indexing events. Each listener should be a reference to a named configuration sub-section defining an IndexerListener.
localRegionsFile
The path to a local file containing regional information used when determining preferred weight for products.
Default: regions.json
modules
A comma-separated list of modules used when summarizing a product. Each module should be a reference to a named configuration sub-section defining an IndexerModule.
storage
A reference to a named configuration sub-section defining the storage used by the indexer
One of storage and storageDirectory is required
storageDirectory
The name of the directory where a FileProductStorage should be created for use by the indexer.
One of storage and storageDirectory is required

Example configuration

Note: Dependent configuration sub-sections not shown in this configuration example.

1
2
3
4
5
6
7
listeners = indexer

[indexer]
type = gov.usgs.earthquake.indexer.Indexer
index = indexer_index
listenerIndex = indexer_listener_index
storage = indexer_storage

Note: The indexer leverages configuration for both a listenerIndex and an index. The listenerIndex keeps track of which products the listener has previously received notifications about from its receiver. Conversely the index is where products are summarized and associated into events.



Last modified: Fri Aug 16 13:01:31 UTC 2024