Methods Summary |
---|
public org.gudy.azureus2.plugins.download.Download | getDownload()
return( download );
|
public java.lang.String | getError()
return( response==null?"No Response":response.getAdditionalInfo());
|
public java.util.Map | getExtensions()
if ( response == null ){
return( null );
}
return( response.getExtensions());
|
public int | getNonSeedCount()
PeerManager pm = download.getPeerManager();
if ( pm != null ){
return( pm.getStats().getConnectedLeechers());
}
return( 0 );
|
public org.gudy.azureus2.plugins.download.DownloadAnnounceResultPeer[] | getPeers()
if ( response == null ){
return( new DownloadAnnounceResultPeer[0]);
}
return( response.getPeers());
|
public int | getReportedPeerCount()
return( response==null||response.getPeers()==null?0:response.getPeers().length );
|
public int | getResponseType()
if ( response == null ){
return( RT_ERROR );
}
int status = response.getStatus();
if ( status == TRTrackerAnnouncerResponse.ST_ONLINE ){
return( RT_SUCCESS );
}else{
return( RT_ERROR );
}
|
public int | getSeedCount()
PeerManager pm = download.getPeerManager();
if ( pm != null ){
return( pm.getStats().getConnectedSeeds());
}
return( 0 );
|
public long | getTimeToWait()
if ( response == null ){
return( -1 );
}
return( response.getTimeToWait());
|
public java.net.URL | getURL()
return( response==null?null:response.getURL());
|
public void | setContent(TRTrackerAnnouncerResponse _response)
response = _response;
|