|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.solr.update.CommitTracker
public final class CommitTracker
Helper class for tracking autoCommit state. Note: This is purely an implementation detail of autoCommit and will definitely change in the future, so the interface should not be relied-upon Note: all access must be synchronized. Public for tests.
Field Summary | |
---|---|
int |
DOC_COMMIT_DELAY_MS
|
protected static org.slf4j.Logger |
log
|
Constructor Summary | |
---|---|
CommitTracker(String name,
SolrCore core,
int docsUpperBound,
int timeUpperBound,
boolean openSearcher,
boolean softCommit)
|
Method Summary | |
---|---|
void |
addedDocument(int commitWithin)
Indicate that documents have been added |
void |
cancelPendingCommit()
|
void |
close()
|
void |
deletedDocument(int commitWithin)
Indicate that documents have been deleted |
void |
didCommit()
Inform tracker that a commit has occurred |
void |
didRollback()
Inform tracker that a rollback has occurred, cancel any pending commits |
int |
getCommitCount()
|
boolean |
getOpenSearcher()
|
long |
getTimeUpperBound()
|
void |
run()
This is the worker part for the ScheduledFuture |
void |
scheduleCommitWithin(long commitMaxTime)
schedule individual commits |
void |
setTimeUpperBound(long timeUpperBound)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final org.slf4j.Logger log
public final int DOC_COMMIT_DELAY_MS
Constructor Detail |
---|
public CommitTracker(String name, SolrCore core, int docsUpperBound, int timeUpperBound, boolean openSearcher, boolean softCommit)
Method Detail |
---|
public boolean getOpenSearcher()
public void close()
public void scheduleCommitWithin(long commitMaxTime)
public void cancelPendingCommit()
public void addedDocument(int commitWithin)
public void deletedDocument(int commitWithin)
public void didCommit()
public void didRollback()
public void run()
run
in interface Runnable
public int getCommitCount()
public String toString()
toString
in class Object
public long getTimeUpperBound()
public void setTimeUpperBound(long timeUpperBound)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |