| | |
| | | |
| | | import org.opends.server.api.Backend; |
| | | import org.opends.server.api.ErrorLogPublisher; |
| | | import org.opends.server.api.DebugLogPublisher; |
| | | import org.opends.server.backends.jeb.BackendImpl; |
| | | import org.opends.server.backends.jeb.VerifyConfig; |
| | | import org.opends.server.config.ConfigException; |
| | |
| | | import org.opends.server.loggers.ThreadFilterTextErrorLogPublisher; |
| | | import org.opends.server.loggers.TextWriter; |
| | | import org.opends.server.loggers.ErrorLogger; |
| | | import org.opends.server.loggers.debug.TextDebugLogPublisher; |
| | | import org.opends.server.loggers.debug.DebugLogger; |
| | | import org.opends.server.types.DirectoryException; |
| | | import org.opends.server.types.DN; |
| | | import org.opends.server.types.InitializationException; |
| | |
| | | public class VerifyIndex |
| | | { |
| | | private static ErrorLogPublisher errorLogPublisher = null; |
| | | private static DebugLogPublisher debugLogPublisher = null; |
| | | /** |
| | | * Processes the command-line arguments and invokes the verify process. |
| | | * |
| | |
| | | { |
| | | ErrorLogger.removeErrorLogPublisher(errorLogPublisher); |
| | | } |
| | | if(debugLogPublisher != null) |
| | | { |
| | | DebugLogger.removeDebugLogPublisher(debugLogPublisher); |
| | | } |
| | | |
| | | if(retCode != 0) |
| | | { |
| | |
| | | new TextWriter.STREAM(out)); |
| | | ErrorLogger.addErrorLogPublisher(errorLogPublisher); |
| | | |
| | | debugLogPublisher = |
| | | TextDebugLogPublisher.getStartupTextDebugPublisher( |
| | | new TextWriter.STDOUT()); |
| | | DebugLogger.addDebugLogPublisher(debugLogPublisher); |
| | | |
| | | } |
| | | catch(Exception e) |
| | | { |