Class MongoSourceElement
- All Implemented Interfaces:
- Serializable,- Cloneable,- ConfigElement,- Searchable,- TestBean,- org.apache.jmeter.testelement.TestElement,- TestStateListener
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.apache.jmeter.testelement.TestElementorg.apache.jmeter.testelement.TestElement.Companion
- 
Field SummaryFields inherited from class org.apache.jmeter.config.ConfigTestElementPASSWORD, USERNAMEFields inherited from interface org.apache.jmeter.testelement.TestElementCOMMENTS, Companion, ENABLED, GUI_CLASS, NAME, TEST_CLASS
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddConfigElement(ConfigElement configElement) Add a configuration element to this one.booleanIf your config element expects to be modified in the process of a test run, and you want those modifications to carry over from sample to sample (as in a cookie manager - you want to save all cookies that get set throughout the test), then return true for this method.booleanintintbooleanbooleangetFsync()longintstatic MongoDBgetMongoDB(String source) booleangetSafe()booleanintintgetTitle()booleanintintvoidsetAutoConnectRetry(boolean autoConnectRetry) voidsetConnection(String connection) voidsetConnectionsPerHost(int connectionsPerHost) voidsetConnectTimeout(int connectTimeout) voidsetContinueOnInsertError(boolean continueOnInsertError) voidsetFsync(boolean fsync) voidsetMaxAutoConnectRetryTime(long maxAutoConnectRetryTime) voidsetMaxWaitTime(int maxWaitTime) voidsetSafe(boolean safe) voidsetSocketKeepAlive(boolean socketKeepAlive) voidsetSocketTimeout(int socketTimeout) voidvoidsetThreadsAllowedToBlockForConnectionMultiplier(int threadsAllowedToBlockForConnectionMultiplier) voidsetWaitForJournaling(boolean waitForJournaling) voidsetWriteOperationNumberOfServers(int writeOperationNumberOfServers) voidsetWriteOperationTimeout(int writeOperationTimeout) voidCalled once for all threads after the end of a test.voidCalled once for all threads after the end of a test.voidCalled just before the start of the test from the main engine thread.voidCalled just before the start of the test from the main engine thread.Methods inherited from class org.apache.jmeter.config.ConfigTestElementaddTestElement, getProps, getSchemaMethods inherited from class org.apache.jmeter.testelement.AbstractTestElementaddPropertiesValues, addProperty, addProperty, canRemove, clear, clearTemporary, clearTestElementChildren, clone, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getPropertyOrNull, getSearchableTokens, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setComment, setEnabled, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traversePropertyMethods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.jmeter.config.ConfigElementcloneMethods inherited from interface org.apache.jmeter.testelement.TestElementget, get, get, get, get, get, get, get, get, getOrCreate, getOrCreate, getOrNull, getOrNull, getOrNull, getPropertyOrNull, getString, removed, removeProperty, set, set, set, set, set, set, set, set, set
- 
Constructor Details- 
MongoSourceElementpublic MongoSourceElement()
 
- 
- 
Method Details- 
getTitle
- 
getConnection
- 
setConnection
- 
getSource
- 
setSource
- 
getMongoDB
- 
addConfigElementDescription copied from class:ConfigTestElementAdd a configuration element to this one. This allows config elements to combine and give a "layered" effect. For example, HTTPConfigElements have properties for domain, path, method, and parameters. If element A has everything filled in, but null for domain, and element B is added, which has only domain filled in, then after adding B to A, A will have the domain from B. If A already had a domain, then the correct behavior is for A to ignore the addition of element B.- Specified by:
- addConfigElementin interface- ConfigElement
- Overrides:
- addConfigElementin class- ConfigTestElement
- Parameters:
- configElement- the element to be added to this ConfigElement
 
- 
expectsModificationpublic boolean expectsModification()Description copied from class:ConfigTestElementIf your config element expects to be modified in the process of a test run, and you want those modifications to carry over from sample to sample (as in a cookie manager - you want to save all cookies that get set throughout the test), then return true for this method. Your config element will not be cloned for each sample. If your config elements are more static in nature, return false. If in doubt, return false.- Specified by:
- expectsModificationin interface- ConfigElement
- Overrides:
- expectsModificationin class- ConfigTestElement
- Returns:
- true if the element expects to be modified over the course of a test run
 
- 
testStartedpublic void testStarted()Description copied from interface:TestStateListenerCalled just before the start of the test from the main engine thread. This is before the test elements are cloned. Note that not all the test variables will have been set up at this point. N.B. testStarted() and testEnded() are called from different threads. - Specified by:
- testStartedin interface- TestStateListener
- See Also:
 
- 
testStartedDescription copied from interface:TestStateListenerCalled just before the start of the test from the main engine thread. This is before the test elements are cloned. Note that not all the test variables will have been set up at this point. N.B. testStarted() and testEnded() are called from different threads. - Specified by:
- testStartedin interface- TestStateListener
- Parameters:
- s- name of host
- See Also:
 
