Package gov.usgs.earthquake.indexer
Class SearchCLI
- java.lang.Object
-
- gov.usgs.earthquake.indexer.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 Summary
Fields Modifier and Type Field Description static java.lang.String
EVENT_SOURCE_ARGUMENT
Argument for event Sourcestatic java.lang.String
EVENT_SOURCE_CODE_ARGUMENT
Argument for event Source Codestatic java.lang.String
FILE_OUTPUT_ARGUMENT
Argument for file outputstatic java.lang.String
MAX_EVENT_DEPTH_ARGUMENT
Argument for maximum event depthstatic java.lang.String
MAX_EVENT_LATITUDE_ARGUMENT
Argument for maximum event latitudestatic java.lang.String
MAX_EVENT_LONGITUDE_ARGUMENT
Argument for maximum event longitudestatic java.lang.String
MAX_EVENT_MAGNITUDE_ARGUMENT
Argument for maximum event magnitudestatic java.lang.String
MAX_EVENT_TIME_ARGUMENT
Argument for maximum event timestatic java.lang.String
MAX_PRODUCT_UPDATE_TIME_ARGUMENT
Argument for maximum product update timestatic java.lang.String
MIN_EVENT_DEPTH_ARGUMENT
Argument for minimum event depthstatic java.lang.String
MIN_EVENT_LATITUDE_ARGUMENT
Argument for minimum event latitudestatic java.lang.String
MIN_EVENT_LONGITUDE_ARGUMENT
Argument for minimum event longitudestatic java.lang.String
MIN_EVENT_MAGNITUDE_ARGUMENT
Argument for minimum event magnitudestatic java.lang.String
MIN_EVENT_TIME_ARGUMENT
Argument for minimum Event Timestatic java.lang.String
MIN_PRODUCT_UPDATE_TIME_ARGUMENT
Argument for minimum product update timestatic java.lang.String
PRODUCT_ID_ARGUMENT
Argument for product IDstatic java.lang.String
PRODUCT_SOURCE_ARGUMENT
Argument for product sourcestatic java.lang.String
PRODUCT_STATUS_ARGUMENT
Argument for product statusstatic java.lang.String
PRODUCT_TYPE_ARGUMENT
Argument for product typestatic java.lang.String
PRODUCT_VERSION_ARGUMENT
Argument for product verionstatic java.lang.String
RESULT_TYPE_ARGUMENT
Argument for result typestatic java.lang.String
SEARCH_HOST_ARGUMENT
Argument for search hoststatic java.lang.String
SEARCH_METHOD_ARGUMENT
Argument for search methodstatic java.lang.String
SEARCH_PORT_ARGUMENT
Argument for search port
-
Constructor Summary
Constructors Constructor Description SearchCLI()
Default constructor, for configurable interface.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getUsage()
CLI Usagestatic void
main(java.lang.String[] args)
Entry point into search.
-
-
-
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
-
-
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
-
-