Class ServiceQueryConnector
java.lang.Object
com.almis.awe.config.ServiceConfig
com.almis.awe.service.data.connector.query.AbstractQueryConnector
com.almis.awe.service.data.connector.query.ServiceQueryConnector
- All Implemented Interfaces:
QueryConnector
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
EnumQueryConnector Class
Connection class between QueryLauncher and EnumBuilder
- Author:
- Jorge BELLON 27-03-2017
-
Constructor Summary
ConstructorDescriptionServiceQueryConnector
(QueryUtil queryUtil, BaseConfigProperties baseConfigProperties, AweElements elements, NumericService numericService, EncodeService encodeService, com.fasterxml.jackson.databind.ObjectMapper mapper) Autowired constructor -
Method Summary
Modifier and TypeMethodDescriptionLaunch a full querysubscribe
(Query query, ComponentAddress address, com.fasterxml.jackson.databind.node.ObjectNode parameters) Subscribe to a queueMethods inherited from class com.almis.awe.service.data.connector.query.AbstractQueryConnector
buildResults, fillDataList, generateResults, getQueryUtil, processDataList, sortDataList
Methods inherited from class com.almis.awe.config.ServiceConfig
containsBean, getApplicationContext, getBean, getBean, getElements, getLocale, getLocale, getProperty, getProperty, getRequest, getSession, setApplicationContext
-
Constructor Details
-
ServiceQueryConnector
public ServiceQueryConnector(QueryUtil queryUtil, BaseConfigProperties baseConfigProperties, AweElements elements, NumericService numericService, EncodeService encodeService, com.fasterxml.jackson.databind.ObjectMapper mapper) Autowired constructor- Parameters:
queryUtil
- Query utilitiesbaseConfigProperties
- Base configuration propertieselements
- AWE elementsnumericService
- Numeric serviceencodeService
- Encode servicemapper
- Object mapper
-
-
Method Details
-
launch
public ServiceData launch(Query query, com.fasterxml.jackson.databind.node.ObjectNode parameters) throws AWException Description copied from interface:QueryConnector
Launch a full query- Parameters:
query
- Query to be launchedparameters
- Parameters- Returns:
- ServiceData with complete output
- Throws:
AWException
- Error launching query
-
subscribe
public ServiceData subscribe(Query query, ComponentAddress address, com.fasterxml.jackson.databind.node.ObjectNode parameters) throws AWException Description copied from interface:QueryConnector
Subscribe to a queue- Parameters:
query
- Query to be subscribed toaddress
- Address of the subscribed componentparameters
- Parameters- Returns:
- Service data with execution info
- Throws:
AWException
- Error on subscription
-