|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.bsvrz.ars.ars.persistence.ConsistencyCheck
public class ConsistencyCheck
Mit den statischen Methoden dieser Klasse können die Container in einem Verzeichnis geprüft werden.
simpleCheck prüft dabei nur die Container-Header, extendedCheck überprüft auch die Nutzdaten.
Field Summary | |
---|---|
private static int |
DII_DIMAX
|
private static int |
DII_DIMIN
Array Index für DataIndexIndex |
private static int |
DTI_DIMAX
|
private static int |
DTI_DIMIN
|
private static int |
DTI_DTMAX
|
private static int |
DTI_DTMIN
Array Index für DataTimeIndex |
static int |
ERROR
|
private static int |
MON_ATMAX
|
private static int |
MON_ATMIN
|
private static int |
MON_DIMAX
|
private static int |
MON_DIMIN
Array Index für MonotoneIndex |
private static int |
MON_DTMAX
|
private static int |
MON_DTMIN
|
static int |
OK
|
private static Pattern |
SimVarPattern
|
static int |
WARN
|
Constructor Summary | |
---|---|
ConsistencyCheck()
|
Method Summary | |
---|---|
private static int |
check(File dir,
Debug logger,
boolean doExtendedCheck)
|
private static int |
checkHdrConsistency(ContainerDataIterator iter,
File file,
Debug logger)
|
static int |
extendedCheck(File dir,
Debug logger)
Prüft alle Container (Header und Body) im angegebenen Verzeichnis. |
static int |
extendedCheckRecursive(File baseDir,
Debug logger)
|
private static long |
extractId(String id,
File path)
|
private static String |
hashMapToString(HashMap<Long,long[]> hashMap)
|
private static HashMap<Long,long[]> |
loadDataIndexeIdx(File indexFile)
|
private static HashMap<Long,long[]> |
loadDataTimeIdx(File indexFile)
|
private static HashMap<Long,long[]> |
loadMonotoneIndex(File indexFile)
|
private static void |
logError(Debug logger,
String msg)
|
private static void |
logFine(Debug logger,
String msg)
|
private static void |
logFiner(Debug logger,
String msg)
|
private static void |
logFinest(Debug logger,
String msg)
|
static int |
simpleCheck(File dir,
Debug logger)
Prüft alle Container-Header im angegebenen Verzeichnis. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int OK
public static final int WARN
public static final int ERROR
private static final Pattern SimVarPattern
private static final int MON_DIMIN
private static final int MON_DIMAX
private static final int MON_ATMIN
private static final int MON_ATMAX
private static final int MON_DTMIN
private static final int MON_DTMAX
private static final int DTI_DTMIN
private static final int DTI_DTMAX
private static final int DTI_DIMIN
private static final int DTI_DIMAX
private static final int DII_DIMIN
private static final int DII_DIMAX
Constructor Detail |
---|
public ConsistencyCheck()
Method Detail |
---|
public static int simpleCheck(File dir, Debug logger)
dir
- Das Verzeichnis, in dem die Container-Header geprüft werden.logger
- Logger, auf dem Meldungen ausgegeben werden sollen
public static int extendedCheck(File dir, Debug logger)
dir
- Das Verzeichnis, in dem die Container geprüft werden.logger
- Logger, auf dem Meldungen ausgegeben werden sollen oder null
falls keine Meldungen ausgegeben werden sollen.
public static int extendedCheckRecursive(File baseDir, Debug logger)
private static int check(File dir, Debug logger, boolean doExtendedCheck)
private static int checkHdrConsistency(ContainerDataIterator iter, File file, Debug logger)
private static HashMap<Long,long[]> loadMonotoneIndex(File indexFile) throws IOException
IOException
private static HashMap<Long,long[]> loadDataTimeIdx(File indexFile) throws IOException
IOException
private static HashMap<Long,long[]> loadDataIndexeIdx(File indexFile) throws IOException
IOException
private static String hashMapToString(HashMap<Long,long[]> hashMap)
private static long extractId(String id, File path)
private static void logError(Debug logger, String msg)
private static void logFine(Debug logger, String msg)
private static void logFiner(Debug logger, String msg)
private static void logFinest(Debug logger, String msg)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |