Class SearchSocket

java.lang.Object
gov.usgs.earthquake.indexer.SearchSocket

public class SearchSocket extends Object
Client side of search socket interface.
  • Constructor Details

    • SearchSocket

      public SearchSocket(InetAddress host, int port)
      Construct a new SearchSocket.
      Parameters:
      host - the remote host.
      port - the remote port.
  • Method Details

    • search

      public SearchResponse search(SearchRequest request, FileProductStorage storage) throws 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:
      Exception - if error occurs
    • search

      public void search(SearchRequest request, OutputStream responseOut) throws Exception
      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