Class JDBCPipesReporter

    • Constructor Detail

      • JDBCPipesReporter

        public JDBCPipesReporter()
    • Method Detail

      • setConnection

        @Field
        public void setConnection​(String connection)
      • setCacheSize

        @Field
        public void setCacheSize​(int cacheSize)
        Commit the reports if the cache is greater than or equal to this size.

        Default is DEFAULT_CACHE_SIZE.

        The reports will be committed if the cache size triggers reporting or if the amount of time since last reported (reportWithinMs) triggers reporting.

        Parameters:
        cacheSize -
      • setReportWithinMs

        @Field
        public void setReportWithinMs​(long reportWithinMs)
        Commit the reports if the amount of time elapsed since the last report commit exceeds this value.

        Default is DEFAULT_REPORT_WITHIN_MS.

        The reports will be committed if the cache size triggers reporting or if the amount of time since last reported triggers reporting.

        Parameters:
        reportWithinMs -
      • setPostConnection

        @Field
        public void setPostConnection​(String postConnection)
        This sql will be called immediately after the connection is made. This was initially added for setting pragmas on sqlite3, but may be used for other connection configuration in other dbs. Note: This is called before the table is created if it needs to be created.
        Parameters:
        postConnection -
      • error

        public void error​(Throwable t)
        Description copied from class: PipesReporter
        This is called if the process has crashed. Implementers should not rely on close() to be called after this.
        Specified by:
        error in class PipesReporter
      • error

        public void error​(String msg)
        Description copied from class: PipesReporter
        This is called if the process has crashed. Implementers should not rely on close() to be called after this.
        Specified by:
        error in class PipesReporter