Extra options to append to "mongoclient.connect" Mainly used for authentication
This boolean is "true" if the instance is elected to be PRIMARY
This boolean is "true" if the instance is successfully started
This boolean is "true" if the instance is part of an replset
The "mongo_killer" Process reference
The "mongod" Process reference
Sets or gets the default captureRejection value for all emitters.
This symbol shall be used to install a listener for only monitoring 'error'
events. Listeners installed using this symbol are called before the regular
'error'
listeners are called.
Installing a listener using this symbol does not change the behavior once an
'error'
event is emitted, therefore the process will still crash if no
regular 'error'
listener is installed.
Spawn an seperate process to kill the parent and the mongod instance to ensure "mongod" gets stopped in any case
Parent nodejs process
Mongod process to kill
Actually launch mongod
The binary to run
Run Checks on the line if the lines contain any thrown errors
The Line to check
Write the CLOSE event to the debug function
The Exit code to handle
The Signal to handle
Debug-log with template applied
The Message to log
Event "error" handler
The Error to handle
Create an array of arguments for the mongod instance
Create the mongod process
Write STDERR to debug function
The STDERR line to write
Write STDOUT to debug function and process some special messages
The STDOUT line to write/parse
Shutdown all related processes (Mongod Instance & Killer Process)
Create an new instance an call method "start"
Options passed to the new instance
Generated using TypeDoc
MongoDB Instance Handler Class This Class starts & stops the "mongod" process directly and handles stdout, sterr and close events