com.sun.slamd.dslogplay
Class BindOperation

java.lang.Object
  extended by com.sun.slamd.dslogplay.LogOperation
      extended by com.sun.slamd.dslogplay.BindOperation

public class BindOperation
extends LogOperation

This class defines an LDAP bind operation parsed from an access log and implements the necessary logic to parse the log file line and to replay the operation against a Directory Server.

Author:
Neil A. Wilson

Field Summary
 
Fields inherited from class com.sun.slamd.dslogplay.LogOperation
DEFAULT_RESULT_CODE
 
Constructor Summary
BindOperation(java.lang.String bindDN)
          Creates a new bind operation with the provided information.
 
Method Summary
static LogOperation parseLogLine(LogPlaybackJobClass jobThread, java.lang.String line)
          Parses the provided line as appropriate for this type of operation and constructs a new log operation based on the information it contains.
 void replayOperation(LogPlaybackJobClass jobThread)
          Replays this operation against the directory server using the information contained in the provided job thread.
 java.lang.String toString()
          Retrieves a string representation of this log operation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BindOperation

public BindOperation(java.lang.String bindDN)
Creates a new bind operation with the provided information.

Parameters:
bindDN - The DN of the user as whom to bind.
Method Detail

parseLogLine

public static LogOperation parseLogLine(LogPlaybackJobClass jobThread,
                                        java.lang.String line)
Parses the provided line as appropriate for this type of operation and constructs a new log operation based on the information it contains.

Parameters:
jobThread - The job thread with which this parser is associated.
line - The line to be parsed and converted to a log operation.
Returns:
The log operation created from the provided log line, or null if a problem prevented the line from being parsed properly.

replayOperation

public void replayOperation(LogPlaybackJobClass jobThread)
Replays this operation against the directory server using the information contained in the provided job thread.

Specified by:
replayOperation in class LogOperation
Parameters:
jobThread - The job thread to use when replaying this operation.

toString

public java.lang.String toString()
Retrieves a string representation of this log operation.

Specified by:
toString in class LogOperation
Returns:
A string representation of this log operation.