Package gov.usgs.earthquake.indexer
Class SearchSocket
- java.lang.Object
-
- gov.usgs.earthquake.indexer.SearchSocket
-
public class SearchSocket extends java.lang.ObjectClient side of search socket interface.
-
-
Constructor Summary
Constructors Constructor Description SearchSocket(java.net.InetAddress host, int port)Construct a new SearchSocket.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchResponsesearch(SearchRequest request, FileProductStorage storage)Send a search request, converting the response to a java object.voidsearch(SearchRequest request, java.io.OutputStream responseOut)Send a search request, writing the response to an outputstream.
-
-
-
Method Detail
-
search
public SearchResponse search(SearchRequest request, FileProductStorage storage) throws java.lang.Exception
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:
java.lang.Exception- if error occurs
-
search
public void search(SearchRequest request, java.io.OutputStream responseOut) throws java.lang.Exception
Send a search request, writing the response to an outputstream.- Parameters:
request- the request to send.responseOut- the outputstream to write.- Throws:
java.lang.Exception- if error occurs
-
-