|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.day.jcr.vault.fs.io.AutoSave
public class AutoSave
AutoSave...
| Constructor Summary | |
|---|---|
AutoSave()
|
|
AutoSave(int threshold)
|
|
| Method Summary | |
|---|---|
AutoSave |
copy()
|
int |
getThreshold()
Returns the threshold |
boolean |
isDryRun()
|
void |
markMissing(String path)
|
void |
markResolved(String path)
|
boolean |
modified(int num)
Adds num modified |
boolean |
needsSave()
Returns true if more than getThreshold() nodes are
modified. |
void |
save(Session session)
saves the changes under the given node and resets the counter |
void |
setDebugFailEach(int debugFailEach)
Debug settings to allows to produce failures after each debugFailEach save. |
void |
setDryRun(boolean dryRun)
|
void |
setThreshold(int threshold)
Sets the threshold |
void |
setTracker(ProgressTracker tracker)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AutoSave()
public AutoSave(int threshold)
| Method Detail |
|---|
public AutoSave copy()
public void setTracker(ProgressTracker tracker)
public boolean isDryRun()
public void setDryRun(boolean dryRun)
public void setDebugFailEach(int debugFailEach)
debugFailEach save.
debugFailEach - cardinal indicating when to failpublic boolean needsSave()
true if more than getThreshold() nodes are
modified.
true if threshold reached.
public void save(Session session)
throws RepositoryException
session - the session to save. can be null
RepositoryException - if an error occurs.public int getThreshold()
public void setThreshold(int threshold)
threshold - the thresholdpublic boolean modified(int num)
num modified
num - number of modified
true if threshold is reachedpublic void markMissing(String path)
public void markResolved(String path)
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||