public class LDAPExtSampler extends AbstractSampler implements TestStateListener
Modifier and Type | Field and Description |
---|---|
static String |
ADD |
static String |
ARGUMENTS |
static String |
ATTRIBS |
static String |
BASE_ENTRY_DN |
static String |
BIND |
static String |
COMPARE |
static String |
COMPAREDN |
static String |
COMPAREFILT |
static String |
CONNTO |
static String |
COUNTLIM |
static String |
DELETE |
static String |
DEREF |
static String |
LDAPARGUMENTS |
static String |
MODDDN |
static String |
MODIFY |
static String |
NEWDN |
static String |
PARSEFLAG |
static String |
PORT |
static String |
RENAME |
static String |
RETOBJ |
static String |
ROOTDN |
static String |
SBIND |
static String |
SCOPE |
static String |
SEARCH |
static String |
SEARCHBASE |
static String |
SEARCHFILTER |
static String |
SECURE |
static String |
SERVERNAME |
static String |
TEST |
static String |
TIMELIM |
static String |
TRUSTALL |
static String |
UNBIND |
static String |
USERDN |
static String |
USERPW |
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS
Constructor and Description |
---|
LDAPExtSampler() |
Modifier and Type | Method and Description |
---|---|
boolean |
applies(ConfigTestElement configElement)
Does configElement apply to Sampler
|
Arguments |
getArguments()
Gets the Arguments attribute of the LdapConfig object
|
String |
getAttrs()
Gets the attributes of the LDAPSampler object
|
String |
getBaseEntryDN()
Gets the BaseEntryDN attribute of the LDAPSampler object
|
String |
getConnTimeOut() |
String |
getCountlim()
Gets the size limit attribute of the LDAPSampler object
|
long |
getCountlimAsLong() |
String |
getLabel()
Returns a formatted string label describing this sampler Example output:
|
LDAPArguments |
getLDAPArguments()
Gets the LDAPArguments attribute of the LdapConfig object
|
String |
getPort()
Gets the Port attribute of the LDAPSampler object
|
String |
getRootdn()
Gets the Rootdn attribute of the LDAPSampler object
|
String |
getScope()
Gets the search scope attribute of the LDAPSampler object
|
int |
getScopeAsInt() |
String |
getServername()
Gets the servername attribute of the LDAPSampler object
|
String |
getTest()
Gets the test attribute of the LDAPSampler object
|
String |
getTimelim()
Gets the time limit attribute of the LDAPSampler object
|
int |
getTimelimAsInt() |
String |
getUserDN()
Gets the username attribute of the LDAP object
|
String |
getUserPw()
Gets the password attribute of the LDAP object
|
boolean |
isDeref()
Gets the deref attribute of the LDAPSampler object
|
boolean |
isParseFlag() |
boolean |
isRetobj()
Gets the return objects attribute of the LDAPSampler object
|
boolean |
isSecure() |
boolean |
isTrustAll() |
SampleResult |
sample(Entry e)
Obtains statistics about the given Entry, and packages the information
into a SampleResult.
|
void |
setArguments(Arguments value)
Sets the Arguments attribute of the LdapConfig object This will collect
values from the table for user defined test case
|
void |
setAttrs(String newAttrs)
Sets the attributes of the LdapConfig object
|
void |
setBaseEntryDN(String newbaseentry)
Sets the Base Entry DN attribute of the LDAPSampler object
|
void |
setConnTimeOut(String connto) |
void |
setCountlim(String newClim)
Sets the size limit attribute of the LDAPSampler object
|
void |
setDeref(String newDref)
Sets the deref attribute of the LDAPSampler object
|
void |
setLDAPArguments(LDAPArguments value)
Sets the Arguments attribute of the LdapConfig object This will collect
values from the table for user defined test case
|
void |
setParseFlag(String parseFlag) |
void |
setPort(String port)
Sets the Port attribute of the ServerConfig object
|
void |
setRetobj(String newRobj)
Sets the return objects attribute of the LDAPSampler object
|
void |
setRootdn(String newRootdn)
Sets the Rootdn attribute of the LDAPSampler object
|
void |
setScope(String newScope)
Sets the search scope attribute of the LDAPSampler object
|
void |
setSecure(String sec) |
void |
setServername(String servername)
Sets the Servername attribute of the ServerConfig object
|
void |
setTest(String newTest)
Sets the Test attribute of the LdapConfig object
|
void |
setTimelim(String newTlim)
Sets the time limit attribute of the LDAPSampler object
|
void |
setTrustAll(String trust) |
void |
setUserDN(String newUserDN)
Sets the username attribute of the LDAP object
|
void |
setUserPw(String newUserPw)
Sets the password attribute of the LDAP object
|
void |
testEnded()
Called once for all threads after the end of a test.
|
void |
testEnded(String host)
Called once for all threads after the end of a test.
|
void |
testStarted()
Called just before the start of the test from the main engine thread.
|
void |
testStarted(String host)
Called just before the start of the test from the main engine thread.
|
addPropertiesValues, addProperty, addProperty, addTestElement, canRemove, clear, clearTemporary, clearTestElementChildren, clone, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, 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, traverseProperty
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addTestElement, canRemove, clear, clearTestElementChildren, clone, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getThreadContext, getThreadName, isEnabled, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removed, removeProperty, setComment, setEnabled, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse
public static final String SERVERNAME
public static final String PORT
public static final String SECURE
public static final String TRUSTALL
public static final String ROOTDN
public static final String TEST
public static final String ADD
public static final String MODIFY
public static final String BIND
public static final String UNBIND
public static final String DELETE
public static final String SEARCH
public static final String SEARCHBASE
public static final String SEARCHFILTER
public static final String ARGUMENTS
public static final String LDAPARGUMENTS
public static final String BASE_ENTRY_DN
public static final String SCOPE
public static final String COUNTLIM
public static final String TIMELIM
public static final String ATTRIBS
public static final String RETOBJ
public static final String DEREF
public static final String USERDN
public static final String USERPW
public static final String SBIND
public static final String COMPARE
public static final String CONNTO
public static final String COMPAREDN
public static final String COMPAREFILT
public static final String PARSEFLAG
public static final String RENAME
public static final String MODDDN
public static final String NEWDN
public void setConnTimeOut(String connto)
public String getConnTimeOut()
public void setSecure(String sec)
public boolean isSecure()
public void setTrustAll(String trust)
public boolean isTrustAll()
public boolean isParseFlag()
public void setParseFlag(String parseFlag)
public String getUserDN()
public void setUserDN(String newUserDN)
newUserDN
- distinguished name of the userpublic String getUserPw()
public void setUserPw(String newUserPw)
newUserPw
- password of the userpublic void setServername(String servername)
servername
- The new servername valuepublic void setPort(String port)
port
- The new Port valuepublic String getServername()
public String getPort()
public void setRootdn(String newRootdn)
newRootdn
- The new rootdn valuepublic String getRootdn()
public String getScope()
public int getScopeAsInt()
public void setScope(String newScope)
newScope
- The new scope valuepublic String getCountlim()
public long getCountlimAsLong()
public void setCountlim(String newClim)
newClim
- The new size limit valuepublic String getTimelim()
public int getTimelimAsInt()
public void setTimelim(String newTlim)
newTlim
- The new time limit valuepublic boolean isRetobj()
public void setRetobj(String newRobj)
newRobj
- whether the objects should be returnedpublic boolean isDeref()
public void setDeref(String newDref)
newDref
- The new deref valuepublic void setTest(String newTest)
newTest
- The new test value(Add,Modify,Delete and search)public String getTest()
public void setAttrs(String newAttrs)
newAttrs
- The new attributes valuepublic String getAttrs()
public void setBaseEntryDN(String newbaseentry)
newbaseentry
- The new Base entry DN valuepublic String getBaseEntryDN()
public void setArguments(Arguments value)
value
- The argumentspublic Arguments getArguments()
public void setLDAPArguments(LDAPArguments value)
value
- The argumentspublic LDAPArguments getLDAPArguments()
public String getLabel()
public SampleResult sample(Entry e)
Sampler
public void testStarted()
TestStateListener
Called 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.
testStarted
in interface TestStateListener
StandardJMeterEngine.run()
public void testEnded()
TestStateListener
Called 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.
testEnded
in interface TestStateListener
StandardJMeterEngine.stopTest()
public void testStarted(String host)
TestStateListener
Called 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.
testStarted
in interface TestStateListener
host
- name of hostStandardJMeterEngine.run()
public void testEnded(String host)
TestStateListener
Called 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.
testEnded
in interface TestStateListener
host
- name of hostStandardJMeterEngine.stopTest()
public boolean applies(ConfigTestElement configElement)
AbstractSampler
applies
in interface ConfigMergabilityIndicator
applies
in class AbstractSampler
configElement
- ConfigTestElement
AbstractSampler.applies(org.apache.jmeter.config.ConfigTestElement)
Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.