org.xnap.plugin.azureus
Class AzureusSegment

java.lang.Object
  extended by org.xnap.plugin.azureus.AzureusSegment
All Implemented Interfaces:
Segment

public class AzureusSegment
extends java.lang.Object
implements Segment

The end of the segment can change through a split.


Field Summary
static long MIN_SEGEMENT_SIZE
          The minimun size for a single segment.
 
Constructor Summary
AzureusSegment(AzureusDownloadContainer parent, org.gudy.azureus2.core3.peer.PEPiece piece)
           
 
Method Summary
 int getAvailability()
           
 long getEnd()
           
 long getStart()
           
 long getTotal()
           
 long getTransferred()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MIN_SEGEMENT_SIZE

public static final long MIN_SEGEMENT_SIZE
The minimun size for a single segment.

See Also:
Constant Field Values
Constructor Detail

AzureusSegment

public AzureusSegment(AzureusDownloadContainer parent,
                      org.gudy.azureus2.core3.peer.PEPiece piece)
Method Detail

getAvailability

public int getAvailability()
Specified by:
getAvailability in interface Segment
Returns:
a number between 0 (= not available) and 255 (= high availability)

getEnd

public long getEnd()
Specified by:
getEnd in interface Segment
Returns:
the end offset
See Also:
Segment.getEnd()

getStart

public long getStart()
Specified by:
getStart in interface Segment
Returns:
the start offset
See Also:
Segment.getStart()

getTotal

public long getTotal()
Specified by:
getTotal in interface Segment
Returns:
the total size
See Also:
Segment.getTotal()

getTransferred

public long getTransferred()
Specified by:
getTransferred in interface Segment
Returns:
the number of bytes transferred
See Also:
Segment.getTransferred()


Copyright © 2001-2005 XNap Team. All Rights Reserved.