Class EIDSInputWedge

All Implemented Interfaces:
Bootstrappable, Configurable, Runnable

@Deprecated public class EIDSInputWedge extends ProductBuilder implements Runnable, Bootstrappable
Deprecated.
Read messages from files or a poll directory, and push products into PDL. This is supports EIDS/QDDS style polling. The input messages are converted to Quakeml using the FileToQuakemlConverter interface, then sent as Quakeml based products. Much of the configuration can be supplied using either a configuration file, or command line arguments.
  • Field Details

    • ARGS

      public static String[] ARGS
      Deprecated.
      Global reference to arguments array, when EIDSInputWedge is run via Bootstrap.
    • PARSER_CLASS_PROPERTY

      public static final String PARSER_CLASS_PROPERTY
      Deprecated.
      Property for parser class
      See Also:
    • DEFAULT_PARSER_CLASS

      public static final String DEFAULT_PARSER_CLASS
      Deprecated.
      Default parser class
      See Also:
    • POLLDIR_PROPERTY

      public static final String POLLDIR_PROPERTY
      Deprecated.
      Property for polldir
      See Also:
    • DEFAULT_POLLDIR

      public static final String DEFAULT_POLLDIR
      Deprecated.
      Default polldir
      See Also:
    • STORAGEDIR_PROPERTY

      public static final String STORAGEDIR_PROPERTY
      Deprecated.
      Property for storage directory
      See Also:
    • DEFAULT_STORAGEDIR

      public static final String DEFAULT_STORAGEDIR
      Deprecated.
      Default storage directory
      See Also:
    • ERRORDIR_PROPERTY

      public static final String ERRORDIR_PROPERTY
      Deprecated.
      Property for error directory
      See Also:
    • DEFAULT_ERRORDIR

      public static final String DEFAULT_ERRORDIR
      Deprecated.
      Default error directory
      See Also:
    • VALIDATE_PROPERTY

      public static final String VALIDATE_PROPERTY
      Deprecated.
      Property for validate
      See Also:
    • DEFAULT_VALIDATE

      public static final String DEFAULT_VALIDATE
      Deprecated.
      Default status of validate
      See Also:
    • SEND_ORIGIN_WHEN_PHASES_EXIST_PROPERTY

      public static final String SEND_ORIGIN_WHEN_PHASES_EXIST_PROPERTY
      Deprecated.
      Property for sendOriginWhenPhasesExist
      See Also:
    • DEFAULT_SEND_ORIGIN_WHEN_PHASES_EXIST

      public static final String DEFAULT_SEND_ORIGIN_WHEN_PHASES_EXIST
      Deprecated.
      Default status of sendOrigin...
      See Also:
    • SEND_MECHANISM_WHEN_PHASES_EXIST_PROPERTY

      public static final String SEND_MECHANISM_WHEN_PHASES_EXIST_PROPERTY
      Deprecated.
      Property for sendMechanismWhenPhasesExist
      See Also:
    • DEFAULT_SEND_MECHANISM_WHEN_PHASES_EXIST

      public static final String DEFAULT_SEND_MECHANISM_WHEN_PHASES_EXIST
      Deprecated.
      Default status of sendMechanism...
      See Also:
    • CREATE_INTERNAL_PRODUCTS_PROPERTY

      public static final String CREATE_INTERNAL_PRODUCTS_PROPERTY
      Deprecated.
      Whether created products should be converted to internal types.
      See Also:
    • DEFAULT_CREATE_INTERNAL_PRODUCTS

      public static final String DEFAULT_CREATE_INTERNAL_PRODUCTS
      Deprecated.
      Default status of CREATE_INTERNAL_PRODUCTS
      See Also:
    • CREATE_SCENARIO_PRODUCTS_PROPERTY

      public static final String CREATE_SCENARIO_PRODUCTS_PROPERTY
      Deprecated.
      Whether created products should be converted to scenario types.
      See Also:
    • DEFAULT_CREATE_SCENARIO_PRODUCTS

      public static final String DEFAULT_CREATE_SCENARIO_PRODUCTS
      Deprecated.
      Default status of CREATE_SCENARIO_PRODUCTS
      See Also:
    • POLLINTERVAL_PROPERTY

      public static final String POLLINTERVAL_PROPERTY
      Deprecated.
      Poll interval property
      See Also:
    • DEFAULT_POLLINTERVAL

      public static final String DEFAULT_POLLINTERVAL
      Deprecated.
      Default interval for POLLINTERVAL
      See Also:
    • POLL_CAREFULLY_PROPERTY

      public static final String POLL_CAREFULLY_PROPERTY
      Deprecated.
      Property for pollCarefully
      See Also:
    • DEFAULT_POLL_CAREFULLY

      public static final String DEFAULT_POLL_CAREFULLY
      Deprecated.
      Default status of POLL_CAREFULLY
      See Also:
    • DO_BUFFER_FIX_PROPERTY

      public static final String DO_BUFFER_FIX_PROPERTY
      Deprecated.
      Property for doBufferFix
      See Also:
    • DEFAULT_DO_BUFFER_FIX

      public static final String DEFAULT_DO_BUFFER_FIX
      Deprecated.
      Default status of DO_BUFFER_FIX property
      See Also:
    • HELP_ARGUMENT

      public static final String HELP_ARGUMENT
      Deprecated.
      Argument for help
      See Also:
    • POLL_ARGUMENT

      public static final String POLL_ARGUMENT
      Deprecated.
      Argument for poll
      See Also:
    • POLL_CAREFULLY_ARGUMENT

      public static final String POLL_CAREFULLY_ARGUMENT
      Deprecated.
      Argument for poleCarefully
      See Also:
    • POLLDIR_ARGUMENT

      public static final String POLLDIR_ARGUMENT
      Deprecated.
      Argument for polldir
      See Also:
    • ERRORDIR_ARGUMENT

      public static final String ERRORDIR_ARGUMENT
      Deprecated.
      Argument for errordir
      See Also:
    • STORAGEDIR_ARGUMENT

      public static final String STORAGEDIR_ARGUMENT
      Deprecated.
      Argument for storagedir
      See Also:
    • POLL_INTERVAL_ARGUMENT

      public static final String POLL_INTERVAL_ARGUMENT
      Deprecated.
      Argument for poll interval
      See Also:
    • FILE_ARGUMENT

      public static final String FILE_ARGUMENT
      Deprecated.
      Argument for file
      See Also:
    • PARSER_ARGUMENT

      public static final String PARSER_ARGUMENT
      Deprecated.
      Argument for parser
      See Also:
    • VALIDATE_ARGUMENT

      public static final String VALIDATE_ARGUMENT
      Deprecated.
      Argument for validate
      See Also:
    • PRIVATE_KEY_ARGUMENT

      public static final String PRIVATE_KEY_ARGUMENT
      Deprecated.
      Argument for privateKey
      See Also:
    • SIGNATURE_VERSION_ARGUMENT

      public static final String SIGNATURE_VERSION_ARGUMENT
      Deprecated.
      Argument for signatureVersion
      See Also:
    • SERVERS_ARGUMENT

      public static final String SERVERS_ARGUMENT
      Deprecated.
      Argument for servers
      See Also:
    • SERVERS_DEFAULT

      public static final String SERVERS_DEFAULT
      Deprecated.
      Default server for server argument
      See Also:
    • CONNECT_TIMEOUT_ARGUMENT

      public static final String CONNECT_TIMEOUT_ARGUMENT
      Deprecated.
      Argument for connection timeout
      See Also:
    • DEFAULT_CONNECT_TIMEOUT

      public static final Integer DEFAULT_CONNECT_TIMEOUT
      Deprecated.
      Default timeout for connection
    • BINARY_FORMAT_ARGUMENT

      public static final String BINARY_FORMAT_ARGUMENT
      Deprecated.
      Argument for binaryFormat
      See Also:
    • DISABLE_DEFLATE_ARGUMENT

      public static final String DISABLE_DEFLATE_ARGUMENT
      Deprecated.
      Argument for disableDeflate
      See Also:
    • ATTACH_ARGUMENT

      public static final String ATTACH_ARGUMENT
      Deprecated.
      Argument for attach
      See Also:
    • SEND_ORIGINS_WITH_PHASES

      public static final String SEND_ORIGINS_WITH_PHASES
      Deprecated.
      Argument for sending origin with phases
      See Also:
    • SEND_MECHANISMS_WITH_PHASES

      public static final String SEND_MECHANISMS_WITH_PHASES
      Deprecated.
      Argument for sending mechanisms with phases
      See Also:
    • CREATE_INTERNAL_PRODUCTS

      public static final String CREATE_INTERNAL_PRODUCTS
      Deprecated.
      Argument for creating internal products
      See Also:
    • CREATE_SCENARIO_PRODUCTS

      public static final String CREATE_SCENARIO_PRODUCTS
      Deprecated.
      Argument for creating scenario products
      See Also:
    • TEST_ARGUMENT

      public static final String TEST_ARGUMENT
      Deprecated.
      Argument for testing
      See Also:
  • Constructor Details

    • EIDSInputWedge

      public EIDSInputWedge() throws Exception
      Deprecated.
      Empty constructor
      Throws:
      Exception - if error occurs
  • Method Details

    • parseAndSend

      public Map<ProductId,Map<ProductSender,Exception>> parseAndSend(File file, Map<String,Content> attachContent) throws Exception
      Deprecated.
      Gets products from file and iterates through each product During iteration, sets type to internal/scenario if createInternalProducts or createScenarioProducts is true. Attaches Content files to product, Sends product
      Parameters:
      file - File containing products
      attachContent - Map of String and Content
      Returns:
      Map of product IDs and sent products
      Throws:
      Exception - if error occurs
    • onFile

      public void onFile(File file)
      Deprecated.
      Parses given file, looking for send exceptions and reports statistics
      Parameters:
      file - to parse and look for errors
    • configure

      public void configure(Config config) throws Exception
      Deprecated.
      Description copied from class: DefaultConfigurable
      Process configuration settings. Called before startup().
      Specified by:
      configure in interface Configurable
      Overrides:
      configure in class ProductBuilder
      Parameters:
      config - the Config object with settings.
      Throws:
      Exception - if configuration exceptions occur.
    • shutdown

      public void shutdown() throws Exception
      Deprecated.
      Description copied from class: DefaultConfigurable
      Stop any processing/background threads.
      Specified by:
      shutdown in interface Configurable
      Overrides:
      shutdown in class ProductBuilder
      Throws:
      Exception - if exceptions occur while starting.
    • startup

      public void startup() throws Exception
      Deprecated.
      Description copied from class: DefaultConfigurable
      Start any processing/background threads.
      Specified by:
      startup in interface Configurable
      Overrides:
      startup in class ProductBuilder
      Throws:
      Exception - if exceptions occur while starting.
    • getPolldir

      public File getPolldir()
      Deprecated.
      Returns:
      polldir
    • setPolldir

      public void setPolldir(File polldir)
      Deprecated.
      Parameters:
      polldir - File to set
    • getStoragedir

      public File getStoragedir()
      Deprecated.
      Returns:
      storagedir
    • setStoragedir

      public void setStoragedir(File storagedir)
      Deprecated.
      Parameters:
      storagedir - File to set
    • getErrordir

      public File getErrordir()
      Deprecated.
      Returns:
      errordir
    • setErrordir

      public void setErrordir(File errordir)
      Deprecated.
      Parameters:
      errordir - File to send
    • getProductCreator

      public ProductCreator getProductCreator()
      Deprecated.
      Returns:
      productCreator
    • setProductCreator

      public void setProductCreator(ProductCreator productCreator)
      Deprecated.
      Parameters:
      productCreator - to set
    • getDirectoryPoller

      public Poller getDirectoryPoller()
      Deprecated.
      Returns:
      directoryPoller
    • setDirectoryPoller

      public void setDirectoryPoller(Poller directoryPoller)
      Deprecated.
      Parameters:
      directoryPoller - to set
    • getPollInterval

      public long getPollInterval()
      Deprecated.
      Returns:
      pollInterval long
    • setPollInterval

      public void setPollInterval(long pollInterval)
      Deprecated.
      Parameters:
      pollInterval - long to set
    • isPollCarefully

      public boolean isPollCarefully()
      Deprecated.
      Returns:
      pollCarefully boolean
    • setPollCarefully

      public void setPollCarefully(boolean pollCarefully)
      Deprecated.
      Parameters:
      pollCarefully - boolean to set
    • isCreateInternalProducts

      public boolean isCreateInternalProducts()
      Deprecated.
      Returns:
      the createInternalProducts
    • setCreateInternalProducts

      public void setCreateInternalProducts(boolean createInternalProducts)
      Deprecated.
      Parameters:
      createInternalProducts - the createInternalProducts to set
    • isCreateScenarioProducts

      public boolean isCreateScenarioProducts()
      Deprecated.
      Returns:
      the createScenarioProducts
    • setCreateScenarioProducts

      public void setCreateScenarioProducts(boolean createScenarioProducts)
      Deprecated.
      Parameters:
      createScenarioProducts - the createScenarioProducts to set
    • parseServers

      public static List<ProductSender> parseServers(String servers, Integer connectTimeout, boolean binaryFormat, boolean enableDeflate)
      Deprecated.
      Parses a string of servers into SocketProductSenders, all put into a list of product senders
      Parameters:
      servers - String of servers, split by commas
      connectTimeout - int timeout
      binaryFormat - boolean if binary format
      enableDeflate - boolean if Deflate should be enabled
      Returns:
      List of product senders
    • run

      public void run(String[] args) throws Exception
      Deprecated.
      Bootstrappable interface.
      Specified by:
      run in interface Bootstrappable
      Parameters:
      args - array of command line arguments.
      Throws:
      Exception - Exception
    • printUsage

      public static void printUsage()
      Deprecated.
      Usage for interface
    • run

      public void run()
      Deprecated.
      Specified by:
      run in interface Runnable