Package gov.usgs.earthquake.indexer
Class SearchSocket
java.lang.Object
gov.usgs.earthquake.indexer.SearchSocket
Client side of search socket interface.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsearch
(SearchRequest request, FileProductStorage storage) Send a search request, converting the response to a java object.void
search
(SearchRequest request, OutputStream responseOut) Send a search request, writing the response to an outputstream.
-
Constructor Details
-
SearchSocket
Construct a new SearchSocket.- Parameters:
host
- the remote host.port
- the remote port.
-
-
Method Details
-
search
Send a search request, converting the response to a java object.- Parameters:
request
- the request to send.storage
- where received products are stored.- Returns:
- the response.
- Throws:
Exception
- if error occurs
-
search
Send a search request, writing the response to an outputstream.- Parameters:
request
- the request to send.responseOut
- the outputstream to write.- Throws:
Exception
- if error occurs
-