public class DefaultDownloader extends Object implements ReportsDownloader
Constructor and Description |
---|
DefaultDownloader(Organizer organizer)
Constructor
|
DefaultDownloader(String baseDir)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addReportResolver(String hostType,
ReportResolver reportResolver)
Add a new report resolver with the given host type
|
void |
downloadAny(String type,
String host,
String testNumber)
Download files from the peers
|
void |
downloadLastFailed(String type,
String host)
Download files from the peers when a test failed
|
void |
downloadLastSuccessful(String type,
String host)
Download files from the peers when a test is successful
|
Organizer |
getOrganizer() |
void |
waitForComplete() |
public DefaultDownloader(String baseDir)
baseDir
- the base directory for saving the reportspublic DefaultDownloader(Organizer organizer)
organizer
- the report organizer to usepublic Organizer getOrganizer()
getOrganizer
in interface ReportsDownloader
public void addReportResolver(String hostType, ReportResolver reportResolver)
ReportsDownloader
addReportResolver
in interface ReportsDownloader
hostType
- the host typereportResolver
- the report resolver to use for the host typepublic void downloadLastSuccessful(String type, String host)
downloadLastSuccessful
in interface ReportsDownloader
type
- the type of the peer (sender, receiver, inspector, etc)host
- the host to download the files frompublic void downloadLastFailed(String type, String host)
downloadLastFailed
in interface ReportsDownloader
type
- the type of the peer (sender, receiver, inspector, etc)host
- the host to download the files frompublic void downloadAny(String type, String host, String testNumber)
downloadAny
in interface ReportsDownloader
host
- the host to download the files fromtestNumber
- the test execution number from the peer or one of the links (last, lastSuccessful, lastFailed)public void waitForComplete()
waitForComplete
in interface ReportsDownloader
This documentation was released into the public domain.