org.opends.server.tools
Class LDIFDiff
java.lang.Object
org.opends.server.tools.LDIFDiff
public class LDIFDiff
- extends java.lang.Object
This class provides a program that may be used to determine the differences
between two LDIF files, generating the output in LDIF change format. There
are several things to note about the operation of this program:
- This program is only designed for cases in which both LDIF files to be
compared will fit entirely in memory at the same time.
- This program will only compare live data in the LDIF files and will
ignore comments and other elements that do not have any real impact on
the way that the data is interpreted.
- The differences will be generated in such a way as to provide the
maximum amount of information, so that there will be enough information
for the changes to be reversed (i.e., it will not use the "replace"
modification type but only the "add" and "delete" types, and contents
of deleted entries will be included as comments).
Note
that this is only an option for cases in which both LDIF files can fit in
memory. Also note that this will only compare live data in the LDIF files
and will ignore comments and other elements that do not have any real impact
on the way that the data is interpreted.
Method Summary |
static void |
main(java.lang.String[] args)
Provides the command line arguments to the mainDiff method
so that they can be processed. |
static int |
mainDiff(java.lang.String[] args,
boolean serverInitialized,
java.io.OutputStream outStream,
java.io.OutputStream errStream)
Parses the provided command line arguments and performs the appropriate
LDIF diff operation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LDIFDiff
public LDIFDiff()
main
public static void main(java.lang.String[] args)
- Provides the command line arguments to the
mainDiff
method
so that they can be processed.
- Parameters:
args
- The command line arguments provided to this program.
mainDiff
public static int mainDiff(java.lang.String[] args,
boolean serverInitialized,
java.io.OutputStream outStream,
java.io.OutputStream errStream)
- Parses the provided command line arguments and performs the appropriate
LDIF diff operation.
- Parameters:
args
- The command line arguments provided to this
program.serverInitialized
- Indicates whether the Directory Server has
already been initialized (and therefore should
not be initialized a second time).outStream
- The output stream to use for standard output, or
null
if standard output is not needed.errStream
- The output stream to use for standard error, or
null
if standard error is not needed.
- Returns:
- The return code for this operation. A value of zero indicates
that all processing completed successfully. A nonzero value
indicates that some problem occurred during processing.