public class ConsistencyCheck extends Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
ConsistencyCheck() |
Modifier and Type | Method and Description |
---|---|
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.
|
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
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 sollenpublic 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.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