From d37aafff48ecb8e2d2c0fa7db5aaa923f33776e1 Mon Sep 17 00:00:00 2001 From: Rasika Perera Date: Mon, 5 Jun 2017 10:08:09 +0530 Subject: [PATCH] iot location stream added for event publishing --- .../src/main/resources/conf/cdm-config.xml | 3 ++ .../src/main/resources/p2.inf | 3 +- .../artifact.xml | 21 +++++++++++++ .../org.wso2.iot.LocationStream-1.0.0.json | 30 +++++++++++++++++++ 4 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 features/device-mgt/org.wso2.carbon.device.mgt.server.feature/src/main/resources/streams/org.wso2.iot.LocationStream_1.0.0/artifact.xml create mode 100644 features/device-mgt/org.wso2.carbon.device.mgt.server.feature/src/main/resources/streams/org.wso2.iot.LocationStream_1.0.0/org.wso2.iot.LocationStream-1.0.0.json diff --git a/features/device-mgt/org.wso2.carbon.device.mgt.server.feature/src/main/resources/conf/cdm-config.xml b/features/device-mgt/org.wso2.carbon.device.mgt.server.feature/src/main/resources/conf/cdm-config.xml index 99d5473b46..6f468399dc 100644 --- a/features/device-mgt/org.wso2.carbon.device.mgt.server.feature/src/main/resources/conf/cdm-config.xml +++ b/features/device-mgt/org.wso2.carbon.device.mgt.server.feature/src/main/resources/conf/cdm-config.xml @@ -66,5 +66,8 @@ 20 20 + + true + diff --git a/features/device-mgt/org.wso2.carbon.device.mgt.server.feature/src/main/resources/p2.inf b/features/device-mgt/org.wso2.carbon.device.mgt.server.feature/src/main/resources/p2.inf index 5675919164..797a60556b 100644 --- a/features/device-mgt/org.wso2.carbon.device.mgt.server.feature/src/main/resources/p2.inf +++ b/features/device-mgt/org.wso2.carbon.device.mgt.server.feature/src/main/resources/p2.inf @@ -5,4 +5,5 @@ org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../featur org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../features/org.wso2.carbon.device.mgt.server_${feature.version}/dbscripts/cdm,target:${installFolder}/../../../dbscripts/cdm,overwrite:true);\ org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../features/org.wso2.carbon.device.mgt.server_${feature.version}/rxts/license.rxt,target:${installFolder}/../../../repository/resources/rxts/license.rxt,overwrite:true);\ org.eclipse.equinox.p2.touchpoint.natives.mkdir(path:${installFolder}/../../../repository/resources/email-templates);\ -org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../features/org.wso2.carbon.device.mgt.server_${feature.version}/email/templates,target:${installFolder}/../../../repository/resources/email-templates,overwrite:true);\ \ No newline at end of file +org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../features/org.wso2.carbon.device.mgt.server_${feature.version}/email/templates,target:${installFolder}/../../../repository/resources/email-templates,overwrite:true);\ +org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../features/org.wso2.carbon.device.mgt.server_${feature.version}/streams,target:${installFolder}/../../../repository/resources/devicetypes/analytics/streams,overwrite:true);\ \ No newline at end of file diff --git a/features/device-mgt/org.wso2.carbon.device.mgt.server.feature/src/main/resources/streams/org.wso2.iot.LocationStream_1.0.0/artifact.xml b/features/device-mgt/org.wso2.carbon.device.mgt.server.feature/src/main/resources/streams/org.wso2.iot.LocationStream_1.0.0/artifact.xml new file mode 100644 index 0000000000..074706d62d --- /dev/null +++ b/features/device-mgt/org.wso2.carbon.device.mgt.server.feature/src/main/resources/streams/org.wso2.iot.LocationStream_1.0.0/artifact.xml @@ -0,0 +1,21 @@ + + + + org.wso2.iot.LocationStream-1.0.0.json + diff --git a/features/device-mgt/org.wso2.carbon.device.mgt.server.feature/src/main/resources/streams/org.wso2.iot.LocationStream_1.0.0/org.wso2.iot.LocationStream-1.0.0.json b/features/device-mgt/org.wso2.carbon.device.mgt.server.feature/src/main/resources/streams/org.wso2.iot.LocationStream_1.0.0/org.wso2.iot.LocationStream-1.0.0.json new file mode 100644 index 0000000000..d275099901 --- /dev/null +++ b/features/device-mgt/org.wso2.carbon.device.mgt.server.feature/src/main/resources/streams/org.wso2.iot.LocationStream_1.0.0/org.wso2.iot.LocationStream-1.0.0.json @@ -0,0 +1,30 @@ +{ + "name": "org.wso2.iot.LocationStream", + "version": "1.0.0", + "nickName": "", + "description": "IoT Server Location Stream", + "metaData": [ + { + "name": "deviceId", + "type": "STRING" + }, + { + "name": "deviceType", + "type": "STRING" + } + ], + "payloadData": [ + { + "name": "timeStamp", + "type": "LONG" + }, + { + "name": "latitude", + "type": "DOUBLE" + }, + { + "name": "longitude", + "type": "DOUBLE" + } + ] +} \ No newline at end of file