diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-06-17 22:45:42 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-06-17 22:45:42 +0900 |
| commit | cc7bc0aad3f27b4201ce5870d018cb40599389ca (patch) | |
| tree | 78dbec15ecfa01da8d8d6d0e6030ad03a7657f87 /src/RpcMethodFactory.cc | |
| parent | bb7e2e69db46c1abd51cdfc5dbfe11814adc06f4 (diff) | |
Added aria2.getGlobalStat RPC method.
It returns overall download/upload speed and the number of
active/stopped/waiting downloads.
Diffstat (limited to 'src/RpcMethodFactory.cc')
| -rw-r--r-- | src/RpcMethodFactory.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/RpcMethodFactory.cc b/src/RpcMethodFactory.cc index 088f2ba9..5e73c1a1 100644 --- a/src/RpcMethodFactory.cc +++ b/src/RpcMethodFactory.cc @@ -124,6 +124,8 @@ createMethod(const std::string& methodName) return SharedHandle<RpcMethod>(new ShutdownRpcMethod()); } else if(methodName == ForceShutdownRpcMethod::getMethodName()) { return SharedHandle<RpcMethod>(new ForceShutdownRpcMethod()); + } else if(methodName == GetGlobalStatRpcMethod::getMethodName()) { + return SharedHandle<RpcMethod>(new GetGlobalStatRpcMethod()); } else if(methodName == SystemMulticallRpcMethod::getMethodName()) { return SharedHandle<RpcMethod>(new SystemMulticallRpcMethod()); } else { |
