User Tools

Site Tools


sib:callers:mongocaller

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
sib:callers:mongocaller [2019/05/17 07:56]
hubbe
sib:callers:mongocaller [2019/09/20 07:24] (current)
hubbe
Line 42: Line 42:
  allowOperations:​ ["​find",​ "​findone",​ "​insert"​],​  allowOperations:​ ["​find",​ "​findone",​ "​insert"​],​
  allowOverride:​ ["​insert",​ "​find"​],​  allowOverride:​ ["​insert",​ "​find"​],​
 + init: ( thisCaller )=>{},
  inputFormat:​ (topic, msg, cb, mongoDB)=>​{  inputFormat:​ (topic, msg, cb, mongoDB)=>​{
  cb(msg);  cb(msg);
Line 80: Line 81:
   * allowOperations:​ Array containing a list of operations from the "​supported operations list" permitted by this service.   * allowOperations:​ Array containing a list of operations from the "​supported operations list" permitted by this service.
   * allowOverride:​ Array containing a list of operations from the "​supported operations list" for which the listener is allowed to override the standard parameters like filter, options etc.   * allowOverride:​ Array containing a list of operations from the "​supported operations list" for which the listener is allowed to override the standard parameters like filter, options etc.
 +  * init(thisCaller):​ If defined this method is executed when the service is starting up as the last step of initialization. //​thisCaller//​ is a reference to the instance of the caller that does the method call.
   * inputFormat(topic,​ msg, callback, mongoDB): The method that is run on service activation. The original message is passed as the argument and the input value to the callback must be a JSON formatted message conforming to the SIB message standard. The fourth optional parameter is a reference to the mongoClient database object.   * inputFormat(topic,​ msg, callback, mongoDB): The method that is run on service activation. The original message is passed as the argument and the input value to the callback must be a JSON formatted message conforming to the SIB message standard. The fourth optional parameter is a reference to the mongoClient database object.
   * loggerCfg: A JSON Object defining what logger actions should be active for this service (see [[sib:​loggerConfiguraton|Logger Configuration]]   * loggerCfg: A JSON Object defining what logger actions should be active for this service (see [[sib:​loggerConfiguraton|Logger Configuration]]
sib/callers/mongocaller.txt ยท Last modified: 2019/09/20 07:24 by hubbe