Class QueryLauncher
java.lang.Object
com.almis.awe.config.ServiceConfig
com.almis.awe.service.data.connector.query.QueryLauncher
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
QueryLauncher Class
Factory class of interface QueryConnector
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlaunchQuery
(@NonNull Query query, com.fasterxml.jackson.databind.node.ObjectNode parameters) Launches a querysubscribe
(Query query, ComponentAddress address, com.fasterxml.jackson.databind.node.ObjectNode parameters) Subscribe to a queryMethods inherited from class com.almis.awe.config.ServiceConfig
containsBean, getApplicationContext, getBean, getBean, getElements, getLocale, getLocale, getProperty, getProperty, getRequest, getSession, setApplicationContext
-
Constructor Details
-
QueryLauncher
public QueryLauncher()
-
-
Method Details
-
launchQuery
@Cacheable(value="queryData", condition="#p0.isCacheable()", key="{ #p0.getId(), #p1.toString() }") public ServiceData launchQuery(@NonNull @NonNull Query query, com.fasterxml.jackson.databind.node.ObjectNode parameters) throws AWException Launches a query- Parameters:
query
- Queryparameters
- Parameters- Returns:
- Query data
- Throws:
AWException
- Query has failed
-
subscribe
public ServiceData subscribe(Query query, ComponentAddress address, com.fasterxml.jackson.databind.node.ObjectNode parameters) throws AWException Subscribe to a query- Parameters:
query
- Queryaddress
- Component addressparameters
- Parameters- Returns:
- Query data
- Throws:
AWException
- Query has failed
-