com.atlassian.jira.upgrade
Class LogEvent

java.lang.Object
  extended by com.atlassian.johnson.event.Event
      extended by 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
LogEvent(org.apache.log4j.Logger log, java.lang.String type, java.lang.String description, java.lang.String message)
          Constructor
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LogEvent

public LogEvent(org.apache.log4j.Logger log,
                java.lang.String type,
                java.lang.String description,
                java.lang.String message)
Constructor

Parameters:
log - a logger that is used for outputting reindex progress. Must not be null
Throws:
java.lang.NullPointerException - if the logger is null
Method Detail

setProgress

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


Copyright © 2002-2010 Atlassian. All Rights Reserved.