Class MongoDBHolder
java.lang.Object
org.apache.jmeter.protocol.mongodb.config.MongoDBHolder
Public API to access MongoDB
DB
object created by MongoSourceElement
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.mongodb.DB
getDBFromSource
(String varName, String dbName) Get access to MongoDB objectstatic com.mongodb.DB
getDBFromSource
(String varName, String dbName, String login, String password) Get access to MongoDB object
-
Constructor Details
-
MongoDBHolder
public MongoDBHolder()
-
-
Method Details
-
getDBFromSource
Get access to MongoDB object- Parameters:
varName
- String MongoDB sourcedbName
- Mongo DB database name- Returns:
DB
-
getDBFromSource
public static com.mongodb.DB getDBFromSource(String varName, String dbName, String login, String password) Get access to MongoDB object- Parameters:
varName
- String MongoDB sourcedbName
- Mongo DB database namelogin
- name to use for loginpassword
- password to use for login- Returns:
DB
-