Class SearchCLI


  • public class SearchCLI
    extends java.lang.Object
    Command line interface for search socket. This class reads arguments from the command line that represent a ProductIndexQuery. Then it connects to a configured socket, executes the search, and outputs the response xml.
    • Field Detail

      • SEARCH_METHOD_ARGUMENT

        public static java.lang.String SEARCH_METHOD_ARGUMENT
        Argument for search method
      • RESULT_TYPE_ARGUMENT

        public static java.lang.String RESULT_TYPE_ARGUMENT
        Argument for result type
      • EVENT_SOURCE_ARGUMENT

        public static java.lang.String EVENT_SOURCE_ARGUMENT
        Argument for event Source
      • EVENT_SOURCE_CODE_ARGUMENT

        public static java.lang.String EVENT_SOURCE_CODE_ARGUMENT
        Argument for event Source Code
      • MIN_EVENT_TIME_ARGUMENT

        public static java.lang.String MIN_EVENT_TIME_ARGUMENT
        Argument for minimum Event Time
      • MAX_EVENT_TIME_ARGUMENT

        public static java.lang.String MAX_EVENT_TIME_ARGUMENT
        Argument for maximum event time
      • MIN_EVENT_LATITUDE_ARGUMENT

        public static java.lang.String MIN_EVENT_LATITUDE_ARGUMENT
        Argument for minimum event latitude
      • MIN_EVENT_LONGITUDE_ARGUMENT

        public static java.lang.String MIN_EVENT_LONGITUDE_ARGUMENT
        Argument for minimum event longitude
      • MAX_EVENT_LATITUDE_ARGUMENT

        public static java.lang.String MAX_EVENT_LATITUDE_ARGUMENT
        Argument for maximum event latitude
      • MAX_EVENT_LONGITUDE_ARGUMENT

        public static java.lang.String MAX_EVENT_LONGITUDE_ARGUMENT
        Argument for maximum event longitude
      • MIN_EVENT_DEPTH_ARGUMENT

        public static java.lang.String MIN_EVENT_DEPTH_ARGUMENT
        Argument for minimum event depth
      • MAX_EVENT_DEPTH_ARGUMENT

        public static java.lang.String MAX_EVENT_DEPTH_ARGUMENT
        Argument for maximum event depth
      • MIN_EVENT_MAGNITUDE_ARGUMENT

        public static java.lang.String MIN_EVENT_MAGNITUDE_ARGUMENT
        Argument for minimum event magnitude
      • MAX_EVENT_MAGNITUDE_ARGUMENT

        public static java.lang.String MAX_EVENT_MAGNITUDE_ARGUMENT
        Argument for maximum event magnitude
      • PRODUCT_ID_ARGUMENT

        public static java.lang.String PRODUCT_ID_ARGUMENT
        Argument for product ID
      • MIN_PRODUCT_UPDATE_TIME_ARGUMENT

        public static java.lang.String MIN_PRODUCT_UPDATE_TIME_ARGUMENT
        Argument for minimum product update time
      • MAX_PRODUCT_UPDATE_TIME_ARGUMENT

        public static java.lang.String MAX_PRODUCT_UPDATE_TIME_ARGUMENT
        Argument for maximum product update time
      • PRODUCT_SOURCE_ARGUMENT

        public static java.lang.String PRODUCT_SOURCE_ARGUMENT
        Argument for product source
      • PRODUCT_TYPE_ARGUMENT

        public static java.lang.String PRODUCT_TYPE_ARGUMENT
        Argument for product type
      • PRODUCT_VERSION_ARGUMENT

        public static java.lang.String PRODUCT_VERSION_ARGUMENT
        Argument for product verion
      • PRODUCT_STATUS_ARGUMENT

        public static java.lang.String PRODUCT_STATUS_ARGUMENT
        Argument for product status
      • SEARCH_HOST_ARGUMENT

        public static java.lang.String SEARCH_HOST_ARGUMENT
        Argument for search host
      • SEARCH_PORT_ARGUMENT

        public static java.lang.String SEARCH_PORT_ARGUMENT
        Argument for search port
      • FILE_OUTPUT_ARGUMENT

        public static java.lang.String FILE_OUTPUT_ARGUMENT
        Argument for file output
    • Constructor Detail

      • SearchCLI

        public SearchCLI()
        Default constructor, for configurable interface.
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Entry point into search. Called by Main when the --search argument is used.
        Parameters:
        args - command line arguments.
        Throws:
        java.lang.Exception - if error occurs
      • getUsage

        public static java.lang.String getUsage()
        CLI Usage
        Returns:
        string of usage