Class LogEvent

java.lang.Object
com.atlassian.johnson.event.Event
com.atlassian.jira.upgrade.LogEvent

public class LogEvent extends com.atlassian.johnson.event.Event
Event subclass that intercepts the Event.setProgress(int) in order to provide some status to the log file (using log4j).
  • Constructor Summary

    Constructors
    Constructor
    Description
    LogEvent(org.apache.log4j.Logger log, String type, String description, String message)
    Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    setProgress(int progress)
     

    Methods inherited from class com.atlassian.johnson.event.Event

    addAttribute, equals, getAttribute, getAttributes, getDate, getDesc, getException, getKey, getLevel, getProgress, hashCode, hasProgress, setDate, setDesc, setException, setKey, setLevel, toString, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • LogEvent

      public LogEvent(org.apache.log4j.Logger log, String type, String description, String message)
      Constructor
      Parameters:
      log - a logger that is used for outputting reindex progress. Must not be null
      Throws:
      NullPointerException - if the logger is null
  • Method Details

    • setProgress

      public void setProgress(int progress)
      Overrides:
      setProgress in class com.atlassian.johnson.event.Event