On Sun, Jun 5, 2016 at 10:59 PM, Rajjaz Mohammed <raj...@wso2.com> wrote:
> Hi All, > > When I try FileWriter adapter I’m getting below output in file for both > xml[1] and JSON[2]. Since it's coming through streaming each entries saving > as individual entries[3]. > > Is this expected behaviour? > Yes, that is expected.. > > [1] *XML* > > <events><event><metaData><timestamp>199008131245</timestamp><isPowerSaverEnabled>false</isPowerSaverEnabled><sensorId>100</sensorId><sensorName>temperature</sensorName></metaData><correlationData><longitude>23.45656</longitude><latitude>7.12324</latitude></correlationData><payloadData><humidity>100.34</humidity><sensorValue>23.4545</sensorValue></payloadData></event></events> > <events><event><metaData><timestamp>199008131245</timestamp><isPowerSaverEnabled>true</isPowerSaverEnabled><sensorId>101</sensorId><sensorName>temperature</sensorName></metaData><correlationData><longitude>23.45656</longitude><latitude>7.12324</latitude></correlationData><payloadData><humidity>100.34</humidity><sensorValue>23.4545</sensorValue></payloadData></event></events> > > [2] *JSON* > > {"event":{"metaData":{"timestamp":199008131245,"isPowerSaverEnabled":false,"sensorId":100,"sensorName":"temperature"},"correlationData":{"longitude":23.45656,"latitude":7.12324},"payloadData":{"humidity":100.34,"sensorValue":23.4545}}} > {"event":{"metaData":{"timestamp":199008131245,"isPowerSaverEnabled":true,"sensorId":101,"sensorName":"temperature"},"correlationData":{"longitude":23.45656,"latitude":7.12324},"payloadData":{"humidity":100.34,"sensorValue":23.4545}}} > > [3] > <events><event>data</event></events> > > > On Tue, May 31, 2016 at 11:54 PM, Mohanadarshan Vivekanandalingam < > mo...@wso2.com> wrote: > >> >> >> On Tue, May 31, 2016 at 10:38 AM, Malaka Silva <mal...@wso2.com> wrote: >> >>> Is the scope should only cover local file system? Then IMO this should >>> be the optimum way. >>> >> >> +1 . Yes, covering local file system should be enough here.. >> >> Thanks, >> Mohan >> >> >>> >>> On Tue, May 31, 2016 at 10:25 AM, Rajjaz Mohammed <raj...@wso2.com> >>> wrote: >>> >>>> Hi All, >>>> >>>> I have planed to develop $Subject using NIO[1] . NIO was created to >>>> allow Java programmers to implement high-speed I/O without having to write >>>> custom native code. NIO moves the most time-consuming I/O activities >>>> (namely, filling and draining buffers) back into the operating system, thus >>>> allowing for a great increase in speed[2]. >>>> >>>> Hope NIO was the best choice for CEP file writer. If you have any >>>> suggestions please add in this thread. >>>> >>>> [1] >>>> https://docs.oracle.com/javase/7/docs/api/java/nio/package-summary.html >>>> [2] http://www.ibm.com/developerworks/java/tutorials/j-nio/j-nio.html >>>> >>>> -- >>>> Thank you >>>> Best Regards >>>> >>>> *Rajjaz HM* >>>> Associate Software Engineer >>>> Platform Extension Team >>>> WSO2 Inc. <http://wso2.com/> >>>> lean | enterprise | middleware >>>> Mobile | +94752833834|+94777226874 >>>> Email | raj...@wso2.com >>>> LinkedIn <https://lk.linkedin.com/in/hmohammedrajjaz> | Blogger >>>> <http://wso2experience.blogspot.com/> | WSO2 Profile >>>> <http://wso2.com/about/team/mohammer-rajjaz/> >>>> >>> >>> >>> >>> -- >>> >>> Best Regards, >>> >>> Malaka Silva >>> Senior Tech Lead >>> M: +94 777 219 791 >>> Tel : 94 11 214 5345 >>> Fax :94 11 2145300 >>> Skype : malaka.sampath.silva >>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 >>> Blog : http://mrmalakasilva.blogspot.com/ >>> >>> WSO2, Inc. >>> lean . enterprise . middleware >>> http://www.wso2.com/ >>> http://www.wso2.com/about/team/malaka-silva/ >>> <http://wso2.com/about/team/malaka-silva/> >>> https://store.wso2.com/store/ >>> >>> Save a tree -Conserve nature & Save the world for your future. Print >>> this email only if it is absolutely necessary. >>> >> >> >> >> -- >> *V. Mohanadarshan* >> *Senior Software Engineer,* >> *Data Technologies Team,* >> *WSO2, Inc. http://wso2.com <http://wso2.com> * >> *lean.enterprise.middleware.* >> >> email: mo...@wso2.com >> phone:(+94) 771117673 >> > > > > -- > Thank you > Best Regards > > *Rajjaz HM* > Associate Software Engineer > Platform Extension Team > WSO2 Inc. <http://wso2.com/> > lean | enterprise | middleware > Mobile | +94752833834|+94777226874 > Email | raj...@wso2.com > LinkedIn <https://lk.linkedin.com/in/hmohammedrajjaz> | Blogger > <http://rajjazhm.blogspot.com/> | WSO2 Profile > <http://wso2.com/about/team/mohammer-rajjaz/> > -- *V. Mohanadarshan* *Associate Tech Lead,* *Data Technologies Team,* *WSO2, Inc. http://wso2.com <http://wso2.com> * *lean.enterprise.middleware.* email: mo...@wso2.com phone:(+94) 771117673
_______________________________________________ Architecture mailing list Architecture@wso2.org https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture