package org.gcube.common.clients.queries; import java.util.List; import org.gcube.common.clients.exceptions.DiscoveryException; /** * A query for the endpoints of a given service. * * @author Fabio Simeoni * * @param the type of service endpoint addresses */ public interface Query { /** * Executes the query. * * @return the addresses of the discovered endpoints * @throws DiscoveryException if query execution fails */ List fire() throws DiscoveryException; //emphasise @Override public boolean equals(Object query); @Override public int hashCode(); @Override public String toString(); }