Apache JMeter

org.apache.jmeter.protocol.ldap.sampler
Class LDAPSampler

java.lang.Object
  extended by org.apache.jmeter.testelement.AbstractTestElement
      extended by org.apache.jmeter.samplers.AbstractSampler
          extended by org.apache.jmeter.protocol.ldap.sampler.LDAPSampler
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Sampler, TestElement

public class LDAPSampler
extends AbstractSampler

Ldap Sampler class is main class for the LDAP test. This will control all the test available in the LDAP Test.

See Also:
Serialized Form

Field Summary
static java.lang.String ADD
           
static java.lang.String ARGUMENTS
           
static java.lang.String BASE_ENTRY_DN
           
static java.lang.String DELETE
           
static java.lang.String MODIFY
           
static java.lang.String PORT
           
static java.lang.String ROOTDN
           
static java.lang.String SEARCHBASE
           
static java.lang.String SEARCHFILTER
           
static java.lang.String SERVERNAME
           
static java.lang.String TEST
           
static java.lang.String USER_DEFINED
           
 
Fields inherited from interface org.apache.jmeter.testelement.TestElement
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS
 
Constructor Summary
LDAPSampler()
           
 
Method Summary
 Arguments getArguments()
          Gets the Arguments attribute of the LdapConfig object.
 java.lang.String getBaseEntryDN()
          Gets the BaseEntryDN attribute of the LDAPSampler object.
 java.lang.String getLabel()
          Returns a formatted string label describing this sampler
 java.lang.String getPassword()
          Gets the password attribute of the LDAP object.
 java.lang.String getPort()
          Gets the Port attribute of the LDAPSampler object.
 java.lang.String getRootdn()
          Gets the Rootdn attribute of the LDAPSampler object.
 java.lang.String getServername()
          Gets the servername attribute of the LDAPSampler object.
 java.lang.String getTest()
          Gets the test attribute of the LDAPSampler object.
 boolean getUserDefinedTest()
          Gets the UserDefinedTest attribute of the LDAPSampler object.
 java.lang.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(java.lang.String newbaseentry)
          Sets the Base Entry DN attribute of the LDAPSampler object.
 void setPort(java.lang.String port)
          Sets the Port attribute of the ServerConfig object.
 void setRootdn(java.lang.String newRootdn)
          Sets the Rootdn attribute of the LDAPSampler object.
 void setServername(java.lang.String servername)
          Sets the Servername attribute of the ServerConfig object.
 void setTest(java.lang.String newTest)
          Sets the Test attribute of the LdapConfig object.
 void setUserDefinedTest(boolean value)
          Sets the UserDefinedTest attribute of the LDAPSampler object.
 
Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement
addProperty, addTestElement, canRemove, clear, clearTemporary, clone, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setComment, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traverseProperty
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.jmeter.testelement.TestElement
addTestElement, canRemove, clear, clone, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getThreadContext, getThreadName, isEnabled, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removeProperty, setComment, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse
 

Field Detail

SERVERNAME

public static final java.lang.String SERVERNAME
See Also:
Constant Field Values

PORT

public static final java.lang.String PORT
See Also:
Constant Field Values

ROOTDN

public static final java.lang.String ROOTDN
See Also:
Constant Field Values

TEST

public static final java.lang.String TEST
See Also:
Constant Field Values

ADD

public static final java.lang.String ADD
See Also:
Constant Field Values

MODIFY

public static final java.lang.String MODIFY
See Also:
Constant Field Values

DELETE

public static final java.lang.String DELETE
See Also:
Constant Field Values

SEARCHBASE

public static final java.lang.String SEARCHBASE
See Also:
Constant Field Values

SEARCHFILTER

public static final java.lang.String SEARCHFILTER
See Also:
Constant Field Values

USER_DEFINED

public static final java.lang.String USER_DEFINED
See Also:
Constant Field Values

ARGUMENTS

public static final java.lang.String ARGUMENTS
See Also:
Constant Field Values

BASE_ENTRY_DN

public static final java.lang.String BASE_ENTRY_DN
See Also:
Constant Field Values
Constructor Detail

LDAPSampler

public LDAPSampler()
Method Detail

getUsername

public java.lang.String getUsername()
Gets the username attribute of the LDAP object.

Returns:
the username

getPassword

public java.lang.String getPassword()
Gets the password attribute of the LDAP object.

Returns:
the password

setServername

public void setServername(java.lang.String servername)
Sets the Servername attribute of the ServerConfig object.

Parameters:
servername - the new servername value

setPort

public void setPort(java.lang.String port)
Sets the Port attribute of the ServerConfig object.

Parameters:
port - the new Port value

getServername

public java.lang.String getServername()
Gets the servername attribute of the LDAPSampler object.

Returns:
the Servername value

getPort

public java.lang.String getPort()
Gets the Port attribute of the LDAPSampler object.

Returns:
the Port value

setRootdn

public void setRootdn(java.lang.String newRootdn)
Sets the Rootdn attribute of the LDAPSampler object.

Parameters:
newRootdn - the new rootdn value

getRootdn

public java.lang.String getRootdn()
Gets the Rootdn attribute of the LDAPSampler object.

Returns:
the Rootdn value

setTest

public void setTest(java.lang.String newTest)
Sets the Test attribute of the LdapConfig object.

Parameters:
newTest - the new test value(Add,Modify,Delete and search)

getTest

public java.lang.String getTest()
Gets the test attribute of the LDAPSampler object.

Returns:
the test value (Add, Modify, Delete and search)

setUserDefinedTest

public void setUserDefinedTest(boolean value)
Sets the UserDefinedTest attribute of the LDAPSampler object.

Parameters:
value - the new UserDefinedTest value

getUserDefinedTest

public boolean getUserDefinedTest()
Gets the UserDefinedTest attribute of the LDAPSampler object.

Returns:
the test value true or false. If true it will do the UserDefinedTest else our own inbuild test case.

setBaseEntryDN

public void setBaseEntryDN(java.lang.String newbaseentry)
Sets the Base Entry DN attribute of the LDAPSampler object.

Parameters:
newbaseentry - the new Base entry DN value

getBaseEntryDN

public java.lang.String getBaseEntryDN()
Gets the BaseEntryDN attribute of the LDAPSampler object.

Returns:
the Base entry DN value

setArguments

public void setArguments(Arguments value)
Sets the Arguments attribute of the LdapConfig object. This will collect values from the table for user defined test case.

Parameters:
value - the arguments

getArguments

public Arguments getArguments()
Gets the Arguments attribute of the LdapConfig object.

Returns:
the arguments. User defined test case.

getLabel

public java.lang.String getLabel()
Returns a formatted string label describing this sampler

Returns:
a formatted string label describing this sampler

sample

public SampleResult sample(Entry e)
Description copied from interface: Sampler
Obtains statistics about the given Entry, and packages the information into a SampleResult.


Apache JMeter

Copyright © 1998-2009 Apache Software Foundation. All Rights Reserved.