use of com.biglybt.core.tracker.client.impl.TRTrackerScraperResponseImpl in project BiglyBT by BiglySoftware.
the class TrackerStatus method addHash.
protected TRTrackerScraperResponseImpl addHash(HashWrapper hash) {
TRTrackerScraperResponseImpl response;
try {
hashes_mon.enter();
response = (TRTrackerScraperResponseImpl) hashes.get(hash);
if (response == null) {
response = new TRTrackerBTScraperResponseImpl(this, hash);
if (scrapeURL == null) {
response.setStatus(TRTrackerScraperResponse.ST_ERROR, MessageText.getString(SS + "error") + MessageText.getString(SSErr + "badURL"));
} else {
response.setStatus(TRTrackerScraperResponse.ST_INITIALIZING, MessageText.getString(SS + "initializing"));
}
response.setNextScrapeStartTime(checker.getNextScrapeCheckOn());
hashes.put(hash, response);
}
} finally {
hashes_mon.exit();
}
// notifiy listeners
scraper.scrapeReceived(response);
return response;
}
Aggregations