org.gcube.common.clients.queries
Interface Query<A>

Type Parameters:
A - the type of service endpoint addresses
All Known Implementing Classes:
AbstractQuery

public interface Query<A>

A query for the endpoints of a given service.

Author:
Fabio Simeoni

Method Summary
 boolean equals(Object query)
           
 List<A> fire()
          Executes the query.
 int hashCode()
           
 String toString()
           
 

Method Detail

fire

List<A> fire()
             throws DiscoveryException
Executes the query.

Returns:
the addresses of the discovered endpoints
Throws:
DiscoveryException - if query execution fails

equals

boolean equals(Object query)
Overrides:
equals in class Object

hashCode

int hashCode()
Overrides:
hashCode in class Object

toString

String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.