- 
testEndedpublic void testEnded()Description copied from interface:TestStateListenerCalled once for all threads after the end of a test. This will use the same element instances as at the start of the test. N.B. testStarted() and testEnded() are called from different threads. - Specified by:
- testEndedin interface- TestStateListener
- See Also:
 
- 
testEndedDescription copied from interface:TestStateListenerCalled once for all threads after the end of a test. This will use the same element instances as at the start of the test. N.B. testStarted() and testEnded() are called from different threads. - Specified by:
- testEndedin interface- TestStateListener
- Parameters:
- s- name of host
- See Also:
 
- 
getAutoConnectRetrypublic boolean getAutoConnectRetry()- Returns:
- the autoConnectRetry
 
- 
setAutoConnectRetrypublic void setAutoConnectRetry(boolean autoConnectRetry) - Parameters:
- autoConnectRetry- the autoConnectRetry to set
 
- 
getConnectionsPerHostpublic int getConnectionsPerHost()- Returns:
- the connectionsPerHost
 
- 
setConnectionsPerHostpublic void setConnectionsPerHost(int connectionsPerHost) - Parameters:
- connectionsPerHost- the connectionsPerHost to set
 
- 
getConnectTimeoutpublic int getConnectTimeout()- Returns:
- the connectTimeout
 
- 
setConnectTimeoutpublic void setConnectTimeout(int connectTimeout) - Parameters:
- connectTimeout- the connectTimeout to set
 
- 
getMaxAutoConnectRetryTimepublic long getMaxAutoConnectRetryTime()- Returns:
- the maxAutoConnectRetryTime
 
- 
setMaxAutoConnectRetryTimepublic void setMaxAutoConnectRetryTime(long maxAutoConnectRetryTime) - Parameters:
- maxAutoConnectRetryTime- the maxAutoConnectRetryTime to set
 
- 
getMaxWaitTimepublic int getMaxWaitTime()- Returns:
- the maxWaitTime
 
- 
setMaxWaitTimepublic void setMaxWaitTime(int maxWaitTime) - Parameters:
- maxWaitTime- the maxWaitTime to set
 
- 
getSocketTimeoutpublic int getSocketTimeout()- Returns:
- the socketTimeout
 
- 
setSocketTimeoutpublic void setSocketTimeout(int socketTimeout) - Parameters:
- socketTimeout- the socketTimeout to set
 
- 
getSocketKeepAlivepublic boolean getSocketKeepAlive()- Returns:
- the socketKeepAlive
 
- 
setSocketKeepAlivepublic void setSocketKeepAlive(boolean socketKeepAlive) - Parameters:
- socketKeepAlive- the socketKeepAlive to set
 
- 
getThreadsAllowedToBlockForConnectionMultiplierpublic int getThreadsAllowedToBlockForConnectionMultiplier()- Returns:
- the threadsAllowedToBlockForConnectionMultiplier
 
- 
setThreadsAllowedToBlockForConnectionMultiplierpublic void setThreadsAllowedToBlockForConnectionMultiplier(int threadsAllowedToBlockForConnectionMultiplier) - Parameters:
- threadsAllowedToBlockForConnectionMultiplier- the threadsAllowedToBlockForConnectionMultiplier to set
 
- 
getFsyncpublic boolean getFsync()- Returns:
- the fsync
 
- 
setFsyncpublic void setFsync(boolean fsync) - Parameters:
- fsync- the fsync to set
 
- 
getSafepublic boolean getSafe()- Returns:
- the safe
 
- 
setSafepublic void setSafe(boolean safe) - Parameters:
- safe- the safe to set
 
- 
getWaitForJournalingpublic boolean getWaitForJournaling()- Returns:
- the waitForJournaling
 
- 
setWaitForJournalingpublic void setWaitForJournaling(boolean waitForJournaling) - Parameters:
- waitForJournaling- the waitForJournaling to set
 
- 
getWriteOperationNumberOfServerspublic int getWriteOperationNumberOfServers()- Returns:
- the writeOperationNumberOfServers
 
- 
setWriteOperationNumberOfServerspublic void setWriteOperationNumberOfServers(int writeOperationNumberOfServers) - Parameters:
- writeOperationNumberOfServers- the writeOperationNumberOfServers to set
 
- 
getWriteOperationTimeoutpublic int getWriteOperationTimeout()- Returns:
- the writeOperationTimeout
 
- 
setWriteOperationTimeoutpublic void setWriteOperationTimeout(int writeOperationTimeout) - Parameters:
- writeOperationTimeout- the writeOperationTimeout to set
 
- 
getContinueOnInsertErrorpublic boolean getContinueOnInsertError()- Returns:
- the continueOnInsertError
 
- 
setContinueOnInsertErrorpublic void setContinueOnInsertError(boolean continueOnInsertError) - Parameters:
- continueOnInsertError- the continueOnInsertError to set
 
 
-