--- /dev/null
+package com.indexdata.mkjsf.pazpar2.data;\r
+\r
+import com.indexdata.mkjsf.pazpar2.data.ResponseDataObject;\r
+\r
+/**\r
+ * Data from the <code>stat</code> command, can be accessed by <code>pzresp.stat</code>\r
+ * \r
+ * @author Niels Erik\r
+ *\r
+ */\r
+public class StatResponse extends ResponseDataObject {\r
+ \r
+ private static final long serialVersionUID = -6578979787689458761L;\r
+\r
+ public int getHits() { \r
+ return getProperty("hits")==null ? 0 : Integer.parseInt(getProperty("hits"));\r
+ }\r
+ \r
+ public int getClients () {\r
+ return getIntValue("clients");\r
+ }\r
+ \r
+ public int getActiveClients () {\r
+ return getIntValue("activeclients");\r
+ }\r
+\r
+ public int getRecords () {\r
+ return getIntValue("records");\r
+ }\r
+ \r
+ public int getUnconnected() {\r
+ return getIntValue("unconnected");\r
+ }\r
+ \r
+ public int getConnecting() {\r
+ return getIntValue("connecting");\r
+ }\r
+ \r
+ public int getWorking() {\r
+ return getIntValue("working");\r
+ }\r
+ \r
+ public int getIdle() {\r
+ return getIntValue("idle");\r
+ }\r
+ \r
+ public int getFailed() {\r
+ return getIntValue("failed");\r
+ }\r
+ \r
+ public int getError() {\r
+ return getIntValue("error");\r
+ }\r
+ \r
+ public String getProgress() {\r
+ return getOneValue("progress");\r
+ }\r
+ \r
+}\r