org.lastbamboo.common.download
Interface SourceStatus


public interface SourceStatus

The download status for a single source.


Method Summary
 int getKbs()
          Returns the speed of the download from the source with which this status is associated in kilobytes per second.
 String getName()
          Returns a name for the source with which this status is associated.
 double getProgress()
          Returns the progress for the download from the source with which this status is associated.
 

Method Detail

getName

String getName()
Returns a name for the source with which this status is associated. For example, this might return the IP address string of the source.

Returns:
A name for the source with which this status is assocatied.

getKbs

int getKbs()
Returns the speed of the download from the source with which this status is associated in kilobytes per second.

Returns:
The speed of the download from the source with which this status is associated in kilobytes per second.

getProgress

double getProgress()
Returns the progress for the download from the source with which this status is associated. Values range from 0.0 to 1.0, where 1.0 indicates completion.

Returns:
The progress for the download from the source with which this status is associated. Values range from 0.0 to 1.0, where 1.0 indicates completion.


Copyright © 2013 LittleShoot. All Rights Reserved.