All Downloads are FREE. Search and download functionalities are using the official Maven repository.

eu.unicore.client.registry.IRegistryClient Maven / Gradle / Ivy

The newest version!
package eu.unicore.client.registry;

import java.util.List;

import eu.unicore.client.Endpoint;

public interface IRegistryClient {
	
	/**
	 * list services of the given type and matching the given filter
	 */
	public List listEntries(ServiceListFilter acceptFilter) throws Exception;

	/**
	 * list the entries in this registry
	 */
	public abstract List listEntries()throws Exception;
	
	/**
	 * list the entries in this registry matching the given service type / "interface name"
	 * @see Endpoint#getInterfaceName()
	 */
	public abstract List listEntries(String type)throws Exception;
	
	/**
	 * check the connection status to the service
	 * 
	 * @return "OK" if connection is OK, 
	 *         an error message otherwise
	 */
	public String getConnectionStatus()throws Exception;	
	
	/**
	 * check the connection to the service
	 * @return true if service can be accessed
	 */
	public boolean checkConnection()throws Exception;	

	/**
	 * allows to specify custom filtering conditions on the service list
	 * returned by the registry client
	 */
	public static interface ServiceListFilter {
		public boolean accept(Endpoint endpoint);
	}
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy