use of com.alibaba.otter.node.etl.common.io.download.impl.aria2c.Aria2cRetriever in project otter by alibaba.
the class Aria2cDownLoadIntegration method testDownLoad_ok.
@Test
public void testDownLoad_ok() {
DataRetriever retriever = new Aria2cRetriever("http://china.alibaba.com", tmp);
try {
retriever.connect();
retriever.doRetrieve();
} catch (DataRetrieveException ex) {
retriever.abort();
} finally {
retriever.disconnect();
}
}
use of com.alibaba.otter.node.etl.common.io.download.impl.aria2c.Aria2cRetriever in project otter by alibaba.
the class Aria2cDownLoadIntegration method testDownLoad_failed.
@Test
public void testDownLoad_failed() {
DataRetriever retriever = new Aria2cRetriever("aaaaaaa/sssss", tmp);
try {
retriever.connect();
retriever.doRetrieve();
} catch (DataRetrieveException ex) {
retriever.abort();
} finally {
retriever.disconnect();
}
}
Aggregations