org.gcube.messaging.common.consumerlibrary.impl
Class ConsumerLibrary
java.lang.Object
org.gcube.messaging.common.consumerlibrary.impl.ConsumerLibrary
public class ConsumerLibrary
- extends Object
- Author:
- Andrea Manzi(CERN)
Field Summary |
org.gcube.common.core.utils.logging.GCUBELog |
logger
|
Constructor Summary |
ConsumerLibrary(org.gcube.common.core.scope.GCUBEScope scope)
Creates a consumer Library to query a Consumer Service on the given scope |
ConsumerLibrary(org.gcube.common.core.scope.GCUBEScope scope,
String endpoint,
String port)
Creates a consumer Library to query the given instance of Consumer Service |
Method Summary |
|
getQuery(Class<QUERY> type)
Returns a query from the interface or class which defines its type. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
public org.gcube.common.core.utils.logging.GCUBELog logger
ConsumerLibrary
public ConsumerLibrary(org.gcube.common.core.scope.GCUBEScope scope)
throws Exception
- Creates a consumer Library to query a Consumer Service on the given scope
- Parameters:
scope
- the scope
- Throws:
Exception
- exception
ConsumerLibrary
public ConsumerLibrary(org.gcube.common.core.scope.GCUBEScope scope,
String endpoint,
String port)
throws Exception
- Creates a consumer Library to query the given instance of Consumer Service
- Parameters:
scope
- Consumer service scopeendpoint
- endpointport
- port
- Throws:
Exception
- Exception
getQuery
public <QUERY extends Query<ConsumerCL>> QUERY getQuery(Class<QUERY> type)
throws InstantiationException,
IllegalAccessException
- Returns a query from the interface or class which defines its type.
The method is intended as a means to bind query interfaces to concrete implementations provided
along with implementations of this interface.
- Type Parameters:
QUERY
- the type of the query which produces results- Parameters:
type
- the query interface or class.
- Returns:
- the query.
- Throws:
IllegalAccessException
- IllegalAccessException
InstantiationException
- IllegalAccessException
Copyright © 2013. All Rights Reserved.