org.gudy.azureus2.core3.tracker.client.impl
Class TRTrackerScraperResponseImpl
java.lang.Object
org.gudy.azureus2.core3.tracker.client.impl.TRTrackerScraperResponseImpl
- All Implemented Interfaces:
- TRTrackerScraperResponse
- Direct Known Subclasses:
- TRTrackerBTScraperResponseImpl, TRTrackerDHTScraperResponseImpl
public abstract class TRTrackerScraperResponseImpl
- extends java.lang.Object
- implements TRTrackerScraperResponse
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TRTrackerScraperResponseImpl
protected TRTrackerScraperResponseImpl(HashWrapper _hash)
TRTrackerScraperResponseImpl
protected TRTrackerScraperResponseImpl(HashWrapper _hash,
int _seeds,
int _peers,
int completed,
long _scrapeStartTime)
getCompleted
public int getCompleted()
- Specified by:
getCompleted
in interface TRTrackerScraperResponse
setCompleted
public void setCompleted(int completed)
- Specified by:
setCompleted
in interface TRTrackerScraperResponse
getHash
public HashWrapper getHash()
- Specified by:
getHash
in interface TRTrackerScraperResponse
getSeeds
public int getSeeds()
- Specified by:
getSeeds
in interface TRTrackerScraperResponse
setSeeds
public void setSeeds(int s)
getPeers
public int getPeers()
- Specified by:
getPeers
in interface TRTrackerScraperResponse
setPeers
public void setPeers(int p)
getStatus
public int getStatus()
- Specified by:
getStatus
in interface TRTrackerScraperResponse
setStatus
public void setStatus(int s)
setStatus
protected void setStatus(java.lang.String str)
setStatus
public void setStatus(int iNewStatus,
java.lang.String sNewStatus)
revertStatus
public void revertStatus()
getScrapeTime
public int getScrapeTime()
- Specified by:
getScrapeTime
in interface TRTrackerScraperResponse
setScrapeStartTime
public void setScrapeStartTime(long time)
- Specified by:
setScrapeStartTime
in interface TRTrackerScraperResponse
getScrapeStartTime
public long getScrapeStartTime()
- Description copied from interface:
TRTrackerScraperResponse
- When the scrape started (in ms)
- Specified by:
getScrapeStartTime
in interface TRTrackerScraperResponse
getNextScrapeStartTime
public long getNextScrapeStartTime()
- Specified by:
getNextScrapeStartTime
in interface TRTrackerScraperResponse
setNextScrapeStartTime
public void setNextScrapeStartTime(long _nextScrapeStartTime)
- Specified by:
setNextScrapeStartTime
in interface TRTrackerScraperResponse
getStatusString
public java.lang.String getStatusString()
- Specified by:
getStatusString
in interface TRTrackerScraperResponse
isValid
public boolean isValid()
- Specified by:
isValid
in interface TRTrackerScraperResponse
setDHTBackup
public abstract void setDHTBackup(boolean is_backup)
calcScrapeIntervalSecs
public static int calcScrapeIntervalSecs(int iRecIntervalSecs,
int iNumSeeds)
- Calculate Scrape interval, applying internal min/max limits and default
calculations.
- Parameters:
iRecIntervalSecs
- Recommended Interval in Seconds, or 0 for no
recommendationiNumSeeds
- # of seeds torrent has, used to calculate scrape
interval
- Returns:
- Calculated interval in Seconds
getString
public java.lang.String getString()
- Specified by:
getString
in interface TRTrackerScraperResponse