org.kuali.common.threads.listener
Class PercentCompleteListener<T>
java.lang.Object
org.kuali.common.threads.listener.ConsoleListener<T>
org.kuali.common.threads.listener.MavenConsoleListener<T>
org.kuali.common.threads.listener.PercentCompleteListener<T>
- All Implemented Interfaces:
- ProgressListener<T>
public class PercentCompleteListener<T>
- extends MavenConsoleListener<T>
Print a dot whenever there is progress of 2% or more
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PercentCompleteListener
public PercentCompleteListener()
progressOccurred
public void progressOccurred(int count,
int total,
ProgressEvent<T> event)
- Description copied from interface:
ProgressListener
- Progress towards the total has occurred
- Specified by:
progressOccurred in interface ProgressListener<T>- Overrides:
progressOccurred in class ConsoleListener<T>
enoughProgress
protected boolean enoughProgress(int percentComplete)
getPercentageIncrement
public int getPercentageIncrement()
setPercentageIncrement
public void setPercentageIncrement(int percentageIncrement)
Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.