I have some questions about writing a custom OutputAttributeProcessor. I use WSO2 CEP 2.1.0 and siddhi 1.1.0.
I want to create a custom OutputAttributeProcessor, so I create two java classes, TestFactory implements OutputAttributeProcessorFactory and Test implements OutputAttributeProcessor. Package of two classes is org.wso2.siddhi.extention.
TestFactory must override createAggregator and getProcessorType, and Test must override createNewInstance, getType, processInEventAttribute, and processRemoveEventAttribute.
First question is about each methods.
What should be written in getProcessorType?
And also, what is different between processInEventAttribute, and processRemoveEventAttribute?
In addition, I have one more question. I will create jar file consits of two java classes. I add the jar file to the class path at /repository/components/lib, and the fully-qualified class name for TestFactory to the siddhi.extension file located at /repository/conf/siddhi.
What is content of siddhi.extension?
Is the following a line?
org.wso2.siddhi.extention.TestFactory
If there is sample program about a custom OutputAttributeProcessor, please teach me.
Thank you in advance.