Class ConnectorStatus
java.lang.Object
com.sun.ts.tests.common.connector.util.ConnectorStatus
- All Implemented Interfaces:
Log
Implementation class of Log interface, to be used as a verification mechanism for connector tests. This class is
implemented as a Singleton. The TS whitebox resource adapter writes the log, and the TS test reads the log. The
whitebox will return an instance of this log to the calling test.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ConnectorStatus
Singleton accessorRetrieves the entire log as a StringRetrieves the entire log as a Stringvoid
Adds elements to the log.void
Adds elements to the State log.void
purge()
Purges the log storevoid
Purges the log storevoid
setLogFlag
(boolean b) Sets the logging to true/false
-
Method Details
-
getConnectorStatus
Singleton accessor -
logAPI
Adds elements to the log. This is called by the Resource Adapter. -
logState
Adds elements to the State log. This is called by the Resource Adapter. -
purge
public void purge()Purges the log store -
purgeStateLog
public void purgeStateLog()Purges the log store -
getLogVector
Retrieves the entire log as a String- Specified by:
getLogVector
in interfaceLog
-
getStateLogVector
Retrieves the entire log as a String -
setLogFlag
public void setLogFlag(boolean b) Sets the logging to true/false- Specified by:
setLogFlag
in interfaceLog
-