Class: MongoDB

MongoDB

new MongoDB(message_obj)

Represents db related opertions of various classes.
Parameters:
Name Type Description
message_obj Message
Author:
Source:

Members

(private, inner) first_bot_count :boolean

boolean counter to initialize the old_bot_count in first comparision.
Type:
  • boolean
Source:

(private, inner) old_bot_count :Number

Used for comparing old bot count and new bot count. To message changes in the cluster.
Type:
  • Number
Source:

(private, inner) tika_indexer_busy :boolean

boolean counter for tika indexer busy.
Type:
  • boolean
Source:

Methods

insertAuthor(data)

Insert author data into db.
Parameters:
Name Type Description
data Object
Source:

(private, inner) generateMD5(str)

Generates MD5 hash of any string
Parameters:
Name Type Description
str String
Source: