Class ConnectorStatus

java.lang.Object
com.sun.ts.tests.common.connector.util.ConnectorStatus
All Implemented Interfaces:
Log

public class ConnectorStatus extends Object implements 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 Details

    • getConnectorStatus

      public static ConnectorStatus getConnectorStatus()
      Singleton accessor
    • logAPI

      public void logAPI(String raAPI, String inParams, String outParams)
      Adds elements to the log. This is called by the Resource Adapter.
      Specified by:
      logAPI in interface Log
    • logState

      public void logState(String state)
      Adds elements to the State log. This is called by the Resource Adapter.
    • purge

      public void purge()
      Purges the log store
      Specified by:
      purge in interface Log
    • purgeStateLog

      public void purgeStateLog()
      Purges the log store
    • getLogVector

      public Vector getLogVector()
      Retrieves the entire log as a String
      Specified by:
      getLogVector in interface Log
    • getStateLogVector

      public Vector getStateLogVector()
      Retrieves the entire log as a String
    • setLogFlag

      public void setLogFlag(boolean b)
      Sets the logging to true/false
      Specified by:
      setLogFlag in interface Log