Class MongoSourceElement
java.lang.Object
org.apache.jmeter.testelement.AbstractTestElement
org.apache.jmeter.config.ConfigTestElement
org.apache.jmeter.protocol.mongodb.config.MongoSourceElement
- All Implemented Interfaces:
Serializable,Cloneable,org.apache.jmeter.config.ConfigElement,org.apache.jmeter.gui.Searchable,org.apache.jmeter.testbeans.TestBean,org.apache.jmeter.testelement.TestElement,org.apache.jmeter.testelement.TestStateListener
public class MongoSourceElement
extends org.apache.jmeter.config.ConfigTestElement
implements org.apache.jmeter.testelement.TestStateListener, org.apache.jmeter.testbeans.TestBean
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.jmeter.testelement.TestElement
org.apache.jmeter.testelement.TestElement.Companion -
Field Summary
Fields inherited from class org.apache.jmeter.config.ConfigTestElement
PASSWORD, USERNAMEFields inherited from interface org.apache.jmeter.testelement.TestElement
COMMENTS, Companion, ENABLED, GUI_CLASS, NAME, TEST_CLASS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddConfigElement(org.apache.jmeter.config.ConfigElement configElement) booleanbooleanintintbooleanbooleangetFsync()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) voidvoidvoidvoidMethods inherited from class org.apache.jmeter.config.ConfigTestElement
addTestElement, getProps, getSchemaMethods inherited from class org.apache.jmeter.testelement.AbstractTestElement
addPropertiesValues, 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.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.jmeter.config.ConfigElement
cloneMethods inherited from interface org.apache.jmeter.testelement.TestElement
get, 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
-
MongoSourceElement
public MongoSourceElement()
-
-
Method Details
-
getTitle
-
getConnection
-
setConnection
-
getSource
-
setSource
-
getMongoDB
-
addConfigElement
public void addConfigElement(org.apache.jmeter.config.ConfigElement configElement) - Specified by:
addConfigElementin interfaceorg.apache.jmeter.config.ConfigElement- Overrides:
addConfigElementin classorg.apache.jmeter.config.ConfigTestElement
-
expectsModification
public boolean expectsModification()- Specified by:
expectsModificationin interfaceorg.apache.jmeter.config.ConfigElement- Overrides:
expectsModificationin classorg.apache.jmeter.config.ConfigTestElement
-
testStarted
public void testStarted()- Specified by:
testStartedin interfaceorg.apache.jmeter.testelement.TestStateListener
-
testStarted
- Specified by:
testStartedin interfaceorg.apache.jmeter.testelement.TestStateListener
-
testEnded
public void testEnded()- Specified by:
testEndedin interfaceorg.apache.jmeter.testelement.TestStateListener
-
testEnded
- Specified by:
testEndedin interfaceorg.apache.jmeter.testelement.TestStateListener
-
getAutoConnectRetry
public boolean getAutoConnectRetry()- Returns:
- the autoConnectRetry
-
setAutoConnectRetry
public void setAutoConnectRetry(boolean autoConnectRetry) - Parameters:
autoConnectRetry- the autoConnectRetry to set
-
getConnectionsPerHost
public int getConnectionsPerHost()- Returns:
- the connectionsPerHost
-
setConnectionsPerHost
public void setConnectionsPerHost(int connectionsPerHost) - Parameters:
connectionsPerHost- the connectionsPerHost to set
-
getConnectTimeout
public int getConnectTimeout()- Returns:
- the connectTimeout
-
setConnectTimeout
public void setConnectTimeout(int connectTimeout) - Parameters:
connectTimeout- the connectTimeout to set
-
getMaxAutoConnectRetryTime
public long getMaxAutoConnectRetryTime()- Returns:
- the maxAutoConnectRetryTime
-
setMaxAutoConnectRetryTime
public void setMaxAutoConnectRetryTime(long maxAutoConnectRetryTime) - Parameters:
maxAutoConnectRetryTime- the maxAutoConnectRetryTime to set
-
getMaxWaitTime
public int getMaxWaitTime()- Returns:
- the maxWaitTime
-
setMaxWaitTime
public void setMaxWaitTime(int maxWaitTime) - Parameters:
maxWaitTime- the maxWaitTime to set
-
getSocketTimeout
public int getSocketTimeout()- Returns:
- the socketTimeout
-
setSocketTimeout
public void setSocketTimeout(int socketTimeout) - Parameters:
socketTimeout- the socketTimeout to set
-
getSocketKeepAlive
public boolean getSocketKeepAlive()- Returns:
- the socketKeepAlive
-
setSocketKeepAlive
public void setSocketKeepAlive(boolean socketKeepAlive) - Parameters:
socketKeepAlive- the socketKeepAlive to set
-
getThreadsAllowedToBlockForConnectionMultiplier
public int getThreadsAllowedToBlockForConnectionMultiplier()- Returns:
- the threadsAllowedToBlockForConnectionMultiplier
-
setThreadsAllowedToBlockForConnectionMultiplier
public void setThreadsAllowedToBlockForConnectionMultiplier(int threadsAllowedToBlockForConnectionMultiplier) - Parameters:
threadsAllowedToBlockForConnectionMultiplier- the threadsAllowedToBlockForConnectionMultiplier to set
-
getFsync
public boolean getFsync()- Returns:
- the fsync
-
setFsync
public void setFsync(boolean fsync) - Parameters:
fsync- the fsync to set
-
getSafe
public boolean getSafe()- Returns:
- the safe
-
setSafe
public void setSafe(boolean safe) - Parameters:
safe- the safe to set
-
getWaitForJournaling
public boolean getWaitForJournaling()- Returns:
- the waitForJournaling
-
setWaitForJournaling
public void setWaitForJournaling(boolean waitForJournaling) - Parameters:
waitForJournaling- the waitForJournaling to set
-
getWriteOperationNumberOfServers
public int getWriteOperationNumberOfServers()- Returns:
- the writeOperationNumberOfServers
-
setWriteOperationNumberOfServers
public void setWriteOperationNumberOfServers(int writeOperationNumberOfServers) - Parameters:
writeOperationNumberOfServers- the writeOperationNumberOfServers to set
-
getWriteOperationTimeout
public int getWriteOperationTimeout()- Returns:
- the writeOperationTimeout
-
setWriteOperationTimeout
public void setWriteOperationTimeout(int writeOperationTimeout) - Parameters:
writeOperationTimeout- the writeOperationTimeout to set
-
getContinueOnInsertError
public boolean getContinueOnInsertError()- Returns:
- the continueOnInsertError
-
setContinueOnInsertError
public void setContinueOnInsertError(boolean continueOnInsertError) - Parameters:
continueOnInsertError- the continueOnInsertError to set
-