public class LDAPSampler extends AbstractSampler
Modifier and Type | Field and Description |
---|---|
static String |
ADD |
static String |
ARGUMENTS |
static String |
BASE_ENTRY_DN |
static String |
DELETE |
static String |
MODIFY |
static String |
PORT |
static String |
ROOTDN |
static String |
SEARCHBASE |
static String |
SEARCHFILTER |
static String |
SERVERNAME |
static String |
TEST |
static String |
USER_DEFINED |
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS
Constructor and Description |
---|
LDAPSampler() |
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 |
getBaseEntryDN()
Gets the BaseEntryDN attribute of the LDAPSampler object.
|
String |
getLabel()
Returns a formatted string label describing this sampler
|
String |
getPassword()
Gets the password attribute of the LDAP object.
|
String |
getPort()
Gets the Port attribute of the LDAPSampler object.
|
String |
getRootdn()
Gets the Rootdn attribute of the LDAPSampler object.
|
String |
getServername()
Gets the servername attribute of the LDAPSampler object.
|
String |
getTest()
Gets the test attribute of the LDAPSampler object.
|
boolean |
getUserDefinedTest()
Gets the UserDefinedTest attribute of the LDAPSampler object.
|
String |
getUsername()
Gets the username attribute of the LDAP object.
|
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.
|
void |
setBaseEntryDN(String newbaseentry)
Sets the Base Entry DN attribute of the LDAPSampler object.
|
void |
setPort(String port)
Sets the Port attribute of the ServerConfig object.
|
void |
setRootdn(String newRootdn)
Sets the Rootdn attribute of the LDAPSampler object.
|
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 |
setUserDefinedTest(boolean value)
Sets the UserDefinedTest attribute of the LDAPSampler object.
|
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 ROOTDN
public static final String TEST
public static final String ADD
public static final String MODIFY
public static final String DELETE
public static final String SEARCHBASE
public static final String SEARCHFILTER
public static final String USER_DEFINED
public static final String ARGUMENTS
public static final String BASE_ENTRY_DN
public String getUsername()
public String getPassword()
public 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 void setTest(String newTest)
newTest
- the new test value(Add,Modify,Delete and search)public String getTest()
public void setUserDefinedTest(boolean value)
value
- the new UserDefinedTest valuepublic boolean getUserDefinedTest()
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 String getLabel()
public SampleResult sample(Entry e)
Sampler
e
- the Entry (TODO seems to be unused)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.