Class ConcurrentTestCommandScript.ResultsReader

  • Enclosing class:

    private class ConcurrentTestCommandScript.ResultsReader
    extends java.lang.Object
    Result reader.
    • Field Summary

      Modifier and Type Field Description
      private long baseTime  
      private boolean counted  
      private java.lang.String[] labels  
      private int ncols  
      private int nth  
      private out  
      private int rowCount  
      private boolean timestamped  
      private boolean totaled  
      private int[] widths  
    • Constructor Summary

      Constructor Description
      ResultsReader​( out)  
      ResultsReader​( out, int nth, boolean counted, boolean timestamped, boolean totaled)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void indent()  
      (package private) void prepareFormat​(java.sql.ResultSet rset)  
      private void printHeaders()  
      private void printRow​(java.lang.String[] values)
      Prints an output table row.
      private void printRowCount​(int count)  
      private void printSeparator()
      Prints an output table separator.
      private void printTimestamp​(long time)  
      (package private) void read​(java.sql.ResultSet rset, long timeout)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • out

        private final out
      • nth

        private final int nth
      • counted

        private final boolean counted
      • timestamped

        private final boolean timestamped
      • totaled

        private final boolean totaled
      • baseTime

        private long baseTime
      • rowCount

        private int rowCount
      • ncols

        private int ncols
      • widths

        private int[] widths
      • labels

        private java.lang.String[] labels
    • Constructor Detail

      • ResultsReader

        ResultsReader​( out)
      • ResultsReader

        ResultsReader​( out,
                      int nth,
                      boolean counted,
                      boolean timestamped,
                      boolean totaled)
    • Method Detail

      • prepareFormat

        void prepareFormat​(java.sql.ResultSet rset)
                    throws java.sql.SQLException
      • printHeaders

        private void printHeaders()
      • read

        void read​(java.sql.ResultSet rset,
                  long timeout)
           throws java.sql.SQLException
      • printRowCount

        private void printRowCount​(int count)
      • printTimestamp

        private void printTimestamp​(long time)
      • indent

        private void indent()
      • printSeparator

        private void printSeparator()
        Prints an output table separator. Something like "+----+--------+".
      • printRow

        private void printRow​(java.lang.String[] values)
        Prints an output table row. Something like "| COL1 | COL2 |".