Methods Summary |
---|
public java.lang.String | getAdditionalInfo()
return( failure_reason );
|
public java.util.Map | getExtensions()
return( extensions );
|
public org.gudy.azureus2.core3.util.HashWrapper | getHash()
return( hash );
|
public TRTrackerAnnouncerResponsePeer[] | getPeers()
return( peers );
|
public int | getScrapeCompleteCount()
return( scrape_complete );
|
public int | getScrapeIncompleteCount()
return( scrape_incomplete );
|
public int | getStatus()
return( status );
|
public java.lang.String | getStatusString()
String str = "";
if ( status == ST_OFFLINE ){
str = "Offline";
}else if (status == ST_ONLINE ){
str = "OK";
}else{
str = "Failed";
}
if ( failure_reason != null && failure_reason.length() > 0 ){
str += " - " + failure_reason;
}
return( str );
|
public java.lang.String | getString()
String str = "url=" + url + ", status=" + getStatus();
if ( getStatus() != ST_ONLINE ){
str +=", error=" + getAdditionalInfo();
}
str += ", time_to_wait=" + time_to_wait;
str += ", scrape_comp=" + scrape_complete + ", scrape_incomp=" + scrape_incomplete;
return( str );
|
public long | getTimeToWait()
return( time_to_wait );
|
public java.net.URL | getURL()
return( url );
|
public void | print()
System.out.println( "TRTrackerResponse::print");
System.out.println( "\tstatus = " + getStatus());
System.out.println( "\tfail msg = " + getAdditionalInfo());
System.out.println( "\tpeers:" );
if ( peers != null ){
for (int i=0;i<peers.length;i++){
TRTrackerAnnouncerResponsePeer peer = peers[i];
System.out.println( "\t\t" + peer.getAddress() + ":" + peer.getPort());
}
}
|
public void | setExtensions(java.util.Map _extensions)
extensions = _extensions;
|
public void | setFailurReason(java.lang.String reason)
failure_reason = reason;
|
public void | setPeers(TRTrackerAnnouncerResponsePeer[] _peers)
peers = _peers;
|
public void | setScrapeResult(int _complete, int _incomplete)
scrape_complete = _complete;
scrape_incomplete = _incomplete;
|