add GlobalStat
This commit is contained in:
parent
f02f21a6dd
commit
41c911c8e9
@ -1,6 +1,7 @@
|
|||||||
package cn.montaro.aria2;
|
package cn.montaro.aria2;
|
||||||
|
|
||||||
import cn.montaro.aria2.annotation.Aria2Method;
|
import cn.montaro.aria2.annotation.Aria2Method;
|
||||||
|
import cn.montaro.aria2.bean.GlobalStat;
|
||||||
import cn.montaro.aria2.bean.Task;
|
import cn.montaro.aria2.bean.Task;
|
||||||
import cn.montaro.aria2.constants.Aria2MethodName;
|
import cn.montaro.aria2.constants.Aria2MethodName;
|
||||||
import cn.montaro.aria2.resp.Aria2Status;
|
import cn.montaro.aria2.resp.Aria2Status;
|
||||||
@ -108,7 +109,7 @@ public interface Aria2Client {
|
|||||||
String changeGlobalOption(Map<String, String> options);
|
String changeGlobalOption(Map<String, String> options);
|
||||||
|
|
||||||
@Aria2Method(Aria2MethodName.GET_GLOBAL_STAT)
|
@Aria2Method(Aria2MethodName.GET_GLOBAL_STAT)
|
||||||
String getGlobalStat();
|
GlobalStat getGlobalStat();
|
||||||
|
|
||||||
@Aria2Method(Aria2MethodName.PURGE_DOWNLOAD_RESULT)
|
@Aria2Method(Aria2MethodName.PURGE_DOWNLOAD_RESULT)
|
||||||
String purgeDownloadResult();
|
String purgeDownloadResult();
|
||||||
|
|||||||
64
src/main/java/cn/montaro/aria2/bean/GlobalStat.java
Normal file
64
src/main/java/cn/montaro/aria2/bean/GlobalStat.java
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
package cn.montaro.aria2.bean;
|
||||||
|
|
||||||
|
public class GlobalStat {
|
||||||
|
|
||||||
|
private Long downloadSpeed;
|
||||||
|
|
||||||
|
private Integer numActive;
|
||||||
|
|
||||||
|
private Integer numStopped;
|
||||||
|
|
||||||
|
private Integer numStoppedTotal;
|
||||||
|
|
||||||
|
private Integer numWaiting;
|
||||||
|
|
||||||
|
private Integer uploadSpeed;
|
||||||
|
|
||||||
|
public Integer getUploadSpeed() {
|
||||||
|
return uploadSpeed;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUploadSpeed(Integer uploadSpeed) {
|
||||||
|
this.uploadSpeed = uploadSpeed;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getNumWaiting() {
|
||||||
|
return numWaiting;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNumWaiting(Integer numWaiting) {
|
||||||
|
this.numWaiting = numWaiting;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getNumStoppedTotal() {
|
||||||
|
return numStoppedTotal;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNumStoppedTotal(Integer numStoppedTotal) {
|
||||||
|
this.numStoppedTotal = numStoppedTotal;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getNumStopped() {
|
||||||
|
return numStopped;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNumStopped(Integer numStopped) {
|
||||||
|
this.numStopped = numStopped;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getNumActive() {
|
||||||
|
return numActive;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNumActive(Integer numActive) {
|
||||||
|
this.numActive = numActive;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getDownloadSpeed() {
|
||||||
|
return downloadSpeed;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDownloadSpeed(Long downloadSpeed) {
|
||||||
|
this.downloadSpeed = downloadSpeed;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user