remove leading underscore, fix next call in mongosave

This commit is contained in:
Wolfgang Hottgenroth
2017-08-24 15:51:34 +02:00
parent a0a922f851
commit 25116aae89
14 changed files with 230 additions and 170 deletions

8
dist/processor.js vendored
View File

@ -5,19 +5,19 @@ const events = require("events");
class AProcessor extends events.EventEmitter {
constructor(label) {
super();
this._label = label;
this.label = label;
this.addListener('input', this.process);
log.info(`Processor object instanciated: ${this.constructor.name}, ${this._label}`);
log.info(`Processor object instanciated: ${this.constructor.name}, ${this.label}`);
}
in(message) {
log.info(`Routing ${message} to Processor class ${this.constructor.name}, ${this._label}`);
log.info(`Routing ${message} to Processor class ${this.constructor.name}, ${this.label}`);
this.emit('input', message);
}
}
exports.AProcessor = AProcessor;
class ExProc1 extends AProcessor {
process(message) {
log.info(`ExRoute1.process: ${this._label}, ${message}`);
log.info(`ExRoute1.process: ${this.label}, ${message}`);
}
}
exports.ExProc1 = ExProc1;