org.kuali.common.util
Class PercentCompleteInformer

java.lang.Object
  extended by org.kuali.common.util.PercentCompleteInformer

public class PercentCompleteInformer
extends Object

Print a dot to the console each time we make 1% progress towards the total count


Constructor Summary
PercentCompleteInformer()
           
 
Method Summary
protected  boolean enoughProgress(int percentComplete)
           
 String getCompleteToken()
           
 long getCount()
           
 PrintStream getOut()
           
 int getPercentageIncrement()
           
 String getProgressToken()
           
 String getStartToken()
           
 long getTotal()
           
 void progressOccurred()
           
 void setCompleteToken(String completeToken)
           
 void setCount(long count)
           
 void setOut(PrintStream out)
           
 void setPercentageIncrement(int percentageIncrement)
           
 void setProgressToken(String progressToken)
           
 void setStartToken(String startToken)
           
 void setTotal(long total)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PercentCompleteInformer

public PercentCompleteInformer()
Method Detail

setTotal

public void setTotal(long total)

progressOccurred

public void progressOccurred()

enoughProgress

protected boolean enoughProgress(int percentComplete)

getOut

public PrintStream getOut()

setOut

public void setOut(PrintStream out)

getCount

public long getCount()

setCount

public void setCount(long count)

getPercentageIncrement

public int getPercentageIncrement()

setPercentageIncrement

public void setPercentageIncrement(int percentageIncrement)

getStartToken

public String getStartToken()

setStartToken

public void setStartToken(String startToken)

getCompleteToken

public String getCompleteToken()

setCompleteToken

public void setCompleteToken(String completeToken)

getProgressToken

public String getProgressToken()

setProgressToken

public void setProgressToken(String progressToken)

getTotal

public long getTotal()


Copyright © 2010-2013 The Kuali Foundation. All Rights Reserved.