Class LDAPExtSampler
- All Implemented Interfaces:
- Serializable,- Cloneable,- ConfigMergabilityIndicator,- Searchable,- Sampler,- 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 SummaryFieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from interface org.apache.jmeter.testelement.TestElementCOMMENTS, Companion, ENABLED, GUI_CLASS, NAME, TEST_CLASS
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanapplies(ConfigTestElement configElement) Does configElement apply to SamplerGets the Arguments attribute of the LdapConfig objectgetAttrs()Gets the attributes of the LDAPSampler objectGets the BaseEntryDN attribute of the LDAPSampler objectGets the size limit attribute of the LDAPSampler objectlonggetLabel()Returns a formatted string label describing this sampler Example output:Gets the LDAPArguments attribute of the LdapConfig objectgetPort()Gets the Port attribute of the LDAPSampler objectGets the Rootdn attribute of the LDAPSampler objectgetScope()Gets the search scope attribute of the LDAPSampler objectintGets the servername attribute of the LDAPSampler objectgetTest()Gets the test attribute of the LDAPSampler objectGets the time limit attribute of the LDAPSampler objectintGets the username attribute of the LDAP objectGets the password attribute of the LDAP objectbooleanisDeref()Gets the deref attribute of the LDAPSampler objectbooleanbooleanisRetobj()Gets the return objects attribute of the LDAPSampler objectbooleanisSecure()booleanObtains statistics about the given Entry, and packages the information into a SampleResult.voidsetArguments(Arguments value) Sets the Arguments attribute of the LdapConfig object This will collect values from the table for user defined test casevoidSets the attributes of the LdapConfig objectvoidsetBaseEntryDN(String newbaseentry) Sets the Base Entry DN attribute of the LDAPSampler objectvoidsetConnTimeOut(String connto) voidsetCountlim(String newClim) Sets the size limit attribute of the LDAPSampler objectvoidSets the deref attribute of the LDAPSampler objectvoidsetLDAPArguments(LDAPArguments value) Sets the Arguments attribute of the LdapConfig object This will collect values from the table for user defined test casevoidsetParseFlag(String parseFlag) voidSets the Port attribute of the ServerConfig objectvoidSets the return objects attribute of the LDAPSampler objectvoidSets the Rootdn attribute of the LDAPSampler objectvoidSets the search scope attribute of the LDAPSampler objectvoidvoidsetServername(String servername) Sets the Servername attribute of the ServerConfig objectvoidSets the Test attribute of the LdapConfig objectvoidsetTimelim(String newTlim) Sets the time limit attribute of the LDAPSampler objectvoidsetTrustAll(String trust) voidSets the username attribute of the LDAP objectvoidSets the password attribute of the LDAP objectvoidCalled 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.voidtestStarted(String host) Called just before the start of the test from the main engine thread.Methods inherited from class org.apache.jmeter.testelement.AbstractTestElementaddPropertiesValues, addProperty, addProperty, addTestElement, 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.testelement.TestElementaddTestElement, canRemove, clear, clearTestElementChildren, clone, get, get, get, get, get, get, get, get, get, getComment, getName, getOrCreate, getOrCreate, getOrNull, getOrNull, getOrNull, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getPropertyOrNull, getPropertyOrNull, getProps, getSchema, getString, getThreadContext, getThreadName, isEnabled, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removed, removeProperty, removeProperty, set, set, set, set, set, set, set, set, set, setComment, setEnabled, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse
- 
Field Details- 
SERVERNAME- See Also:
 
- 
PORT- See Also:
 
- 
SECURE- See Also:
 
- 
TRUSTALL- See Also:
 
- 
ROOTDN- See Also:
 
- 
TEST- See Also:
 
- 
ADD- See Also:
 
- 
MODIFY- See Also:
 
- 
BIND- See Also:
 
- 
UNBIND- See Also:
 
- 
DELETE- See Also:
 
- 
SEARCH- See Also:
 
- 
SEARCHBASE- See Also:
 
- 
SEARCHFILTER- See Also:
 
- 
ARGUMENTS- See Also:
 
- 
LDAPARGUMENTS- See Also:
 
- 
BASE_ENTRY_DN- See Also:
 
- 
SCOPE- See Also:
 
- 
COUNTLIM- See Also:
 
- 
TIMELIM- See Also:
 
- 
ATTRIBS- See Also:
 
- 
RETOBJ- See Also:
 
- 
DEREF- See Also:
 
- 
USERDN- See Also:
 
- 
USERPW- See Also:
 
- 
SBIND- See Also:
 
- 
COMPARE- See Also:
 
- 
CONNTO- See Also:
 
- 
COMPAREDN- See Also:
 
- 
COMPAREFILT- See Also:
 
- 
PARSEFLAG- See Also:
 
- 
RENAME- See Also:
 
- 
MODDDN- See Also:
 
