public class SAFSCOUNTERS extends java.lang.Object implements ConfigurableToolsInterface, CountersInterface
Modifier and Type | Field and Description |
---|---|
protected java.util.Hashtable |
counters |
protected DriverInterface |
driver |
protected boolean |
suspended
TRUE if ALL counting is currently suspended.
|
ALL_STATUS_INFO_MODE, STATUS_GENERAL_FAILURE, STATUS_GENERAL_PASS, STATUS_GENERAL_WARNING, STATUS_IO_FAILURE, STATUS_SKIPPED_RECORD, STATUS_TEST_FAILURE, STATUS_TEST_IO_FAILURE, STATUS_TEST_PASS, STATUS_TEST_WARNING, STEP_TESTS_ONLY_MODE
Constructor and Description |
---|
SAFSCOUNTERS()
Constructor for SAFSCOUNTERS
|
Modifier and Type | Method and Description |
---|---|
void |
clearCounter(UniqueIDInterface counter)
Clear all counts on the specified counter.
|
void |
copyCounter(UniqueIDInterface from_counter,
UniqueIDInterface to_counter)
Copy the from_counter counts to the specified to_counter.
|
void |
copyStatus(StatusInterface from_status,
UniqueIDInterface to_counter)
Copy the from_status counts to the specified to_counter.
|
void |
deleteCounter(UniqueIDInterface counter)
Delete a counter out of storage.
|
void |
diffCounters(UniqueIDInterface sub_counter,
UniqueIDInterface from_counter)
Substract the sub_counter counts from the specified from_counter.
|
void |
diffStatus(StatusInterface sub_status,
UniqueIDInterface from_counter)
Substract the sub_status counts from the specified from_counter.
|
CoreInterface |
getCoreInterface()
Retrieve the instance of the CoreInterface used to communicate with the framework.
|
long |
getCounterMode(UniqueIDInterface counter)
Get a counter's mode.
|
CountStatusInterface |
getStatus(UniqueIDInterface counter)
Get the status counts from the specified counter.
|
protected java.lang.String |
getUpperCaseKey(UniqueIDInterface counter)
internal convenience routine
|
void |
incrementAllCounters(UniqueCounterInterface testlevel,
long status)
Increment the Total Records and the appropriate status count for ALL counters.
|
long |
incrementGeneralFailures(UniqueCounterInterface counter)
Increment the Total Records and General Failures count for the counter.
|
long |
incrementGeneralPasses(UniqueCounterInterface counter)
Increment the Total Records and General Passes count for the counter.
|
long |
incrementGeneralWarnings(UniqueCounterInterface counter)
Increment the Total Records and General Warnings count for the counter.
|
long |
incrementIOFailures(UniqueCounterInterface counter)
Increment the Total Records and IO Failure Records count for the counter.
|
long |
incrementSkippedRecords(UniqueCounterInterface counter)
Increment the Total Records and Skipped Records count for the counter.
|
long |
incrementTestFailures(UniqueCounterInterface counter)
Increment the Total Records and Test Failures count for the counter.
|
long |
incrementTestIOFailures(UniqueCounterInterface counter)
Increment the Total Records, Test Failures, and IO Failure Records count for the counter.
|
long |
incrementTestPasses(UniqueCounterInterface counter)
Increment the Total Records and Test Passes count for the counter.
|
long |
incrementTestWarnings(UniqueCounterInterface counter)
Increment the Total Records and Test Warnings count for the counter.
|
void |
initCounter(UniqueIDInterface counter)
Initialize/Start a new counter.
|
boolean |
isToolRunning()
TRUE if the underlying tool is running.
|
void |
launchInterface(java.lang.Object driver)
Expects a DriverInterface object for initialization.
|
void |
reset()
Reset or clear any cached information in the underlying tool or service.
|
void |
resumeAllCounting()
Resumes counting suspended by suspendAllCounting.
|
void |
resumeCounter(UniqueIDInterface counter)
Resume counting on a single counter suspended by suspendCounter.
|
void |
setCounterMode(UniqueIDInterface counter,
long mode)
Set a counter's mode.
|
void |
shutdown()
Shutdown the underlying tool or service.
|
void |
sumCounters(UniqueIDInterface add_counter,
UniqueIDInterface to_counter)
Add the add_counter counts to the specified to_counter.
|
void |
sumStatus(StatusInterface add_status,
UniqueIDInterface to_counter)
Add the add_status counts to the specified to_counter.
|
void |
suspendAllCounting()
Suspends counting on ALL counters until counting is resumed with resumeAllCounting.
|
void |
suspendCounter(UniqueIDInterface counter)
Suspend counting on a specific counter.
|
protected boolean suspended
protected DriverInterface driver
protected java.util.Hashtable counters
public void launchInterface(java.lang.Object driver)
launchInterface
in interface ConfigurableToolsInterface
driver
- can be whatever the final implementation needs it to be. This
might be a String with configuration information, the name of a class, or an instance
of some object used to provide configuration assets.SimpleToolsInterface#launchInterface()
protected java.lang.String getUpperCaseKey(UniqueIDInterface counter) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public void initCounter(UniqueIDInterface counter) throws java.lang.IllegalArgumentException
CountersInterface
initCounter
in interface CountersInterface
java.lang.IllegalArgumentException
CountersInterface.initCounter(UniqueIDInterface)
public CountStatusInterface getStatus(UniqueIDInterface counter)
CountersInterface
getStatus
in interface CountersInterface
CountersInterface.getStatus(UniqueIDInterface)
public void copyCounter(UniqueIDInterface from_counter, UniqueIDInterface to_counter) throws java.lang.IllegalArgumentException
CountersInterface
copyCounter
in interface CountersInterface
java.lang.IllegalArgumentException
CountersInterface.copyCounter(UniqueIDInterface, UniqueIDInterface)
public void copyStatus(StatusInterface from_status, UniqueIDInterface to_counter) throws java.lang.IllegalArgumentException
CountersInterface
copyStatus
in interface CountersInterface
java.lang.IllegalArgumentException
CountersInterface.copyStatus(StatusInterface, UniqueIDInterface)
public void sumCounters(UniqueIDInterface add_counter, UniqueIDInterface to_counter) throws java.lang.IllegalArgumentException
CountersInterface
sumCounters
in interface CountersInterface
java.lang.IllegalArgumentException
CountersInterface.sumCounters(UniqueIDInterface, UniqueIDInterface)
public void sumStatus(StatusInterface add_status, UniqueIDInterface to_counter) throws java.lang.IllegalArgumentException
CountersInterface
sumStatus
in interface CountersInterface
java.lang.IllegalArgumentException
CountersInterface.sumStatus(StatusInterface, UniqueIDInterface)
public void diffCounters(UniqueIDInterface sub_counter, UniqueIDInterface from_counter) throws java.lang.IllegalArgumentException
CountersInterface
diffCounters
in interface CountersInterface
java.lang.IllegalArgumentException
CountersInterface.diffCounters(UniqueIDInterface, UniqueIDInterface)
public void diffStatus(StatusInterface sub_status, UniqueIDInterface from_counter) throws java.lang.IllegalArgumentException
CountersInterface
diffStatus
in interface CountersInterface
java.lang.IllegalArgumentException
CountersInterface.diffStatus(StatusInterface, UniqueIDInterface)
public void clearCounter(UniqueIDInterface counter) throws java.lang.IllegalArgumentException
CountersInterface
clearCounter
in interface CountersInterface
java.lang.IllegalArgumentException
CountersInterface.clearCounter(UniqueIDInterface)
public void suspendCounter(UniqueIDInterface counter) throws java.lang.IllegalArgumentException
CountersInterface
suspendCounter
in interface CountersInterface
java.lang.IllegalArgumentException
CountersInterface.suspendCounter(UniqueIDInterface)
public void suspendAllCounting()
CountersInterface
suspendAllCounting
in interface CountersInterface
CountersInterface.suspendAllCounting()
public void resumeCounter(UniqueIDInterface counter) throws java.lang.IllegalArgumentException
CountersInterface
resumeCounter
in interface CountersInterface
java.lang.IllegalArgumentException
CountersInterface.resumeCounter(UniqueIDInterface)
public void resumeAllCounting()
CountersInterface
resumeAllCounting
in interface CountersInterface
CountersInterface.resumeAllCounting()
public void incrementAllCounters(UniqueCounterInterface testlevel, long status)
CountersInterface
incrementAllCounters
in interface CountersInterface
CountersInterface#incrementAllCounters(long)
public long incrementTestFailures(UniqueCounterInterface counter) throws java.lang.IllegalArgumentException
CountersInterface
incrementTestFailures
in interface CountersInterface
java.lang.IllegalArgumentException
CountersInterface#incrementTestFailures(UniqueIDInterface)
public long incrementTestWarnings(UniqueCounterInterface counter) throws java.lang.IllegalArgumentException
CountersInterface
incrementTestWarnings
in interface CountersInterface
java.lang.IllegalArgumentException
CountersInterface#incrementTestWarnings(UniqueIDInterface)
public long incrementTestPasses(UniqueCounterInterface counter) throws java.lang.IllegalArgumentException
CountersInterface
incrementTestPasses
in interface CountersInterface
java.lang.IllegalArgumentException
CountersInterface#incrementTestPasses(UniqueIDInterface)
public long incrementGeneralFailures(UniqueCounterInterface counter) throws java.lang.IllegalArgumentException
CountersInterface
incrementGeneralFailures
in interface CountersInterface
java.lang.IllegalArgumentException
CountersInterface#incrementGeneralFailures(UniqueIDInterface)
public long incrementGeneralWarnings(UniqueCounterInterface counter) throws java.lang.IllegalArgumentException
CountersInterface
incrementGeneralWarnings
in interface CountersInterface
java.lang.IllegalArgumentException
CountersInterface#incrementGeneralWarnings(UniqueIDInterface)
public long incrementGeneralPasses(UniqueCounterInterface counter) throws java.lang.IllegalArgumentException
CountersInterface
incrementGeneralPasses
in interface CountersInterface
java.lang.IllegalArgumentException
CountersInterface#incrementGeneralPasses(UniqueIDInterface)
public long incrementIOFailures(UniqueCounterInterface counter) throws java.lang.IllegalArgumentException
CountersInterface
incrementIOFailures
in interface CountersInterface
java.lang.IllegalArgumentException
CountersInterface#incrementIOFailures(UniqueIDInterface)
public long incrementTestIOFailures(UniqueCounterInterface counter) throws java.lang.IllegalArgumentException
CountersInterface
incrementTestIOFailures
in interface CountersInterface
java.lang.IllegalArgumentException
CountersInterface#incrementTestIOFailures(UniqueIDInterface)
public long incrementSkippedRecords(UniqueCounterInterface counter) throws java.lang.IllegalArgumentException
CountersInterface
incrementSkippedRecords
in interface CountersInterface
java.lang.IllegalArgumentException
CountersInterface#incrementSkippedRecords(UniqueIDInterface)
public void deleteCounter(UniqueIDInterface counter) throws java.lang.IllegalArgumentException
CountersInterface
deleteCounter
in interface CountersInterface
java.lang.IllegalArgumentException
CountersInterface.deleteCounter(UniqueIDInterface)
public boolean isToolRunning()
GenericToolsInterface
isToolRunning
in interface GenericToolsInterface
GenericToolsInterface#isToolRunning()
public void reset()
GenericToolsInterface
reset
in interface GenericToolsInterface
GenericToolsInterface#reset()
public void shutdown()
GenericToolsInterface
shutdown
in interface GenericToolsInterface
GenericToolsInterface#shutdown()
public void setCounterMode(UniqueIDInterface counter, long mode) throws java.lang.IllegalArgumentException
CountersInterface
setCounterMode
in interface CountersInterface
java.lang.IllegalArgumentException
CountersInterface.setCounterMode(UniqueIDInterface,long)
public long getCounterMode(UniqueIDInterface counter) throws java.lang.IllegalArgumentException
CountersInterface
getCounterMode
in interface CountersInterface
java.lang.IllegalArgumentException
CountersInterface.getCounterMode(UniqueIDInterface)
public CoreInterface getCoreInterface() throws java.lang.IllegalStateException
GenericToolsInterface
getCoreInterface
in interface GenericToolsInterface
java.lang.IllegalStateException
- ALWAYS since there is no CoreInterface in this class.GenericToolsInterface#getCoreInterface()
Copyright © SAS Institute. All Rights Reserved.