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?
[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 <
[email protected]> wrote:
>
>
> On Tue, May 31, 2016 at 10:38 AM, Malaka Silva <[email protected]> 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 <[email protected]>
>> 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 | [email protected]
>>> 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: [email protected]
> 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 | [email protected]
LinkedIn <https://lk.linkedin.com/in/hmohammedrajjaz> | Blogger
<http://rajjazhm.blogspot.com/> | WSO2 Profile
<http://wso2.com/about/team/mohammer-rajjaz/>
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture