org.gcube.messaging.common.consumerlibrary.impl
Class ConsumerLibrary
java.lang.Object
org.gcube.messaging.common.consumerlibrary.impl.ConsumerLibrary
public class ConsumerLibrary
- extends java.lang.Object
- Author:
- Andrea Manzi(CERN)
|
Constructor Summary |
ConsumerLibrary(GCUBEScope scope)
Creates a consumer Library to query a Consumer Service on the given scope |
ConsumerLibrary(GCUBEScope scope,
java.lang.String endpoint,
java.lang.String port)
Creates a consumer Library to query the given instance of Consumer Service |
|
Method Summary |
<QUERY extends Query<MessagingConsumerServiceCall>>
QUERY |
|
getQuery(java.lang.Class<QUERY> type)
Returns a query from the interface or class which defines its type. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
public GCUBELog logger
ConsumerLibrary
public ConsumerLibrary(GCUBEScope scope)
throws java.lang.Exception
- Creates a consumer Library to query a Consumer Service on the given scope
- Parameters:
scope - the scope
- Throws:
java.lang.Exception - exception
ConsumerLibrary
public ConsumerLibrary(GCUBEScope scope,
java.lang.String endpoint,
java.lang.String port)
throws java.lang.Exception
- Creates a consumer Library to query the given instance of Consumer Service
- Parameters:
scope - Consumer service scopeendpoint - endpointport - port
- Throws:
java.lang.Exception - Exception
getQuery
public <QUERY extends Query<MessagingConsumerServiceCall>> QUERY getQuery(java.lang.Class<QUERY> type)
throws java.lang.InstantiationException,
java.lang.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:
java.lang.IllegalAccessException - IllegalAccessException
java.lang.InstantiationException - IllegalAccessException