public class IntegrityAudit extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
isUnitTesting |
Constructor and Description |
---|
IntegrityAudit(String resourceName,
String persistenceUnit,
Properties properties)
IntegrityAudit constructor
|
Modifier and Type | Method and Description |
---|---|
int |
getIntegrityAuditPeriodSeconds()
Used during JUnit testing by AuditPeriodTest.java
|
static boolean |
isNodeTypeEnum(String nt)
Determine if the nodeType conforms to the required node types
|
boolean |
isThreadInitialized() |
static boolean |
parmsAreBad(String resourceName,
String persistenceUnit,
Properties properties,
String badparams)
Makes sure we don't try to run the audit with bad parameters.
|
void |
setThreadInitialized(boolean isThreadInitialized) |
void |
startAuditThread()
Starts the audit thread
|
void |
stopAuditThread()
Stops the audit thread
|
public IntegrityAudit(String resourceName, String persistenceUnit, Properties properties) throws Exception
resourceName
- persistenceUnit
- properties
- Exception
public int getIntegrityAuditPeriodSeconds()
public static boolean isNodeTypeEnum(String nt)
public static boolean parmsAreBad(String resourceName, String persistenceUnit, Properties properties, String badparams)
public void startAuditThread() throws Exception
Exception
public void stopAuditThread()
public boolean isThreadInitialized()
public void setThreadInitialized(boolean isThreadInitialized)
Copyright © 2017. All rights reserved.