- 
NEWDN- See Also:
 
 
- 
- 
Constructor Details- 
LDAPExtSamplerpublic LDAPExtSampler()
 
- 
- 
Method Details- 
setConnTimeOut
- 
getConnTimeOut
- 
setSecure
- 
isSecurepublic boolean isSecure()
- 
setTrustAll
- 
isTrustAllpublic boolean isTrustAll()
- 
isParseFlagpublic boolean isParseFlag()
- 
setParseFlag
- 
getUserDNGets the username attribute of the LDAP object- Returns:
- The username
 
- 
setUserDNSets the username attribute of the LDAP object- Parameters:
- newUserDN- distinguished name of the user
 
- 
getUserPwGets the password attribute of the LDAP object- Returns:
- The password
 
- 
setUserPwSets the password attribute of the LDAP object- Parameters:
- newUserPw- password of the user
 
- 
setServernameSets the Servername attribute of the ServerConfig object- Parameters:
- servername- The new servername value
 
- 
setPortSets the Port attribute of the ServerConfig object- Parameters:
- port- The new Port value
 
- 
getServernameGets the servername attribute of the LDAPSampler object- Returns:
- The Servername value
 
- 
getPortGets the Port attribute of the LDAPSampler object- Returns:
- The Port value
 
- 
setRootdnSets the Rootdn attribute of the LDAPSampler object- Parameters:
- newRootdn- The new rootdn value
 
- 
getRootdnGets the Rootdn attribute of the LDAPSampler object- Returns:
- The Rootdn value
 
- 
getScopeGets the search scope attribute of the LDAPSampler object- Returns:
- The scope value
 
- 
getScopeAsIntpublic int getScopeAsInt()
- 
setScopeSets the search scope attribute of the LDAPSampler object- Parameters:
- newScope- The new scope value
 
- 
getCountlimGets the size limit attribute of the LDAPSampler object- Returns:
- The size limit
 
- 
getCountlimAsLongpublic long getCountlimAsLong()
- 
setCountlimSets the size limit attribute of the LDAPSampler object- Parameters:
- newClim- The new size limit value
 
- 
getTimelimGets the time limit attribute of the LDAPSampler object- Returns:
- The time limit
 
- 
getTimelimAsIntpublic int getTimelimAsInt()
- 
setTimelimSets the time limit attribute of the LDAPSampler object- Parameters:
- newTlim- The new time limit value
 
- 
isRetobjpublic boolean isRetobj()Gets the return objects attribute of the LDAPSampler object- Returns:
- if the object(s) are to be returned
 
- 
setRetobjSets the return objects attribute of the LDAPSampler object- Parameters:
- newRobj- whether the objects should be returned
 
- 
isDerefpublic boolean isDeref()Gets the deref attribute of the LDAPSampler object- Returns:
- if dereferencing is required
 
- 
setDerefSets the deref attribute of the LDAPSampler object- Parameters:
- newDref- The new deref value
 
- 
setTestSets the Test attribute of the LdapConfig object- Parameters:
- newTest- The new test value(Add,Modify,Delete and search)
 
- 
getTestGets the test attribute of the LDAPSampler object- Returns:
- The test value (Add,Modify,Delete and search)
 
- 
setAttrsSets the attributes of the LdapConfig object- Parameters:
- newAttrs- The new attributes value
 
- 
getAttrsGets the attributes of the LDAPSampler object- Returns:
- The attributes
 
- 
setBaseEntryDNSets the Base Entry DN attribute of the LDAPSampler object- Parameters:
- newbaseentry- The new Base entry DN value
 
- 
getBaseEntryDNGets the BaseEntryDN attribute of the LDAPSampler object- Returns:
- The Base entry DN value
 
- 
setArgumentsSets the Arguments attribute of the LdapConfig object This will collect values from the table for user defined test case- Parameters:
- value- The arguments
 
- 
getArgumentsGets the Arguments attribute of the LdapConfig object- Returns:
- The arguments user defined test case
 
- 
setLDAPArgumentsSets the Arguments attribute of the LdapConfig object This will collect values from the table for user defined test case- Parameters:
- value- The arguments
 
- 
getLDAPArgumentsGets the LDAPArguments attribute of the LdapConfig object- Returns:
- The LDAParguments user defined modify test case
 
- 
getLabelReturns a formatted string label describing this sampler Example output:- Returns:
- a formatted string label describing this sampler
 
- 
sampleDescription copied from interface:SamplerObtains statistics about the given Entry, and packages the information into a SampleResult.
- 
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:
 
- 
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:
 
- 
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:
- host- name of host
- 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:
- host- name of host
- See Also:
 
- 
appliesDescription copied from class:AbstractSamplerDoes configElement apply to Sampler- Specified by:
- appliesin interface- ConfigMergabilityIndicator
- Overrides:
- appliesin class- AbstractSampler
- Parameters:
- configElement-- ConfigTestElement
- Returns:
- boolean
- See Also:
 
 
-