Commit 877de189 by Chavee Issariyapat

add getInfo()

parent 4d893520
...@@ -54,6 +54,15 @@ FlowAgent.prototype.start = function() { ...@@ -54,6 +54,15 @@ FlowAgent.prototype.start = function() {
this.coordinator.start(); this.coordinator.start();
} }
FlowAgent.prototype.getInfo = function() {
return {
broker_uri : this.option.broker_uri,
flowagentid : this.option.flowagentid,
flowagentsecret : this.option.flowagentsecret
}
}
function create(option) { function create(option) {
return new FlowAgent(option); return new FlowAgent(option);
} }
{ {
"name": "flowagent", "name": "flowagent",
"version": "1.1.0", "version": "1.1.1",
"description": "", "description": "",
"main": "flowagent.js", "main": "flowagent.js",
"scripts": { "scripts": {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment