1 package com.indexdata.mkjsf.pazpar2.data;
\r
3 import com.indexdata.mkjsf.pazpar2.data.ResponseDataObject;
\r
6 * Data from the <code>stat</code> command, can be accessed by <code>pzresp.stat</code>
\r
11 public class StatResponse extends ResponseDataObject {
\r
13 private static final long serialVersionUID = -6578979787689458761L;
\r
15 public int getHits() {
\r
16 return getProperty("hits")==null ? 0 : Integer.parseInt(getProperty("hits"));
\r
19 public int getClients () {
\r
20 return getIntValue("clients");
\r
23 public int getActiveClients () {
\r
24 return getIntValue("activeclients");
\r
27 public int getRecords () {
\r
28 return getIntValue("records");
\r
31 public int getUnconnected() {
\r
32 return getIntValue("unconnected");
\r
35 public int getConnecting() {
\r
36 return getIntValue("connecting");
\r
39 public int getWorking() {
\r
40 return getIntValue("working");
\r
43 public int getIdle() {
\r
44 return getIntValue("idle");
\r
47 public int getFailed() {
\r
48 return getIntValue("failed");
\r
51 public int getError() {
\r
52 return getIntValue("error");
\r
55 public String getProgress() {
\r
56 return getOneValue("progress");
\r