| | |
| | | * |
| | | * |
| | | * Copyright 2006-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2014 ForgeRock AS |
| | | * Portions Copyright 2011-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.backends.jeb; |
| | | |
| | | import static org.opends.messages.JebMessages.*; |
| | | |
| | | import java.util.*; |
| | | import java.util.concurrent.atomic.AtomicBoolean; |
| | | |
| | |
| | | |
| | | import com.sleepycat.je.*; |
| | | |
| | | import static org.opends.messages.JebMessages.*; |
| | | |
| | | /** |
| | | * This class is used to run an index verification process on the backend. |
| | | */ |
| | | /** This class is used to run an index verification process on the backend. */ |
| | | public class VerifyJob |
| | | { |
| | | private static final LocalizedLogger logger = LocalizedLogger.getLoggerForThisClass(); |
| | |
| | | /** The subtree database. */ |
| | | private Index id2s; |
| | | |
| | | /** |
| | | * A list of the attribute indexes to be verified. |
| | | */ |
| | | /** A list of the attribute indexes to be verified. */ |
| | | private final ArrayList<AttributeIndex> attrIndexList = new ArrayList<AttributeIndex>(); |
| | | |
| | | /** |
| | | * A list of the VLV indexes to be verified. |
| | | */ |
| | | /** A list of the VLV indexes to be verified. */ |
| | | private final ArrayList<VLVIndex> vlvIndexList = new ArrayList<VLVIndex>(); |
| | | |
| | | /** |
| | |
| | | entryContainer.sharedLock.lock(); |
| | | try |
| | | { |
| | | ArrayList<String> completeList = verifyConfig.getCompleteList(); |
| | | ArrayList<String> cleanList = verifyConfig.getCleanList(); |
| | | final List<String> completeList = verifyConfig.getCompleteList(); |
| | | final List<String> cleanList = verifyConfig.getCleanList(); |
| | | |
| | | boolean cleanMode = false; |
| | | if (completeList.isEmpty() && cleanList.isEmpty()) |
| | |
| | | } |
| | | else |
| | | { |
| | | ArrayList<String> list; |
| | | final List<String> list; |
| | | if (!completeList.isEmpty()) |
| | | { |
| | | list = completeList; |