org.ops4j.pax.runner.platform.internal
Class StreamUtils.CoarseGrainedProgressBar

java.lang.Object
  extended by org.ops4j.pax.runner.platform.internal.StreamUtils.CoarseGrainedProgressBar
All Implemented Interfaces:
StreamUtils.ProgressBar
Enclosing class:
StreamUtils

public static class StreamUtils.CoarseGrainedProgressBar
extends java.lang.Object
implements StreamUtils.ProgressBar

A progress bar that displayed corse grained information about downloading of an artifact


Constructor Summary
StreamUtils.CoarseGrainedProgressBar(java.lang.String downloadTargetName)
           
 
Method Summary
 void increment(long bytes, long kbps)
          Callback on download progress.
 void stop()
          Callback when download finished.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamUtils.CoarseGrainedProgressBar

public StreamUtils.CoarseGrainedProgressBar(java.lang.String downloadTargetName)
Method Detail

increment

public void increment(long bytes,
                      long kbps)
Description copied from interface: StreamUtils.ProgressBar
Callback on download progress.

Specified by:
increment in interface StreamUtils.ProgressBar
Parameters:
bytes - download size from when the download started
kbps - download speed

stop

public void stop()
Description copied from interface: StreamUtils.ProgressBar
Callback when download finished.

Specified by:
stop in interface StreamUtils.ProgressBar


Copyright © 2006-2011 OPS4J - Open Participation Software for Java. All Rights Reserved.