Class AbstractLogReport<T extends LogTaskRequest>

java.lang.Object
com.aizuda.snailjob.client.common.log.report.AbstractLogReport<T>
All Implemented Interfaces:
Lifecycle, LogReport, org.springframework.beans.factory.InitializingBean

public abstract class AbstractLogReport<T extends LogTaskRequest> extends Object implements Lifecycle, org.springframework.beans.factory.InitializingBean, LogReport
Since:
3.2.0
Author:
xiaowoniu
  • Constructor Details

    • AbstractLogReport

      public AbstractLogReport()
  • Method Details

    • report

      public void report(LogContentDTO logContentDTO)
      Specified by:
      report in interface LogReport
    • buildLogTaskDTO

      protected abstract T buildLogTaskDTO(LogContentDTO logContentDTO)
    • start

      public void start()
      Description copied from interface: Lifecycle
      启动组件
      Specified by:
      start in interface Lifecycle
    • close

      public void close()
      Description copied from interface: Lifecycle
      关闭组件
      Specified by:
      close in interface Lifecycle
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception