Class EnumQueryConnector

All Implemented Interfaces:
QueryConnector, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

public class EnumQueryConnector extends AbstractQueryConnector
EnumQueryConnector Class Connection class between QueryLauncher and EnumBuilder
Author:
Jorge BELLON 27-03-2017
  • Constructor Details

    • EnumQueryConnector

      public EnumQueryConnector(QueryUtil queryUtil, BaseConfigProperties baseConfigProperties, AweElements elements, NumericService numericService, EncodeService encodeService)
      Autowired constructor
      Parameters:
      queryUtil - Query utilities
      baseConfigProperties - Base config properties
      elements - AWE elements
      numericService - Numeric service
      encodeService - Encode service
  • Method Details

    • launch

      public ServiceData launch(Query query, com.fasterxml.jackson.databind.node.ObjectNode parameters) throws AWException
      Launch query
      Parameters:
      query - Query to be launched
      parameters - Parameters
      Returns:
      Query output as service data
      Throws:
      AWException - Query launch error
    • launchEnum

      public ServiceData launchEnum(String enumId, com.fasterxml.jackson.databind.node.ObjectNode parameters) throws AWException
      Launch enumerated
      Parameters:
      enumId - Enumerated identifier
      parameters - Parameters
      Returns:
      Query output as service data
      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 to
      address - Address of the subscribed component
      parameters - Parameters
      Returns:
      Service data with execution info
      Throws:
      AWException - Error on subscription