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 ConfigurableToolsInterfacedriver - 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.IllegalArgumentExceptionpublic void initCounter(UniqueIDInterface counter) throws java.lang.IllegalArgumentException
CountersInterfaceinitCounter in interface CountersInterfacejava.lang.IllegalArgumentExceptionCountersInterface.initCounter(UniqueIDInterface)public CountStatusInterface getStatus(UniqueIDInterface counter)
CountersInterfacegetStatus in interface CountersInterfaceCountersInterface.getStatus(UniqueIDInterface)public void copyCounter(UniqueIDInterface from_counter, UniqueIDInterface to_counter) throws java.lang.IllegalArgumentException
CountersInterfacecopyCounter in interface CountersInterfacejava.lang.IllegalArgumentExceptionCountersInterface.copyCounter(UniqueIDInterface, UniqueIDInterface)public void copyStatus(StatusInterface from_status, UniqueIDInterface to_counter) throws java.lang.IllegalArgumentException
CountersInterfacecopyStatus in interface CountersInterfacejava.lang.IllegalArgumentExceptionCountersInterface.copyStatus(StatusInterface, UniqueIDInterface)public void sumCounters(UniqueIDInterface add_counter, UniqueIDInterface to_counter) throws java.lang.IllegalArgumentException
CountersInterfacesumCounters in interface CountersInterfacejava.lang.IllegalArgumentExceptionCountersInterface.sumCounters(UniqueIDInterface, UniqueIDInterface)public void sumStatus(StatusInterface add_status, UniqueIDInterface to_counter) throws java.lang.IllegalArgumentException
CountersInterfacesumStatus in interface CountersInterfacejava.lang.IllegalArgumentExceptionCountersInterface.sumStatus(StatusInterface, UniqueIDInterface)public void diffCounters(UniqueIDInterface sub_counter, UniqueIDInterface from_counter) throws java.lang.IllegalArgumentException
CountersInterfacediffCounters in interface CountersInterfacejava.lang.IllegalArgumentExceptionCountersInterface.diffCounters(UniqueIDInterface, UniqueIDInterface)public void diffStatus(StatusInterface sub_status, UniqueIDInterface from_counter) throws java.lang.IllegalArgumentException
CountersInterfacediffStatus in interface CountersInterfacejava.lang.IllegalArgumentExceptionCountersInterface.diffStatus(StatusInterface, UniqueIDInterface)public void clearCounter(UniqueIDInterface counter) throws java.lang.IllegalArgumentException
CountersInterfaceclearCounter in interface CountersInterfacejava.lang.IllegalArgumentExceptionCountersInterface.clearCounter(UniqueIDInterface)public void suspendCounter(UniqueIDInterface counter) throws java.lang.IllegalArgumentException
CountersInterfacesuspendCounter in interface CountersInterfacejava.lang.IllegalArgumentExceptionCountersInterface.suspendCounter(UniqueIDInterface)public void suspendAllCounting()
CountersInterfacesuspendAllCounting in interface CountersInterfaceCountersInterface.suspendAllCounting()public void resumeCounter(UniqueIDInterface counter) throws java.lang.IllegalArgumentException
CountersInterfaceresumeCounter in interface CountersInterfacejava.lang.IllegalArgumentExceptionCountersInterface.resumeCounter(UniqueIDInterface)public void resumeAllCounting()
CountersInterfaceresumeAllCounting in interface CountersInterfaceCountersInterface.resumeAllCounting()public void incrementAllCounters(UniqueCounterInterface testlevel, long status)
CountersInterfaceincrementAllCounters in interface CountersInterfaceCountersInterface#incrementAllCounters(long)public long incrementTestFailures(UniqueCounterInterface counter) throws java.lang.IllegalArgumentException
CountersInterfaceincrementTestFailures in interface CountersInterfacejava.lang.IllegalArgumentExceptionCountersInterface#incrementTestFailures(UniqueIDInterface)public long incrementTestWarnings(UniqueCounterInterface counter) throws java.lang.IllegalArgumentException
CountersInterfaceincrementTestWarnings in interface CountersInterfacejava.lang.IllegalArgumentExceptionCountersInterface#incrementTestWarnings(UniqueIDInterface)public long incrementTestPasses(UniqueCounterInterface counter) throws java.lang.IllegalArgumentException
CountersInterfaceincrementTestPasses in interface CountersInterfacejava.lang.IllegalArgumentExceptionCountersInterface#incrementTestPasses(UniqueIDInterface)public long incrementGeneralFailures(UniqueCounterInterface counter) throws java.lang.IllegalArgumentException
CountersInterfaceincrementGeneralFailures in interface CountersInterfacejava.lang.IllegalArgumentExceptionCountersInterface#incrementGeneralFailures(UniqueIDInterface)public long incrementGeneralWarnings(UniqueCounterInterface counter) throws java.lang.IllegalArgumentException
CountersInterfaceincrementGeneralWarnings in interface CountersInterfacejava.lang.IllegalArgumentExceptionCountersInterface#incrementGeneralWarnings(UniqueIDInterface)public long incrementGeneralPasses(UniqueCounterInterface counter) throws java.lang.IllegalArgumentException
CountersInterfaceincrementGeneralPasses in interface CountersInterfacejava.lang.IllegalArgumentExceptionCountersInterface#incrementGeneralPasses(UniqueIDInterface)public long incrementIOFailures(UniqueCounterInterface counter) throws java.lang.IllegalArgumentException
CountersInterfaceincrementIOFailures in interface CountersInterfacejava.lang.IllegalArgumentExceptionCountersInterface#incrementIOFailures(UniqueIDInterface)public long incrementTestIOFailures(UniqueCounterInterface counter) throws java.lang.IllegalArgumentException
CountersInterfaceincrementTestIOFailures in interface CountersInterfacejava.lang.IllegalArgumentExceptionCountersInterface#incrementTestIOFailures(UniqueIDInterface)public long incrementSkippedRecords(UniqueCounterInterface counter) throws java.lang.IllegalArgumentException
CountersInterfaceincrementSkippedRecords in interface CountersInterfacejava.lang.IllegalArgumentExceptionCountersInterface#incrementSkippedRecords(UniqueIDInterface)public void deleteCounter(UniqueIDInterface counter) throws java.lang.IllegalArgumentException
CountersInterfacedeleteCounter in interface CountersInterfacejava.lang.IllegalArgumentExceptionCountersInterface.deleteCounter(UniqueIDInterface)public boolean isToolRunning()
GenericToolsInterfaceisToolRunning in interface GenericToolsInterfaceGenericToolsInterface#isToolRunning()public void reset()
GenericToolsInterfacereset in interface GenericToolsInterfaceGenericToolsInterface#reset()public void shutdown()
GenericToolsInterfaceshutdown in interface GenericToolsInterfaceGenericToolsInterface#shutdown()public void setCounterMode(UniqueIDInterface counter, long mode) throws java.lang.IllegalArgumentException
CountersInterfacesetCounterMode in interface CountersInterfacejava.lang.IllegalArgumentExceptionCountersInterface.setCounterMode(UniqueIDInterface,long)public long getCounterMode(UniqueIDInterface counter) throws java.lang.IllegalArgumentException
CountersInterfacegetCounterMode in interface CountersInterfacejava.lang.IllegalArgumentExceptionCountersInterface.getCounterMode(UniqueIDInterface)public CoreInterface getCoreInterface() throws java.lang.IllegalStateException
GenericToolsInterfacegetCoreInterface in interface GenericToolsInterfacejava.lang.IllegalStateException - ALWAYS since there is no CoreInterface in this class.GenericToolsInterface#getCoreInterface()Copyright © SAS Institute. All Rights Reserved.