public class IntegrityMonitor extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
isUnitTesting |
Modifier | Constructor and Description |
---|---|
protected |
IntegrityMonitor(String resourceName,
Properties properties)
IntegrityMonitor constructor.
|
Modifier and Type | Method and Description |
---|---|
static void |
deleteInstance() |
void |
endTransaction()
Increment the local forward progress counter.
|
void |
evaluateSanity()
evaluateSanity() is designed to be called by an external entity to evealuate the sanity
of the node.
|
ArrayList<ForwardProgressEntity> |
getAllForwardProgressEntity() |
static IntegrityMonitor |
getInstance() |
static IntegrityMonitor |
getInstance(String resourceName,
Properties properties)
Get an instance of IntegrityMonitor for a given resource name.
|
StateManagement |
getStateManager() |
void |
startTransaction()
Checks admin state and resets transaction timer.
|
void |
stateAudit()
Look for "Forward Progress" on other nodes.
|
String |
stateCheck(String dep) |
void |
subsystemTest()
Additional testing for subsystems that do not have a /test interface (for ex.
|
void |
testTransaction()
Execute a test transaction.
|
static void |
updateProperties(Properties newprop) |
protected IntegrityMonitor(String resourceName, Properties properties) throws Exception
resourceName
- The resource name of the resourceproperties
- a set of properties passed in from the resourceException
- if any errors are encountered in the consructorpublic static IntegrityMonitor getInstance(String resourceName, Properties properties) throws Exception
resourceName
- The resource name of the resourceproperties
- a set of properties passed in from the resourceException
- if unable to create jmx url or the constructor returns an exceptionpublic static IntegrityMonitor getInstance() throws Exception
Exception
public static void deleteInstance()
public void evaluateSanity() throws Exception
Exception
public ArrayList<ForwardProgressEntity> getAllForwardProgressEntity()
public void testTransaction()
public void subsystemTest() throws Exception
Exception
public void startTransaction() throws AdministrativeStateException, StandbyStatusException
AdministrativeStateException
- throws admin state exception if resource is lockedStandbyStatusException
public void endTransaction()
public final StateManagement getStateManager()
public static void updateProperties(Properties newprop)
public void stateAudit()
Copyright © 2017. All rights reserved.