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
public class QueryLauncher extends ServiceConfig
QueryLauncher Class Factory class of interface QueryConnector
-
-
Constructor Summary
Constructors Constructor Description QueryLauncher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceData
launchQuery(@NonNull Query query, com.fasterxml.jackson.databind.node.ObjectNode parameters)
Launches a queryServiceData
subscribe(Query query, ComponentAddress address, com.fasterxml.jackson.databind.node.ObjectNode parameters)
Subscribe to a query-
Methods inherited from class com.almis.awe.config.ServiceConfig
containsBean, getApplicationContext, getBean, getBean, getElements, getLocale, getLocale, getProperty, getProperty, getRequest, getSession, setApplicationContext
-
-
-
-
Method Detail
-
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
-
-