| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jalios.jstore.LogManager
public class LogManager
This class manages the log file
| Field Summary | |
|---|---|
static String | 
REVISION
 | 
| Fields inherited from interface com.jalios.jstore.StoreConstants | 
|---|
ARRAY_FLAG, CLEANING_STATE, COLLECTION_FLAG, CREATE_OP, DELETE_OP, IDLE_STATE, INNER_LOGS, INNER_MILESTONE, INNER_PREFIX, INNER_SYNC, ITEM_ESCAPE_CHAR, ITEM_SEPARATOR, LOADING_STATE, MAP_ASSIGN, MAP_CHARS_TO_ESCAPE, MAP_CLASS_SEPARATOR, MAP_FLAG, NAMESPACE, SH_SUFFIX, STORING_STATE, UPDATE_OP | 
| Method Summary | |
|---|---|
 boolean | 
backupStore(File backupFile)
Backup the store.  | 
 LoadReport | 
getLoadReport()
 | 
 String | 
getLogFilename()
Return the name of the log file.  | 
 void | 
replaceSuffix(TreeSet<StorableLogEntry> newSuffix,
              LogEntry startLogEntry,
              boolean includeStart,
              boolean useIndex)
Replace the existing suffix of the store (starting at startLogEntry) with a new one represented by newSuffix.  | 
static String | 
searchStamp(String line)
Search the stamp in a line of the store.  | 
 void | 
setReplaceSuffixLimit(int replaceSuffixLimit)
A store suffix replacement starting before the limit will be rejected.  | 
 boolean | 
verifyLastStampIndex()
Returns true if the last (highest) stamp is correctly indexed.  | 
 boolean | 
verifyStampLineMap()
Verify if the all the stamps are correctly indexed.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final String REVISION
| Method Detail | 
|---|
public String getLogFilename()
public LoadReport getLoadReport()
public void replaceSuffix(TreeSet<StorableLogEntry> newSuffix,
                          LogEntry startLogEntry,
                          boolean includeStart,
                          boolean useIndex)
                   throws IOException
newSuffix - the new suffixstartLogEntry - the position of the suffix to replaceincludeStart - if true start the suffix remplacement at startLogEntry ; otherwise just after startLogEntryuseIndex - should use indexed log access
IOException - if I/O exception occurs or a LogExpcetion if some conditions are not respected 
 (eg: too deep replacement, new store is smaller than the common prefix)public boolean verifyLastStampIndex()
public boolean verifyStampLineMap()
public static String searchStamp(String line)
line - a line of the store
public boolean backupStore(File backupFile)
backupFile - the backup file.
public void setReplaceSuffixLimit(int replaceSuffixLimit)
replaceSuffixLimit - the limit (in number of lines).
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||