Package wt.log4j.jmx

Interface AsyncJDBCAppenderMonitorMBean

All Superinterfaces:
AppenderMonitorMBean, SelfEmailingMBean

public interface AsyncJDBCAppenderMonitorMBean extends AppenderMonitorMBean
Sends log event data to the database table specified by the LogTable attribute. If a target database is not specified the current Windchill database is assumed. Logging is done in a background thread to minimize impact on calling threads.

Supported API: true

Extendable: true
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Clear log record handling backlog; exposed for such use cases as low-memory condition handling

    Supported API: true
    void
    Flush batched records for this table to database

    Supported API: true
    void
    Flush all batched records associated with this database connection (which may be shared with other AsyncJDBCAppenders)

    Supported API: true
    void
    purge(int ageThresholdInDays)
    Deletes records older than specified threshold

    Supported API: true

    Methods inherited from interface wt.log4j.jmx.AppenderMonitorMBean

    getAppenderClassname, getLayout, isFiltered

    Methods inherited from interface wt.jmx.core.mbeans.SelfEmailingMBean

    emailThisMBean
  • Method Details

    • clearBacklog

      @MBeanOperationImpact(1) void clearBacklog()
      Clear log record handling backlog; exposed for such use cases as low-memory condition handling

      Supported API: true
    • purge

      @MBeanOperationImpact(1) void purge(int ageThresholdInDays) throws SQLException
      Deletes records older than specified threshold

      Supported API: true
      Parameters:
      ageThresholdInDays - age (in days) above which records are deleted
      Throws:
      SQLException
    • flush

      @MBeanOperationImpact(1) void flush()
      Flush batched records for this table to database

      Supported API: true
    • flushAll

      @MBeanOperationImpact(1) void flushAll()
      Flush all batched records associated with this database connection (which may be shared with other AsyncJDBCAppenders)

      Supported API: true