Renames class, removes obsolete, javadoc
[mkjsf-moved-to-github.git] / src / main / java / com / indexdata / mkjsf / pazpar2 / data / StatResponse.java
1 package com.indexdata.mkjsf.pazpar2.data;\r
2 \r
3 import com.indexdata.mkjsf.pazpar2.data.ResponseDataObject;\r
4 \r
5 /**\r
6  * Data from the <code>stat</code> command, can be accessed by <code>pzresp.stat</code>\r
7  * \r
8  * @author Niels Erik\r
9  *\r
10  */\r
11 public class StatResponse extends ResponseDataObject {\r
12   \r
13   private static final long serialVersionUID = -6578979787689458761L;\r
14 \r
15   public int getHits() {    \r
16     return getProperty("hits")==null ? 0 : Integer.parseInt(getProperty("hits"));\r
17   }\r
18   \r
19   public int getClients () {\r
20     return getIntValue("clients");\r
21   }\r
22   \r
23   public int getActiveClients () {\r
24     return getIntValue("activeclients");\r
25   }\r
26 \r
27   public int getRecords () {\r
28     return getIntValue("records");\r
29   }\r
30   \r
31   public int getUnconnected() {\r
32     return getIntValue("unconnected");\r
33   }\r
34   \r
35   public int getConnecting() {\r
36     return getIntValue("connecting");\r
37   }\r
38   \r
39   public int getWorking() {\r
40     return getIntValue("working");\r
41   }\r
42   \r
43   public int getIdle() {\r
44     return getIntValue("idle");\r
45   }\r
46   \r
47   public int getFailed() {\r
48     return getIntValue("failed");\r
49   }\r
50   \r
51   public int getError() {\r
52     return getIntValue("error");\r
53   }\r
54   \r
55   public String getProgress() {\r
56     return getOneValue("progress");\r
57   }\r
58   \r
59 }\r