Class 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 Detail

      • QueryLauncher

        public QueryLauncher()
    • 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 - Query
        parameters - 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 - Query
        address - Component address
        parameters - Parameters
        Returns:
        Query data
        Throws:
        AWException - Query has failed