Dan-Dongcheol-Lee / push-interface

Push interface Vert.x module

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Push Interface Vert.x Module (ongoing)

How to build push-interface project

The following procedure needs to be performed for deploying push-interface module. Install nodejs and vertx in your desktop or server.

Install gulp related tasks by using npm.

  • /> npm update

Run 'gulp bower', 'gulp' to build a module distribution.

  • /> gulp bower
  • /> gulp

'fullboxmod-push-interface1.0.0.zip' file will be created in 'dist' directory.

Run the following command to start up push-interface module with conf.json in 'src' directory which can be used for the module configuration.

  • dist/> vertx runzip fullboxmod-push-interface1.0.0.zip -conf conf.json

RESTful APIs for push interface

push-interface application provides RESTful APIs to manage and deploy push interfaces and event handlers and monitor push logs. The following APIs are available at the moment.

This API must be called once to setup all necessary directories such as push interfaces app files and the backup directory.

This API performs searching push interfaces.

This API performs searching a push interface by pushId.

This API performs adding the given push interface for request:

{"pushId": "P1",
"createdDate": "2015-01-01 12:12:12",
"creator": "DanLee",
"port": 12200,
"inboundAddr": "in1",
"outboundAddr": "out1",
"handler": "H1",
"logging": false,
"msgFilter": null,
"desc": "Description"}

This API performs searching event handlers.

This API performs searching an event handler by handlerId.

This API performs adding the given event handler for request:

{"handlerId": "H1",
"createdDate": "2015-01-01 12:12:12",
"creator": "DanLee",
"handlerFunc": "function(message, replier) { eventBus.publish(':outboundAddr', message); }",
"desc": "H1 event handler function"
}

This API performs generating and deploying all push interfaces.

This API performs generating and deploying a push interface by pushId for request:

{"pushId": "P1"}

This API performs un-deploying a push interface by pushId for request:

{"pushId": "P1"}

This API performs un-deploying all push interfaces.

About

Push interface Vert.x module

License:Other


Languages

Language:JavaScript 100.0%