public class UpdateLog extends Object implements PluginInfoInitialized
Modifier and Type | Class and Description |
---|---|
class |
UpdateLog.DBQ |
static class |
UpdateLog.LogPtr |
class |
UpdateLog.RecentUpdates |
static class |
UpdateLog.RecoveryInfo |
static class |
UpdateLog.State |
static class |
UpdateLog.SyncLevel |
Modifier and Type | Field and Description |
---|---|
static int |
ADD |
static int |
COMMIT |
boolean |
debug |
static int |
DELETE |
static int |
DELETE_BY_QUERY |
static int |
FLAG_GAP |
static org.slf4j.Logger |
log |
static String |
LOG_FILENAME_PATTERN |
int |
numRecordsToKeep |
static int |
OPERATION_MASK |
static Runnable |
testing_logReplayFinishHook |
static Runnable |
testing_logReplayHook |
static String |
TLOG_NAME |
boolean |
trace |
Constructor and Description |
---|
UpdateLog() |
public static String LOG_FILENAME_PATTERN
public static String TLOG_NAME
public static org.slf4j.Logger log
public boolean debug
public boolean trace
public static final int ADD
public static final int DELETE
public static final int DELETE_BY_QUERY
public static final int COMMIT
public static final int FLAG_GAP
public static final int OPERATION_MASK
public final int numRecordsToKeep
public static Runnable testing_logReplayHook
public static Runnable testing_logReplayFinishHook
public VersionInfo getVersionInfo()
public void init(PluginInfo info)
init
in interface PluginInfoInitialized
public void init(UpdateHandler uhandler, SolrCore core)
public File getLogDir()
public int getStartingOperation()
public long getLastLogId()
public void add(AddUpdateCommand cmd)
public void add(AddUpdateCommand cmd, boolean clearCaches)
public void delete(DeleteUpdateCommand cmd)
public void deleteByQuery(DeleteUpdateCommand cmd)
public void deleteAll()
public List<UpdateLog.DBQ> getDBQNewer(long version)
public boolean hasUncommittedChanges()
public void preCommit(CommitUpdateCommand cmd)
public void postCommit(CommitUpdateCommand cmd)
public void preSoftCommit(CommitUpdateCommand cmd)
public void postSoftCommit(CommitUpdateCommand cmd)
public void finish(UpdateLog.SyncLevel syncLevel)
public Future<UpdateLog.RecoveryInfo> recoverFromLog()
public void close(boolean committed)
public void close(boolean committed, boolean deleteOnClose)
public UpdateLog.RecentUpdates getRecentUpdates()
public void bufferUpdates()
public boolean dropBufferedUpdates()
public Future<UpdateLog.RecoveryInfo> applyBufferedUpdates()
public UpdateLog.State getState()
public void cancelApplyBufferedUpdates()
public static void deleteFile(File file)
public static File getTlogDir(SolrCore core, PluginInfo info)
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.