aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws/src/main/java/org/sonarqube/ws/client/system
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2017-08-28 22:47:50 +0200
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>2017-09-13 15:50:48 +0200
commit5b9d6018431f09d090b71fa3179a9d9bed5dc0ab (patch)
treee46067ff924f4a700434bc05db7ca9709337d6b6 /sonar-ws/src/main/java/org/sonarqube/ws/client/system
parentaf99398a59677d6a1d8d94fbf3529327ac891ef2 (diff)
downloadsonarqube-5b9d6018431f09d090b71fa3179a9d9bed5dc0ab.tar.gz
sonarqube-5b9d6018431f09d090b71fa3179a9d9bed5dc0ab.zip
SONAR-9739 add protobuf response to WS api/system/status
Diffstat (limited to 'sonar-ws/src/main/java/org/sonarqube/ws/client/system')
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/system/SystemService.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/system/SystemService.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/system/SystemService.java
index ef31bfaed45..cb8c55aec61 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/system/SystemService.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/system/SystemService.java
@@ -37,4 +37,8 @@ public class SystemService extends BaseService {
public void restart() {
call(new PostRequest(path("restart")));
}
+
+ public WsSystem.StatusResponse status() {
+ return call(new GetRequest(path("status")), WsSystem.StatusResponse.parser());
+ }
}