From f5fc978b5b520a4e56cd3bb378f14dc3970ccf05 Mon Sep 17 00:00:00 2001 From: ayyoob Date: Tue, 19 Apr 2016 23:43:27 +0530 Subject: [PATCH 1/2] refactored analytics scripts --- .../data/publisher/DataPublisherService.java | 3 +- .../android/sense/data/publisher/Event.java | 6 +- .../mqtt/AndroidSenseMQTTHandler.java | 2 - .../mqtt/transport/MQTTTransportHandler.java | 4 +- .../realtimeviewer/ActivitySelectSensor.java | 3 + .../sense/util/SenseClientAsyncExecutor.java | 7 +- .../src/main/res/layout/activity_register.xml | 59 ++++----- .../build.xml | 46 +------ .../EventExecution_AndroidSense.siddhiql | 87 +++++++++++++ .../artifact.xml | 4 +- .../EventPublisher_AndroidSense.xml | 25 ++++ .../artifact.xml | 4 +- .../EventReceiver_AndroidSense.xml | 33 +++++ .../artifact.xml | 4 +- .../artifact.xml | 5 +- .../org.wso2.iot.android.sense_1.0.0.json | 38 ++++++ .../carbonapps/Android_Sense/artifacts.xml | 27 ++++ .../AndroidSenseControllerServiceImpl.java | 12 +- .../transport/AndroidSenseMQTTConnector.java | 2 - .../build.xml | 38 ------ .../Temperature_Sensor_Script.xml | 31 ----- components/iot-plugins/arduino-plugin/pom.xml | 1 - .../DigitalDisplayControllerServiceImpl.java | 1 - .../util/DigitalDisplayMQTTConnector.java | 2 - .../service/impl/DroneRealTimeService.java | 1 - .../transport/DroneAnalyzerXMPPConnector.java | 1 - .../build.xml | 82 ++++++++++++ .../pom.xml | 7 +- .../src/assembly/src.xml | 0 .../EventReceiver_accelerometer.xml | 0 .../artifact.xml | 0 .../artifact.xml | 0 .../org_wso2_iot_devices_accelerometer.xml | 16 ++- .../artifact.xml | 4 +- ....wso2.iot.devices.accelerometer_1.0.0.json | 6 +- .../Accelerometer_Sensor_Script.xml | 5 +- .../Sparkscripts_1.0.0/artifact.xml | 0 .../carbonapps/Accelerometer/artifacts.xml | 4 +- .../EventReceiver_battery.xml | 0 .../Eventreceiver_battery_1.0.0/artifact.xml | 0 .../Eventstore_battery_1.0.0/artifact.xml | 0 .../org_wso2_iot_devices_battery.xml | 4 +- .../Eventstream_battery_1.0.0/artifact.xml | 0 .../org.wso2.iot.devices.battery_1.0.0.json | 2 +- .../Battery_Sensor_Script.xml | 5 +- .../Battery/Sparkscripts_1.0.0/artifact.xml | 0 .../carbonapps/Battery/artifacts.xml | 0 .../EventReceiver_gps.xml | 0 .../GPS/Eventreceiver_gps_1.0.0/artifact.xml | 0 .../GPS/Eventstore_gps_1.0.0/artifact.xml | 0 .../org_wso2_iot_devices_gps.xml | 4 +- .../GPS/Eventstream_gps_1.0.0/artifact.xml | 0 .../org.wso2.iot.devices.gps_1.0.0.json | 8 +- .../Sparkscripts_1.0.0/GPS_Sensor_Script.xml | 3 +- .../GPS/Sparkscripts_1.0.0/artifact.xml | 0 .../resources/carbonapps/GPS/artifacts.xml | 4 +- .../EventReceiver_gravity.xml | 0 .../Eventreceiver_gravaity_1.0.0/artifact.xml | 0 .../Eventstore_gravity_1.0.0/artifact.xml | 0 .../org_wso2_iot_devices_gravity.xml | 16 ++- .../Eventstream_gravity_1.0.0/artifact.xml | 0 .../org.wso2.iot.devices.gravity_1.0.0.json | 6 +- .../Gravity_Sensor_Script.xml | 5 +- .../Gravity/Sparkscripts_1.0.0/artifact.xml | 0 .../carbonapps/Gravity/artifacts.xml | 2 - .../EventReceiver_gyroscope.xml | 0 .../artifact.xml | 0 .../Eventstore_gyroscope_1.0.0/artifact.xml | 0 .../org_wso2_iot_devices_gyroscope.xml | 16 ++- .../Eventstream_gyroscope_1.0.0/artifact.xml | 0 .../org.wso2.iot.devices.gyroscope_1.0.0.json | 6 +- .../Gyroscope_Sensor_Script.xml | 5 +- .../Gyroscope/Sparkscripts_1.0.0/artifact.xml | 0 .../carbonapps/Gyroscope/artifacts.xml | 0 .../EventReceiver_light.xml | 0 .../Eventreceiver_light_1.0.0/artifact.xml | 0 .../Light/Eventstore_light_1.0.0/artifact.xml | 0 .../org_wso2_iot_devices_light.xml | 0 .../Eventstream_light_1.0.0/artifact.xml | 0 .../org.wso2.iot.devices.light_1.0.0.json | 4 +- .../Light_Sensor_Script.xml | 1 - .../Light/Sparkscripts_1.0.0/artifact.xml | 0 .../resources/carbonapps/Light/artifacts.xml | 4 +- .../EventReceiver_magnetic.xml | 0 .../Eventreceiver_magnetic_1.0.0/artifact.xml | 0 .../Eventstore_magnetic_1.0.0/artifact.xml | 0 .../org_wso2_iot_devices_magnetic.xml | 16 ++- .../Eventstream_magnetic_1.0.0/artifact.xml | 0 .../org.wso2.iot.devices.magnetic_1.0.0.json | 6 +- .../Magnetic_Sensor_Script.xml | 4 +- .../Magnetic/Sparkscripts_1.0.0/artifact.xml | 0 .../carbonapps/Magnetic/artifacts.xml | 4 +- .../EventReceiver_pressure.xml | 0 .../Eventreceiver_pressure_1.0.0/artifact.xml | 0 .../Eventstore_pressure_1.0.0/artifact.xml | 0 .../org_wso2_iot_devices_pressure.xml | 0 .../Eventstream_pressure_1.0.0/artifact.xml | 0 .../org.wso2.iot.devices.pressure_1.0.0.json | 4 +- .../Pressure_Sensor_Script.xml | 1 - .../Pressure/Sparkscripts_1.0.0/artifact.xml | 0 .../carbonapps/Pressure/artifacts.xml | 2 - .../EventReceiver_proximity.xml | 0 .../artifact.xml | 0 .../Eventstore_proximity_1.0.0/artifact.xml | 0 .../org_wso2_iot_devices_proximity.xml | 0 .../Eventstream_proximity_1.0.0/artifact.xml | 0 .../org.wso2.iot.devices.proximity_1.0.0.json | 0 .../Proximity_Sensor_Script.xml | 0 .../Proximity/Sparkscripts_1.0.0/artifact.xml | 0 .../carbonapps/Proximity/artifacts.xml | 0 .../EventReceiver_rotation.xml | 0 .../Eventreceiver_rotation_1.0.0/artifact.xml | 0 .../Eventstore_rotation_1.0.0/artifact.xml | 0 .../org_wso2_iot_devices_rotation.xml | 16 ++- .../Eventstream_rotation_1.0.0/artifact.xml | 0 .../org.wso2.iot.devices.rotation_1.0.0.json | 6 +- .../Rotation_Sensor_Script.xml | 5 +- .../Rotation/Sparkscripts_1.0.0/artifact.xml | 0 .../carbonapps/Rotation/artifacts.xml | 0 .../EventPublisher_temperature.xml} | 11 +- .../artifact.xml | 4 +- .../EventReceiver_temperature.xml | 0 .../artifact.xml | 0 .../Eventstore_temperature_1.0.0/artifact.xml | 0 .../org_wso2_iot_devices_temperature.xml | 0 .../artifact.xml | 0 ...rg.wso2.iot.devices.temperature_1.0.0.json | 0 .../Temperature_Sensor_Script.xml | 1 - .../Sparkscripts_1.0.0/artifact.xml | 0 .../carbonapps/Temperature}/artifacts.xml | 5 +- .../EventReceiver_wordcount.xml | 0 .../artifact.xml | 0 .../Eventstore_wordcount_1.0.0/artifact.xml | 0 .../org_wso2_iot_devices_wordcount.xml | 0 .../Eventstream_wordcount_1.0.0/artifact.xml | 0 .../org.wso2.iot.devices.wordcount_1.0.0.json | 0 .../Sparkscripts_1.0.0/Wordcount_Script.xml | 0 .../WordCount/Sparkscripts_1.0.0/artifact.xml | 0 .../carbonapps/WordCount/artifacts.xml | 2 - components/iot-plugins/iot-analytics/pom.xml | 39 ++++++ .../transport/mqtt/MQTTTransportHandler.java | 6 +- .../transport/xmpp/XMPPTransportHandler.java | 3 - components/iot-plugins/pom.xml | 1 + .../build.xml | 38 ------ .../pom.xml | 92 -------------- .../src/assembly/src.xml | 36 ------ .../EventReceiver_temperature.xml | 26 ---- .../Eventstore_temperature_1.0.0/artifact.xml | 22 ---- .../org_wso2_iot_devices_temperature.xml | 62 --------- ...rg.wso2.iot.devices.temperature_1.0.0.json | 20 --- .../Temperature_Sensor/artifacts.xml | 29 ----- .../RaspberryPiControllerServiceImpl.java | 1 - .../transport/RaspberryPiMQTTConnector.java | 1 - .../iot-plugins/raspberrypi-plugin/pom.xml | 1 - .../transport/mqtt/MQTTTransportHandler.java | 1 - .../build.xml | 38 ------ .../pom.xml | 92 -------------- .../src/assembly/src.xml | 36 ------ .../Eventstore_temperature_1.0.0/artifact.xml | 22 ---- .../org_wso2_iot_devices_temperature.xml | 62 --------- ...rg.wso2.iot.devices.temperature_1.0.0.json | 20 --- .../Temperature_Sensor_Script.xml | 31 ----- .../Temperature_Sensor/artifacts.xml | 29 ----- ...VirtualFireAlarmControllerServiceImpl.java | 3 - .../VirtualFireAlarmMQTTConnector.java | 2 - .../VirtualFireAlarmXMPPConnector.java | 1 - .../virtual-fire-alarm-plugin/pom.xml | 1 - .../pom.xml | 5 + .../pom.xml | 17 +-- .../pom.xml | 120 ++++++++++++++++++ .../src/main/resources/build.properties | 1 + .../src/main/resources/p2.inf | 3 + .../iot-analytics-feature/pom.xml | 40 ++++++ features/iot-plugins-feature/pom.xml | 1 + .../pom.xml | 17 +-- .../pom.xml | 64 +++++----- .../src/main/resources/p2.inf | 2 - 177 files changed, 732 insertions(+), 1005 deletions(-) create mode 100644 components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/Android_Sense/EventExecution_AndroidSense_1.0.0/EventExecution_AndroidSense.siddhiql rename components/iot-plugins/{raspberrypi-plugin/org.wso2.carbon.device.mgt.iot.raspberrypi.analytics/src/main/resources/carbonapps/Temperature_Sensor/Eventstream_temperature_1.0.0 => androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/Android_Sense/EventExecution_AndroidSense_1.0.0}/artifact.xml (81%) create mode 100644 components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/Android_Sense/EventPublisher_AndroidSense_1.0.0/EventPublisher_AndroidSense.xml rename components/iot-plugins/{virtual-fire-alarm-plugin/org.wso2.carbon.device.mgt.iot.virtualfirealarm.analytics/src/main/resources/carbonapps/Temperature_Sensor/Sparkscripts_1.0.0 => androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/Android_Sense/EventPublisher_AndroidSense_1.0.0}/artifact.xml (81%) create mode 100644 components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/Android_Sense/EventReceiver_AndroidSense_1.0.0/EventReceiver_AndroidSense.xml rename components/iot-plugins/{virtual-fire-alarm-plugin/org.wso2.carbon.device.mgt.iot.virtualfirealarm.analytics/src/main/resources/carbonapps/Temperature_Sensor/Eventreceiver_temperature_1.0.0 => androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/Android_Sense/EventReceiver_AndroidSense_1.0.0}/artifact.xml (81%) rename components/iot-plugins/{raspberrypi-plugin/org.wso2.carbon.device.mgt.iot.raspberrypi.analytics/src/main/resources/carbonapps/Temperature_Sensor/Eventreceiver_temperature_1.0.0 => androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/Android_Sense/EventStream_AndroidSense_1.0.0}/artifact.xml (81%) create mode 100644 components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/Android_Sense/EventStream_AndroidSense_1.0.0/org.wso2.iot.android.sense_1.0.0.json create mode 100644 components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/Android_Sense/artifacts.xml delete mode 100644 components/iot-plugins/arduino-plugin/org.wso2.carbon.device.mgt.iot.arduino.analytics/build.xml delete mode 100644 components/iot-plugins/arduino-plugin/org.wso2.carbon.device.mgt.iot.arduino.analytics/src/main/resources/carbonapps/Temperature_Sensor/Sparkscripts_1.0.0/Temperature_Sensor_Script.xml create mode 100644 components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/build.xml rename components/iot-plugins/{arduino-plugin/org.wso2.carbon.device.mgt.iot.arduino.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/pom.xml (94%) rename components/iot-plugins/{arduino-plugin/org.wso2.carbon.device.mgt.iot.arduino.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/assembly/src.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Accelerometer/Eventreceiver_accelerometer_1.0.0/EventReceiver_accelerometer.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Accelerometer/Eventreceiver_accelerometer_1.0.0/artifact.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Accelerometer/Eventstore_accelerometer_1.0.0/artifact.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Accelerometer/Eventstore_accelerometer_1.0.0/org_wso2_iot_devices_accelerometer.xml (81%) rename components/iot-plugins/{virtual-fire-alarm-plugin/org.wso2.carbon.device.mgt.iot.virtualfirealarm.analytics/src/main/resources/carbonapps/Temperature_Sensor/Eventstream_temperature_1.0.0 => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Accelerometer/Eventstream_accelerometer_1.0.0}/artifact.xml (81%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Accelerometer/Eventstream_accelerometer_1.0.0/org.wso2.iot.devices.accelerometer_1.0.0.json (80%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Accelerometer/Sparkscripts_1.0.0/Accelerometer_Sensor_Script.xml (69%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Accelerometer/Sparkscripts_1.0.0/artifact.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Accelerometer/artifacts.xml (97%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Battery/Eventreceiver_battery_1.0.0/EventReceiver_battery.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Battery/Eventreceiver_battery_1.0.0/artifact.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Battery/Eventstore_battery_1.0.0/artifact.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Battery/Eventstore_battery_1.0.0/org_wso2_iot_devices_battery.xml (96%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Battery/Eventstream_battery_1.0.0/artifact.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Battery/Eventstream_battery_1.0.0/org.wso2.iot.devices.battery_1.0.0.json (91%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Battery/Sparkscripts_1.0.0/Battery_Sensor_Script.xml (65%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Battery/Sparkscripts_1.0.0/artifact.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Battery/artifacts.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/GPS/Eventreceiver_gps_1.0.0/EventReceiver_gps.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/GPS/Eventreceiver_gps_1.0.0/artifact.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/GPS/Eventstore_gps_1.0.0/artifact.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/GPS/Eventstore_gps_1.0.0/org_wso2_iot_devices_gps.xml (96%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/GPS/Eventstream_gps_1.0.0/artifact.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/GPS/Eventstream_gps_1.0.0/org.wso2.iot.devices.gps_1.0.0.json (78%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/GPS/Sparkscripts_1.0.0/GPS_Sensor_Script.xml (85%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/GPS/Sparkscripts_1.0.0/artifact.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/GPS/artifacts.xml (98%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Gravity/Eventreceiver_gravaity_1.0.0/EventReceiver_gravity.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Gravity/Eventreceiver_gravaity_1.0.0/artifact.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Gravity/Eventstore_gravity_1.0.0/artifact.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Gravity/Eventstore_gravity_1.0.0/org_wso2_iot_devices_gravity.xml (81%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Gravity/Eventstream_gravity_1.0.0/artifact.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Gravity/Eventstream_gravity_1.0.0/org.wso2.iot.devices.gravity_1.0.0.json (79%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Gravity/Sparkscripts_1.0.0/Gravity_Sensor_Script.xml (77%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Gravity/Sparkscripts_1.0.0/artifact.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Gravity/artifacts.xml (99%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Gyroscope/Eventreceiver_gyroscope_1.0.0/EventReceiver_gyroscope.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Gyroscope/Eventreceiver_gyroscope_1.0.0/artifact.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Gyroscope/Eventstore_gyroscope_1.0.0/artifact.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Gyroscope/Eventstore_gyroscope_1.0.0/org_wso2_iot_devices_gyroscope.xml (81%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Gyroscope/Eventstream_gyroscope_1.0.0/artifact.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Gyroscope/Eventstream_gyroscope_1.0.0/org.wso2.iot.devices.gyroscope_1.0.0.json (79%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Gyroscope/Sparkscripts_1.0.0/Gyroscope_Sensor_Script.xml (66%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Gyroscope/Sparkscripts_1.0.0/artifact.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Gyroscope/artifacts.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Light/Eventreceiver_light_1.0.0/EventReceiver_light.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Light/Eventreceiver_light_1.0.0/artifact.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Light/Eventstore_light_1.0.0/artifact.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Light/Eventstore_light_1.0.0/org_wso2_iot_devices_light.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Light/Eventstream_light_1.0.0/artifact.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Light/Eventstream_light_1.0.0/org.wso2.iot.devices.light_1.0.0.json (88%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Light/Sparkscripts_1.0.0/Light_Sensor_Script.xml (98%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Light/Sparkscripts_1.0.0/artifact.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Light/artifacts.xml (97%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Magnetic/Eventreceiver_magnetic_1.0.0/EventReceiver_magnetic.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Magnetic/Eventreceiver_magnetic_1.0.0/artifact.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Magnetic/Eventstore_magnetic_1.0.0/artifact.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Magnetic/Eventstore_magnetic_1.0.0/org_wso2_iot_devices_magnetic.xml (81%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Magnetic/Eventstream_magnetic_1.0.0/artifact.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Magnetic/Eventstream_magnetic_1.0.0/org.wso2.iot.devices.magnetic_1.0.0.json (79%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Magnetic/Sparkscripts_1.0.0/Magnetic_Sensor_Script.xml (75%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Magnetic/Sparkscripts_1.0.0/artifact.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Magnetic/artifacts.xml (98%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Pressure/Eventreceiver_pressure_1.0.0/EventReceiver_pressure.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Pressure/Eventreceiver_pressure_1.0.0/artifact.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Pressure/Eventstore_pressure_1.0.0/artifact.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Pressure/Eventstore_pressure_1.0.0/org_wso2_iot_devices_pressure.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Pressure/Eventstream_pressure_1.0.0/artifact.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Pressure/Eventstream_pressure_1.0.0/org.wso2.iot.devices.pressure_1.0.0.json (88%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Pressure/Sparkscripts_1.0.0/Pressure_Sensor_Script.xml (99%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Pressure/Sparkscripts_1.0.0/artifact.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Pressure/artifacts.xml (99%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Proximity/Eventreceiver_proximity_1.0.0/EventReceiver_proximity.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Proximity/Eventreceiver_proximity_1.0.0/artifact.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Proximity/Eventstore_proximity_1.0.0/artifact.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Proximity/Eventstore_proximity_1.0.0/org_wso2_iot_devices_proximity.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Proximity/Eventstream_proximity_1.0.0/artifact.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Proximity/Eventstream_proximity_1.0.0/org.wso2.iot.devices.proximity_1.0.0.json (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Proximity/Sparkscripts_1.0.0/Proximity_Sensor_Script.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Proximity/Sparkscripts_1.0.0/artifact.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Proximity/artifacts.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Rotation/Eventreceiver_rotation_1.0.0/EventReceiver_rotation.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Rotation/Eventreceiver_rotation_1.0.0/artifact.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Rotation/Eventstore_rotation_1.0.0/artifact.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Rotation/Eventstore_rotation_1.0.0/org_wso2_iot_devices_rotation.xml (81%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Rotation/Eventstream_rotation_1.0.0/artifact.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Rotation/Eventstream_rotation_1.0.0/org.wso2.iot.devices.rotation_1.0.0.json (79%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Rotation/Sparkscripts_1.0.0/Rotation_Sensor_Script.xml (66%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Rotation/Sparkscripts_1.0.0/artifact.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/Rotation/artifacts.xml (100%) rename components/iot-plugins/{virtual-fire-alarm-plugin/org.wso2.carbon.device.mgt.iot.virtualfirealarm.analytics/src/main/resources/carbonapps/Temperature_Sensor/Eventreceiver_temperature_1.0.0/EventReceiver_temperature.xml => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Temperature/Eventpublisher_temperature_1.0.0/EventPublisher_temperature.xml} (69%) rename components/iot-plugins/{raspberrypi-plugin/org.wso2.carbon.device.mgt.iot.raspberrypi.analytics/src/main/resources/carbonapps/Temperature_Sensor/Sparkscripts_1.0.0 => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Temperature/Eventpublisher_temperature_1.0.0}/artifact.xml (81%) rename components/iot-plugins/{arduino-plugin/org.wso2.carbon.device.mgt.iot.arduino.analytics/src/main/resources/carbonapps/Temperature_Sensor => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Temperature}/Eventreceiver_temperature_1.0.0/EventReceiver_temperature.xml (100%) rename components/iot-plugins/{arduino-plugin/org.wso2.carbon.device.mgt.iot.arduino.analytics/src/main/resources/carbonapps/Temperature_Sensor => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Temperature}/Eventreceiver_temperature_1.0.0/artifact.xml (100%) rename components/iot-plugins/{arduino-plugin/org.wso2.carbon.device.mgt.iot.arduino.analytics/src/main/resources/carbonapps/Temperature_Sensor => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Temperature}/Eventstore_temperature_1.0.0/artifact.xml (100%) rename components/iot-plugins/{arduino-plugin/org.wso2.carbon.device.mgt.iot.arduino.analytics/src/main/resources/carbonapps/Temperature_Sensor => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Temperature}/Eventstore_temperature_1.0.0/org_wso2_iot_devices_temperature.xml (100%) rename components/iot-plugins/{arduino-plugin/org.wso2.carbon.device.mgt.iot.arduino.analytics/src/main/resources/carbonapps/Temperature_Sensor => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Temperature}/Eventstream_temperature_1.0.0/artifact.xml (100%) rename components/iot-plugins/{arduino-plugin/org.wso2.carbon.device.mgt.iot.arduino.analytics/src/main/resources/carbonapps/Temperature_Sensor => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Temperature}/Eventstream_temperature_1.0.0/org.wso2.iot.devices.temperature_1.0.0.json (100%) rename components/iot-plugins/{raspberrypi-plugin/org.wso2.carbon.device.mgt.iot.raspberrypi.analytics/src/main/resources/carbonapps/Temperature_Sensor => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Temperature}/Sparkscripts_1.0.0/Temperature_Sensor_Script.xml (99%) rename components/iot-plugins/{arduino-plugin/org.wso2.carbon.device.mgt.iot.arduino.analytics/src/main/resources/carbonapps/Temperature_Sensor => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Temperature}/Sparkscripts_1.0.0/artifact.xml (100%) rename components/iot-plugins/{arduino-plugin/org.wso2.carbon.device.mgt.iot.arduino.analytics/src/main/resources/carbonapps/Temperature_Sensor => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Temperature}/artifacts.xml (85%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/WordCount/Eventreceiver_wordcount_1.0.0/EventReceiver_wordcount.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/WordCount/Eventreceiver_wordcount_1.0.0/artifact.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/WordCount/Eventstore_wordcount_1.0.0/artifact.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/WordCount/Eventstore_wordcount_1.0.0/org_wso2_iot_devices_wordcount.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/WordCount/Eventstream_wordcount_1.0.0/artifact.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/WordCount/Eventstream_wordcount_1.0.0/org.wso2.iot.devices.wordcount_1.0.0.json (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/WordCount/Sparkscripts_1.0.0/Wordcount_Script.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/WordCount/Sparkscripts_1.0.0/artifact.xml (100%) rename components/iot-plugins/{androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics => iot-analytics/org.wso2.carbon.device.mgt.iot.analytics}/src/main/resources/carbonapps/WordCount/artifacts.xml (99%) create mode 100644 components/iot-plugins/iot-analytics/pom.xml delete mode 100644 components/iot-plugins/raspberrypi-plugin/org.wso2.carbon.device.mgt.iot.raspberrypi.analytics/build.xml delete mode 100644 components/iot-plugins/raspberrypi-plugin/org.wso2.carbon.device.mgt.iot.raspberrypi.analytics/pom.xml delete mode 100644 components/iot-plugins/raspberrypi-plugin/org.wso2.carbon.device.mgt.iot.raspberrypi.analytics/src/assembly/src.xml delete mode 100644 components/iot-plugins/raspberrypi-plugin/org.wso2.carbon.device.mgt.iot.raspberrypi.analytics/src/main/resources/carbonapps/Temperature_Sensor/Eventreceiver_temperature_1.0.0/EventReceiver_temperature.xml delete mode 100644 components/iot-plugins/raspberrypi-plugin/org.wso2.carbon.device.mgt.iot.raspberrypi.analytics/src/main/resources/carbonapps/Temperature_Sensor/Eventstore_temperature_1.0.0/artifact.xml delete mode 100644 components/iot-plugins/raspberrypi-plugin/org.wso2.carbon.device.mgt.iot.raspberrypi.analytics/src/main/resources/carbonapps/Temperature_Sensor/Eventstore_temperature_1.0.0/org_wso2_iot_devices_temperature.xml delete mode 100644 components/iot-plugins/raspberrypi-plugin/org.wso2.carbon.device.mgt.iot.raspberrypi.analytics/src/main/resources/carbonapps/Temperature_Sensor/Eventstream_temperature_1.0.0/org.wso2.iot.devices.temperature_1.0.0.json delete mode 100644 components/iot-plugins/raspberrypi-plugin/org.wso2.carbon.device.mgt.iot.raspberrypi.analytics/src/main/resources/carbonapps/Temperature_Sensor/artifacts.xml delete mode 100644 components/iot-plugins/virtual-fire-alarm-plugin/org.wso2.carbon.device.mgt.iot.virtualfirealarm.analytics/build.xml delete mode 100644 components/iot-plugins/virtual-fire-alarm-plugin/org.wso2.carbon.device.mgt.iot.virtualfirealarm.analytics/pom.xml delete mode 100644 components/iot-plugins/virtual-fire-alarm-plugin/org.wso2.carbon.device.mgt.iot.virtualfirealarm.analytics/src/assembly/src.xml delete mode 100644 components/iot-plugins/virtual-fire-alarm-plugin/org.wso2.carbon.device.mgt.iot.virtualfirealarm.analytics/src/main/resources/carbonapps/Temperature_Sensor/Eventstore_temperature_1.0.0/artifact.xml delete mode 100644 components/iot-plugins/virtual-fire-alarm-plugin/org.wso2.carbon.device.mgt.iot.virtualfirealarm.analytics/src/main/resources/carbonapps/Temperature_Sensor/Eventstore_temperature_1.0.0/org_wso2_iot_devices_temperature.xml delete mode 100644 components/iot-plugins/virtual-fire-alarm-plugin/org.wso2.carbon.device.mgt.iot.virtualfirealarm.analytics/src/main/resources/carbonapps/Temperature_Sensor/Eventstream_temperature_1.0.0/org.wso2.iot.devices.temperature_1.0.0.json delete mode 100644 components/iot-plugins/virtual-fire-alarm-plugin/org.wso2.carbon.device.mgt.iot.virtualfirealarm.analytics/src/main/resources/carbonapps/Temperature_Sensor/Sparkscripts_1.0.0/Temperature_Sensor_Script.xml delete mode 100644 components/iot-plugins/virtual-fire-alarm-plugin/org.wso2.carbon.device.mgt.iot.virtualfirealarm.analytics/src/main/resources/carbonapps/Temperature_Sensor/artifacts.xml create mode 100644 features/iot-plugins-feature/iot-analytics-feature/org.wso2.carbon.device.mgt.iot.analytics.feature/pom.xml create mode 100644 features/iot-plugins-feature/iot-analytics-feature/org.wso2.carbon.device.mgt.iot.analytics.feature/src/main/resources/build.properties create mode 100644 features/iot-plugins-feature/iot-analytics-feature/org.wso2.carbon.device.mgt.iot.analytics.feature/src/main/resources/p2.inf create mode 100644 features/iot-plugins-feature/iot-analytics-feature/pom.xml diff --git a/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.agent/app/src/main/java/org/wso2/carbon/iot/android/sense/data/publisher/DataPublisherService.java b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.agent/app/src/main/java/org/wso2/carbon/iot/android/sense/data/publisher/DataPublisherService.java index 51c7cb807..0f852fd6c 100644 --- a/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.agent/app/src/main/java/org/wso2/carbon/iot/android/sense/data/publisher/DataPublisherService.java +++ b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.agent/app/src/main/java/org/wso2/carbon/iot/android/sense/data/publisher/DataPublisherService.java @@ -23,6 +23,7 @@ import android.util.Log; import org.json.JSONArray; import org.json.JSONException; +import org.json.JSONObject; import org.wso2.carbon.iot.android.sense.data.publisher.mqtt.AndroidSenseMQTTHandler; import org.wso2.carbon.iot.android.sense.data.publisher.mqtt.transport.MQTTTransportHandler; import org.wso2.carbon.iot.android.sense.data.publisher.mqtt.transport.TransportHandlerException; @@ -149,7 +150,7 @@ public class DataPublisherService extends Service { for (Event event : events) { event.setOwner(user); event.setDeviceId(deviceId); - jsonArray.put(event.getEvent()); + jsonArray.put(new JSONObject().put("event", event.getEvent())); } MQTTTransportHandler mqttTransportHandler = AndroidSenseMQTTHandler.getInstance(context); if (!mqttTransportHandler.isConnected()) { diff --git a/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.agent/app/src/main/java/org/wso2/carbon/iot/android/sense/data/publisher/Event.java b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.agent/app/src/main/java/org/wso2/carbon/iot/android/sense/data/publisher/Event.java index 554c38b12..a8d936010 100644 --- a/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.agent/app/src/main/java/org/wso2/carbon/iot/android/sense/data/publisher/Event.java +++ b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.agent/app/src/main/java/org/wso2/carbon/iot/android/sense/data/publisher/Event.java @@ -11,7 +11,7 @@ public class Event { private String owner; private String deviceId; private String type; - private float battery; + private int battery; private double gps[]; //lat,long private float accelerometer[]; //x,y,z private float magnetic[]; //x,y,z @@ -26,11 +26,11 @@ public class Event { private String wordStatus; private long timestamp; - private float getBattery() { + private int getBattery() { return battery; } - public void setBattery(float battery) { + public void setBattery(int battery) { this.type = "battery"; this.battery = battery; } diff --git a/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.agent/app/src/main/java/org/wso2/carbon/iot/android/sense/data/publisher/mqtt/AndroidSenseMQTTHandler.java b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.agent/app/src/main/java/org/wso2/carbon/iot/android/sense/data/publisher/mqtt/AndroidSenseMQTTHandler.java index 5ae9b3739..989ad6d38 100644 --- a/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.agent/app/src/main/java/org/wso2/carbon/iot/android/sense/data/publisher/mqtt/AndroidSenseMQTTHandler.java +++ b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.agent/app/src/main/java/org/wso2/carbon/iot/android/sense/data/publisher/mqtt/AndroidSenseMQTTHandler.java @@ -104,7 +104,6 @@ public class AndroidSenseMQTTHandler extends MQTTTransportHandler { }; Thread connectorThread = new Thread(connector); - connectorThread.setDaemon(true); connectorThread.start(); } @@ -207,7 +206,6 @@ public class AndroidSenseMQTTHandler extends MQTTTransportHandler { }; Thread terminatorThread = new Thread(stopConnection); - terminatorThread.setDaemon(true); terminatorThread.start(); } diff --git a/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.agent/app/src/main/java/org/wso2/carbon/iot/android/sense/data/publisher/mqtt/transport/MQTTTransportHandler.java b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.agent/app/src/main/java/org/wso2/carbon/iot/android/sense/data/publisher/mqtt/transport/MQTTTransportHandler.java index 689138d72..5fc5112d6 100644 --- a/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.agent/app/src/main/java/org/wso2/carbon/iot/android/sense/data/publisher/mqtt/transport/MQTTTransportHandler.java +++ b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.agent/app/src/main/java/org/wso2/carbon/iot/android/sense/data/publisher/mqtt/transport/MQTTTransportHandler.java @@ -81,8 +81,8 @@ public abstract class MQTTTransportHandler implements MqttCallback, TransportHan this.clientWillTopic = DISCONNECTION_WILL_TOPIC_PREFIX + SenseConstants.DEVICE_TYPE; this.mqttBrokerEndPoint = "tcp://" + LocalRegistry.getServerHost(context) + ":" + LocalRegistry.getMqttPort(context); this.timeoutInterval = DEFAULT_TIMEOUT_INTERVAL; - setUsernameAndPassword(LocalRegistry.getAccessToken(context), ""); this.initMQTTClient(); + setUsernameAndPassword(LocalRegistry.getAccessToken(context), ""); } /** @@ -308,7 +308,6 @@ public abstract class MQTTTransportHandler implements MqttCallback, TransportHan connect(); } }; - reconnectThread.setDaemon(true); reconnectThread.start(); } @@ -333,7 +332,6 @@ public abstract class MQTTTransportHandler implements MqttCallback, TransportHan } } }; - messageProcessorThread.setDaemon(true); messageProcessorThread.start(); } diff --git a/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.agent/app/src/main/java/org/wso2/carbon/iot/android/sense/realtimeviewer/ActivitySelectSensor.java b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.agent/app/src/main/java/org/wso2/carbon/iot/android/sense/realtimeviewer/ActivitySelectSensor.java index 053b7e38c..b93a3a627 100644 --- a/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.agent/app/src/main/java/org/wso2/carbon/iot/android/sense/realtimeviewer/ActivitySelectSensor.java +++ b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.agent/app/src/main/java/org/wso2/carbon/iot/android/sense/realtimeviewer/ActivitySelectSensor.java @@ -180,6 +180,9 @@ public class ActivitySelectSensor extends AppCompatActivity LocalRegistry.removeUsername(getApplicationContext()); LocalRegistry.removeDeviceId(getApplicationContext()); LocalRegistry.removeServerURL(getApplicationContext()); + LocalRegistry.removeAccessToken(getApplicationContext()); + LocalRegistry.removeRefreshToken(getApplicationContext()); + LocalRegistry.removeMqttPort(getApplicationContext()); LocalRegistry.setExist(false); //Stop the current running background services. stopService(new Intent(this, SenseService.class)); //Stop sensor reading service diff --git a/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.agent/app/src/main/java/org/wso2/carbon/iot/android/sense/util/SenseClientAsyncExecutor.java b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.agent/app/src/main/java/org/wso2/carbon/iot/android/sense/util/SenseClientAsyncExecutor.java index 79b3d740b..c16759ee7 100644 --- a/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.agent/app/src/main/java/org/wso2/carbon/iot/android/sense/util/SenseClientAsyncExecutor.java +++ b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.agent/app/src/main/java/org/wso2/carbon/iot/android/sense/util/SenseClientAsyncExecutor.java @@ -95,6 +95,7 @@ public class SenseClientAsyncExecutor extends AsyncTask responseMap = new HashMap<>(); responseMap.put(STATUS, "200"); + AccessTokenInfo accessTokenInfo = null; try { //DynamicClientRegistraiton. DynamicClientRegistrationService dynamicClientRegistrationService = Feign.builder() @@ -116,7 +117,7 @@ public class SenseClientAsyncExecutor extends AsyncTask + android:paddingTop="@dimen/activity_vertical_margin" tools:context="org.wso2.carbon.iot.android.sense.RegisterActivity" + android:weightSum="1"> @@ -14,7 +15,8 @@ + android:fillViewport="false" + android:layout_weight="0.07"> @@ -37,43 +39,36 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="@string/hostname" android:id="@+id/hostname" - android:text="https://localhost:9443" + android:text="https://10.10.10.149:9443" android:inputType="text" android:maxLines="1" android:singleLine="true"/> -