Readonly
binaryOptional
extraExtra 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
Optional
killerThe "mongo_killer" Process reference
Optional
mongodThe "mongod" Process reference
Readonly
spawnOptional
stopExtra promise to avoid multiple calls of .stop
at the same time
Static
Readonly
captureStatic
captureSets or gets the default captureRejection value for all emitters.
Static
defaultStatic
Readonly
errorThis 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
MongoInstance#killerLaunched
Rest
...args: any[]Protected
checkProtected
debugRest
...args: any[]Rest
...args: any[]Rest
...args: any[]Rest
...args: any[]Rest
...args: any[]Rest
...args: any[]Optional
event: string | symbolRest
...args: any[]Write STDOUT to debug function and process some special messages
The STDOUT line to write/parse
MongoInstance#instanceSTDOUT
MongoInstance#instanceReady
MongoInstance#instanceError
MongoInstance#instancePrimary
MongoInstance#instanceReplState
Static
createCreate an new instance an call method "start"
Options passed to the new instance
Static
listenerStatic
onStatic
onceGenerated using TypeDoc
MongoDB Instance Handler Class This Class starts & stops the "mongod" process directly and handles stdout, sterr and close events