|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectJobClass
org.apache.directory.server.benchmarks.BindBenchmark
A simple bind benchmark. Here the same bindDn and password is used to bind to the directory. The connection to the directory is by default shared across iterations of a thread but this can be changed. This is not a real world experiment but a way for us to stress test the server, profile it, optimize it and regression test our results under stress for more reliable feedback.
Field Summary | |
static java.lang.String |
STAT_TRACKER_AUTHENTICATION_ATTEMPTS
The name of the stat tracker that will be used to count the number of authentication attempts. |
static java.lang.String |
STAT_TRACKER_AUTHENTICATION_TIME
The name of the stat tracker that will be used to keep track of the time required to perform each authentication. |
static java.lang.String |
STAT_TRACKER_FAILED_AUTHENTICATIONS
The name of the stat tracker that will be used to count the number of failed authentications. |
static java.lang.String |
STAT_TRACKER_SUCCESSFUL_AUTHENTICATIONS
The name of the stat tracker that will be used to count the number of successful authentications. |
Constructor Summary | |
BindBenchmark()
|
Method Summary | |
void |
destroy()
Attempts to force this thread to exit by closing the connections to the directory server and setting them to null . |
java.lang.String |
getJobCategoryName()
|
java.lang.String |
getJobDescription()
|
java.lang.String |
getJobName()
|
ParameterList |
getParameterStubs()
Returns the set of parameters whose value may be specified by the end user. |
StatTracker[] |
getStatTrackers()
|
StatTracker[] |
getStatTrackerStubs(java.lang.String clientID,
java.lang.String threadID,
int collectionInterval)
|
void |
initializeClient(java.lang.String clientID,
ParameterList parameters)
Performs initialization for this job on each client immediately before each thread is created to actually run the job. |
void |
initializeThread(java.lang.String clientID,
java.lang.String threadID,
int collectionInterval,
ParameterList parameters)
|
boolean |
providesParameterTest()
|
void |
runJob()
Performs the work of actually running the job. |
boolean |
testJobParameters(ParameterList parameters,
java.util.ArrayList outputMessages)
Provides a means of testing the provided job parameters to determine whether they are valid (e.g., to see if the server is reachable) before scheduling the job for execution. |
void |
validateJobInfo(int numClients,
int threadsPerClient,
int threadStartupDelay,
java.util.Date startTime,
java.util.Date stopTime,
int duration,
int collectionInterval,
ParameterList parameters)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String STAT_TRACKER_AUTHENTICATION_ATTEMPTS
public static final java.lang.String STAT_TRACKER_AUTHENTICATION_TIME
public static final java.lang.String STAT_TRACKER_FAILED_AUTHENTICATIONS
public static final java.lang.String STAT_TRACKER_SUCCESSFUL_AUTHENTICATIONS
Constructor Detail |
public BindBenchmark()
Method Detail |
public java.lang.String getJobDescription()
public java.lang.String getJobName()
public java.lang.String getJobCategoryName()
public ParameterList getParameterStubs()
public StatTracker[] getStatTrackerStubs(java.lang.String clientID, java.lang.String threadID, int collectionInterval)
public StatTracker[] getStatTrackers()
public void validateJobInfo(int numClients, int threadsPerClient, int threadStartupDelay, java.util.Date startTime, java.util.Date stopTime, int duration, int collectionInterval, ParameterList parameters) throws InvalidValueException
InvalidValueException
public boolean providesParameterTest()
public boolean testJobParameters(ParameterList parameters, java.util.ArrayList outputMessages)
parameters
- The job parameters to be tested.outputMessages
- The lines of output that were generated as part of
the testing process. Each line of output should
be added to this list as a separate string, and
empty strings (but not null
values)
are allowed to provide separation between
different messages. No formatting should be
provided for these messages, however, since they
may be displayed in either an HTML or plain text
interface.
true
if the test completed successfully, or
false
if not.public void initializeClient(java.lang.String clientID, ParameterList parameters) throws UnableToRunException
clientID
- The ID assigned to the client running this job.parameters
- The set of parameters provided to this job that can be
used to customize its behavior.
UnableToRunException
- If the client initialization could not be
completed successfully and the job is unable
to run.public void initializeThread(java.lang.String clientID, java.lang.String threadID, int collectionInterval, ParameterList parameters) throws UnableToRunException
UnableToRunException
public void runJob()
public void destroy()
null
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |