Search in sources :

Example 1 with RPDownloadStats

use of com.biglybt.pifimpl.remote.download.RPDownloadStats in project BiglyBT by BiglySoftware.

the class RPShortCuts method getDownloadStats.

@Override
public DownloadStats getDownloadStats(byte[] hash) throws DownloadException {
    try {
        RPDownloadStats res = (RPDownloadStats) _dispatcher.dispatch(new RPRequest(this, "getDownloadStats[byte[]]", new Object[] { hash })).getResponse();
        res._setRemote(_dispatcher);
        return (res);
    } catch (RPException e) {
        if (e.getCause() instanceof DownloadException) {
            throw ((DownloadException) e.getCause());
        }
        throw (e);
    }
}
Also used : DownloadException(com.biglybt.pif.download.DownloadException) RPDownloadStats(com.biglybt.pifimpl.remote.download.RPDownloadStats)

Aggregations

DownloadException (com.biglybt.pif.download.DownloadException)1 RPDownloadStats (com.biglybt.pifimpl.remote.download.RPDownloadStats)1