public class DbAudit extends Object
Modifier and Type | Method and Description |
---|---|
HashSet<Object> |
compareEntries(HashMap<Object,Object> myEntries,
HashMap<Object,Object> theirEntries)
compareEntries() will compare the lists of entries from the DB
|
void |
dbAudit(String resourceName,
String persistenceUnit,
String nodeType)
dbAudit actually does the audit
|
void |
dbAuditSimulate(String resourceName,
String persistenceUnit,
String nodeType)
dbAuditSimulate simulates the DB audit
|
void |
writeAuditDebugLog(String clazzName,
String resourceName1,
String resourceName2,
Object entry1,
Object entry2)
writeAuditDebugLog() writes the mismatched entry details to the debug log
|
void |
writeAuditSummaryLog(String clazzName,
String resourceName1,
String resourceName2,
String keys)
writeAuditSummaryLog() writes a summary of the DB mismatches to the error log
|
public DbAudit(DbDAO dbDAO)
public void dbAudit(String resourceName, String persistenceUnit, String nodeType) throws Exception
resourceName
- persistenceUnit
- nodeType
- Exception
public void dbAuditSimulate(String resourceName, String persistenceUnit, String nodeType) throws InterruptedException, DbDaoTransactionException
resourceName
- persistenceUnit
- nodeType
- InterruptedException
DbDaoTransactionException
public HashSet<Object> compareEntries(HashMap<Object,Object> myEntries, HashMap<Object,Object> theirEntries)
myEntries
- theirEntries
- public void writeAuditDebugLog(String clazzName, String resourceName1, String resourceName2, Object entry1, Object entry2) throws ClassNotFoundException
clazzName
- resourceName1
- resourceName2
- entry1
- entry2
- ClassNotFoundException
public void writeAuditSummaryLog(String clazzName, String resourceName1, String resourceName2, String keys) throws ClassNotFoundException
clazzName
- resourceName1
- resourceName2
- keys
- ClassNotFoundException
Copyright © 2017. All rights reserved.