QueryGetter
Keywords: uk.ac.ic.doc.automed.p2p.QueryGetter class

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## uk.ac.ic.doc.automed.p2p
Class QueryGetter

    java.lang.Object
      uk.ac.ic.doc.automed.p2p.QueryGetter

    public class QueryGetter

extends java.lang.Object

Author:
  Charis TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

Constructor Summary
`QueryGetter(AutoMedPeer peer)`

Method Summary
`java.lang.String` | `getQueryResults(java.lang.String peerName, java.lang.String address, java.lang.String schema, java.lang.String query)` Fetch the results of a query from a peer

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### QueryGetter

    public QueryGetter(AutoMedPeer peer)

Method Detail

### getQueryResults

    public java.lang.String getQueryResults(java.lang.String peerName,
                                            java.lang.String address,
                                            java.lang.String schema,
                                            java.lang.String query)
                                     throws UnsuccessfulReplyException,
                                            CommunicationException,
                                            java.io.IOException

  Fetch the results of a query from a peer

  Parameters:
    `peerName` - the logical name of the peer
    `address` - a url that resolves to an IP addres, or an IP address, of the host where the peer is currently located.
    `schema` - the name of the public schema on the peer to query
    `query` - the query to pose on that public schema
  Throws:
    `UnsuccessfulReplyException`
    `CommunicationException`
    `java.io.IOException`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD