remove leading underscore, fix next call in mongosave
This commit is contained in:
8
dist/processor.js
vendored
8
dist/processor.js
vendored
@ -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;
|
||||
|
Reference in New Issue
Block a user