Class SiddhiParserApi


  • @Path("/siddhi-parser")
    public class SiddhiParserApi
    extends Object
    Siddhi Parser Service used by the Siddhi Kubernetes Operator to parse the Siddhi Apps.
    • Constructor Detail

      • SiddhiParserApi

        public SiddhiParserApi()
    • Method Detail

      • get

        @GET
        @Path("/")
        public String get()
      • parseSiddhiApp

        @POST
        @Path("/parse")
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response parseSiddhiApp​(SiddhiParserRequest request)
                                                 throws javax.ws.rs.NotFoundException
        Throws:
        javax.ws.rs.NotFoundException
      • start

        protected void start​(org.osgi.framework.BundleContext bundleContext)
                      throws Exception
        This is the activation method of Siddhi Parser Api Service Component. This will be called when its references are satisfied.
        Parameters:
        bundleContext - the bundle context instance of this bundle.
        Throws:
        Exception - this will be thrown if an issue occurs while executing the activate method
      • stop

        protected void stop()
                     throws Exception
        This is the deactivation method of Siddhi Parser Api Service Component. This will be called when this component is being stopped or references are satisfied during runtime.
        Throws:
        Exception - this will be thrown if an issue occurs while executing the de-activate method
      • startStoresApiMicroservice

        public static void startStoresApiMicroservice()
        This is the activation method of Parser Api Microservice.
      • stopStoresApiMicroservice

        public static void stopStoresApiMicroservice()
        This is the deactivate method of Parser Api Microservice.
      • registerConfigProvider

        protected void registerConfigProvider​(org.wso2.carbon.config.provider.ConfigProvider configProvider)
      • unregisterConfigProvider

        protected void unregisterConfigProvider​(org.wso2.carbon.config.provider.ConfigProvider configProvider)
      • setSiddhiAppRuntimeService

        protected void setSiddhiAppRuntimeService​(org.wso2.carbon.streaming.integrator.common.SiddhiAppRuntimeService siddhiAppRuntimeService)
      • unsetSiddhiAppRuntimeService

        protected void unsetSiddhiAppRuntimeService​(org.wso2.carbon.streaming.integrator.common.SiddhiAppRuntimeService siddhiAppRuntimeService)