From: Niels Erik G. Nielsen Date: Tue, 30 Apr 2013 17:25:10 +0000 (-0400) Subject: Makes all stats ints (except progress) X-Git-Tag: v0.0.7~133 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=ba27c4faf0e54d9bf741b19d97a551e462bd1060;p=mkjsf-moved-to-github.git Makes all stats ints (except progress) --- diff --git a/src/main/java/com/indexdata/mkjsf/pazpar2/data/StatResponse.java b/src/main/java/com/indexdata/mkjsf/pazpar2/data/StatResponse.java index 9f808b1..941c0e9 100644 --- a/src/main/java/com/indexdata/mkjsf/pazpar2/data/StatResponse.java +++ b/src/main/java/com/indexdata/mkjsf/pazpar2/data/StatResponse.java @@ -22,28 +22,28 @@ public class StatResponse extends Pazpar2ResponseData { return getIntValue("records"); } - public String getUnconnected() { - return getOneElementValue("unconnected"); + public int getUnconnected() { + return getIntValue("unconnected"); } - public String getConnecting() { - return getOneElementValue("connecting"); + public int getConnecting() { + return getIntValue("connecting"); } - public String getWorking() { - return getOneElementValue("working"); + public int getWorking() { + return getIntValue("working"); } - public String getIdle() { - return getOneElementValue("idle"); + public int getIdle() { + return getIntValue("idle"); } - public String getFailed() { - return getOneElementValue("failed"); + public int getFailed() { + return getIntValue("failed"); } - public String getError() { - return getOneElementValue("error"); + public int getError() { + return getIntValue("error"); } public String getProgress() {