mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Nicolas Capponi
28.34.2014 1d5d1a6a4a0a58d6bb4803527dacb6641c027816
opendj3-server-dev/src/server/org/opends/server/loggers/RotationActionThread.java
@@ -22,18 +22,16 @@
 *
 *
 *      Copyright 2006-2008 Sun Microsystems, Inc.
 *      Portions Copyright 2014 ForgeRock AS
 */
package org.opends.server.loggers;
import java.util.ArrayList;
import org.forgerock.i18n.slf4j.LocalizedLogger;
import org.opends.server.api.DirectoryThread;
import org.opends.server.config.ConfigEntry;
import static org.opends.server.loggers.debug.DebugLogger.*;
import org.opends.server.loggers.debug.DebugTracer;
import org.opends.server.types.DebugLogLevel;
/**
 * This thread is spawned off at the time of file rotation to
 * execute specific actions such as compression, encryption,
@@ -41,11 +39,7 @@
 */
public class RotationActionThread extends DirectoryThread
{
  /**
   * The tracer object for the debug logger.
   */
  private static final DebugTracer TRACER = getTracer();
  private static final LocalizedLogger logger = LocalizedLogger.getLoggerForThisClass();
  private ArrayList<ActionType> actions;
  private String filename;
@@ -96,8 +90,7 @@
            //action = new SignatureAction(filename, alias);
            break;
          case ENCRYPT:
            String encFile = filename + ".enc";
            //String certAlias =
          //String certAlias =
            //  RotationConfigUtil.getCertificateAlias(configEntry);
            // FIXME - make the encryption algorithm configurable.
            //action = new EncryptAction(filename, encFile, false, certAlias,
@@ -118,10 +111,7 @@
      }
    } catch(Exception e)
    {
      if (debugEnabled())
      {
        TRACER.debugCaught(DebugLogLevel.ERROR, e);
      }
      logger.traceException(e);
    }
  }