|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.slamd.dslogplay.LogParser
This class defines a utility that may be used to parse Directory Server access log files and convert them into operations that may be replayed against the server.
| Constructor Summary | |
LogParser(LogPlaybackJobClass jobThread,
boolean captureAdds,
boolean captureBinds,
boolean captureCompares,
boolean captureDeletes,
boolean captureModifies,
boolean captureSearches)
Creates a new log parser that will be used to capture the specified types of elements. |
|
| Method Summary | |
LogOperation[] |
getOperations()
Retrieves an array containing the operations that have been captured from the log file(s). |
void |
parseLogFile(java.lang.String logFile)
Parses the specified log file and captures information about the appropriate operations contained in it. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LogParser(LogPlaybackJobClass jobThread,
boolean captureAdds,
boolean captureBinds,
boolean captureCompares,
boolean captureDeletes,
boolean captureModifies,
boolean captureSearches)
jobThread - The job thread with which this parser is
associated.captureAdds - Indicates whether to capture add operations.captureBinds - Indicates whether to capture bind operations.captureCompares - Indicates whether to capture compare operations.captureDeletes - Indicates whether to capture delete operations.captureModifies - Indicates whether to capture modify operations.captureSearches - Indicates whether to capture search operations.| Method Detail |
public void parseLogFile(java.lang.String logFile)
throws java.io.IOException
logFile - The path to the log file to be parsed.
java.io.IOException - If a problem occurs while reading the log file.public LogOperation[] getOperations()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||