Skip to content

QoS Manager Use

mmarjanovic edited this page Jul 11, 2014 · 4 revisions

System requirements

All you need to run this project is Java 7.0 (Java SDK 1.7) or later, the CUPUS library installed to your local maven repository and JBoss Enterprise Application Platform 6 or JBoss AS 7.1.

Deployment/Undeployment

###JBoss AS 6.0 Deploy: To deploy the QoSManager on the JBos AS6.0, copy the “QoSManager.war” to the server's “deploy” directory.

Undeploy: Remove the app war (QoSManager.war) from the JBoss deploy directory while the server is running.

JBoss AS 7.0

Deploy: To deploy the QoSManager on JBos AS 7.0, copy the “QoSManager.war” to the server's “standalone/deployments” directory.

Undeploy: To undeploy the application, you need to remove the “.deployed” marker file that is generated upon successful deployment of the QoSManager module

You can find more detailed directions on the ins and outs of deployment on JBoss AS7 here: https://docs.jboss.org/author/display/AS7/Application+deployment

Manual

In case you would like to use a third party application to invoke QoS Manager services, use SOAP web services at the URLs listed below (the inputs and outputs of the services are described in Table 4 above):

Configuration file example

An example of the configuration parameters required for the QoS Manager initialization that are located into the openiot.properties file are provided below:

...

#QoS Manager
qos.name=QualityOfService
qos.brokerIP=localhost
qos.brokerPort=10000

qos.gsnAddress=localhost:22001
qos.wrapperPort=30000

qos.numberOfSensors = 3
qos.highBatteryLevel = 70
qos.lowBatteryLevel = 30

qos.sensorParameters = temperature,humidity,pressure,no2,so2,co,batterys,batterymp,latitude,longitude
qos.sensorTypes = double,double,double,double,double,double,double,double,double,double
qos.lsmProperty = http://lsm.deri.ie/OpenIoT/Temperature,http://lsm.deri.ie/OpenIoT/Humidity, http://lsm.deri.ie/OpenIoT/Pressure,http://lsm.deri.ie/OpenIoT/NO2,http://lsm.deri.ie/OpenIoT/SO2,http://lsm.deri.ie/OpenIoT/CO,http://lsm.deri.ie/OpenIoT/BatterySensor,http://lsm.deri.ie/OpenIoT/BatteryMobilePhone,http://lsm.deri.ie/OpenIoT/Latitude,http://lsm.deri.ie/OpenIoT/Longitude
qos.lsmUnit = C,Percent,hPa,ug/m3,ug/m3,mg/m3,Percent,Percent,Deg,Deg
qos.testing = true
qos.logWriting = true

Clone this wiki locally