Package org.wso2.siddhi.parser.service
Class SiddhiParserApi
- java.lang.Object
-
- org.wso2.siddhi.parser.service.SiddhiParserApi
-
@Path("/siddhi-parser") public class SiddhiParserApi extends ObjectSiddhi Parser Service used by the Siddhi Kubernetes Operator to parse the Siddhi Apps.
-
-
Constructor Summary
Constructors Constructor Description SiddhiParserApi()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringget()javax.ws.rs.core.ResponseparseSiddhiApp(SiddhiParserRequest request)protected voidregisterConfigProvider(org.wso2.carbon.config.provider.ConfigProvider configProvider)protected voidsetSiddhiAppRuntimeService(org.wso2.carbon.streaming.integrator.common.SiddhiAppRuntimeService siddhiAppRuntimeService)protected voidstart(org.osgi.framework.BundleContext bundleContext)This is the activation method of Siddhi Parser Api Service Component.static voidstartStoresApiMicroservice()This is the activation method of Parser Api Microservice.protected voidstop()This is the deactivation method of Siddhi Parser Api Service Component.static voidstopStoresApiMicroservice()This is the deactivate method of Parser Api Microservice.protected voidunregisterConfigProvider(org.wso2.carbon.config.provider.ConfigProvider configProvider)protected voidunsetSiddhiAppRuntimeService(org.wso2.carbon.streaming.integrator.common.SiddhiAppRuntimeService siddhiAppRuntimeService)
-
-
-
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 ExceptionThis 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 ExceptionThis 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)
-
-