@@ 28-74 (lines=47) @@ | ||
25 | * @package Elastification\Client\Response\V090x\Index |
|
26 | * @author Daniel Wendlandt |
|
27 | */ |
|
28 | class IndexStatusResponse extends Response |
|
29 | { |
|
30 | ||
31 | const PROP_OK = 'ok'; |
|
32 | const PROP_SHARDS = '_shards'; |
|
33 | const PROP_INDICES = 'indices'; |
|
34 | ||
35 | /** |
|
36 | * Getter Method |
|
37 | * |
|
38 | * @return mixed |
|
39 | * @author Daniel Wendlandt |
|
40 | */ |
|
41 | public function isOk() |
|
42 | { |
|
43 | $this->processData(); |
|
44 | ||
45 | return $this->get(self::PROP_OK); |
|
46 | } |
|
47 | ||
48 | /** |
|
49 | * Getter Method |
|
50 | * |
|
51 | * @return mixed |
|
52 | * @author Daniel Wendlandt |
|
53 | */ |
|
54 | public function getShards() |
|
55 | { |
|
56 | $this->processData(); |
|
57 | ||
58 | return $this->get(self::PROP_SHARDS); |
|
59 | } |
|
60 | ||
61 | /** |
|
62 | * Getter Method |
|
63 | * |
|
64 | * @return mixed |
|
65 | * @author Daniel Wendlandt |
|
66 | */ |
|
67 | public function getIndices() |
|
68 | { |
|
69 | $this->processData(); |
|
70 | ||
71 | return $this->get(self::PROP_INDICES); |
|
72 | } |
|
73 | ||
74 | } |
|
75 |
@@ 28-74 (lines=47) @@ | ||
25 | * @package Elastification\Client\Response\V1x\Index |
|
26 | * @author Daniel Wendlandt |
|
27 | */ |
|
28 | class IndexStatsResponse extends Response |
|
29 | { |
|
30 | ||
31 | const PROP_SHARDS = '_shards'; |
|
32 | const PROP_ALL = '_all'; |
|
33 | const PROP_INDICES = 'indices'; |
|
34 | ||
35 | /** |
|
36 | * Getter Method |
|
37 | * |
|
38 | * @return mixed |
|
39 | * @author Daniel Wendlandt |
|
40 | */ |
|
41 | public function getShards() |
|
42 | { |
|
43 | $this->processData(); |
|
44 | ||
45 | return $this->get(self::PROP_SHARDS); |
|
46 | } |
|
47 | ||
48 | /** |
|
49 | * Getter Method |
|
50 | * |
|
51 | * @return mixed |
|
52 | * @author Daniel Wendlandt |
|
53 | */ |
|
54 | public function getAll() |
|
55 | { |
|
56 | $this->processData(); |
|
57 | ||
58 | return $this->get(self::PROP_ALL); |
|
59 | } |
|
60 | ||
61 | /** |
|
62 | * Getter Method |
|
63 | * |
|
64 | * @return mixed |
|
65 | * @author Daniel Wendlandt |
|
66 | */ |
|
67 | public function getIndices() |
|
68 | { |
|
69 | $this->processData(); |
|
70 | ||
71 | return $this->get(self::PROP_INDICES); |
|
72 | } |
|
73 | ||
74 | } |
|
75 |
@@ 28-74 (lines=47) @@ | ||
25 | * @package Elastification\Client\Response\V2x\Index |
|
26 | * @author Daniel Wendlandt |
|
27 | */ |
|
28 | class IndexStatsResponse extends Response |
|
29 | { |
|
30 | ||
31 | const PROP_SHARDS = '_shards'; |
|
32 | const PROP_ALL = '_all'; |
|
33 | const PROP_INDICES = 'indices'; |
|
34 | ||
35 | /** |
|
36 | * Getter Method |
|
37 | * |
|
38 | * @return mixed |
|
39 | * @author Daniel Wendlandt |
|
40 | */ |
|
41 | public function getShards() |
|
42 | { |
|
43 | $this->processData(); |
|
44 | ||
45 | return $this->get(self::PROP_SHARDS); |
|
46 | } |
|
47 | ||
48 | /** |
|
49 | * Getter Method |
|
50 | * |
|
51 | * @return mixed |
|
52 | * @author Daniel Wendlandt |
|
53 | */ |
|
54 | public function getAll() |
|
55 | { |
|
56 | $this->processData(); |
|
57 | ||
58 | return $this->get(self::PROP_ALL); |
|
59 | } |
|
60 | ||
61 | /** |
|
62 | * Getter Method |
|
63 | * |
|
64 | * @return mixed |
|
65 | * @author Daniel Wendlandt |
|
66 | */ |
|
67 | public function getIndices() |
|
68 | { |
|
69 | $this->processData(); |
|
70 | ||
71 | return $this->get(self::PROP_INDICES); |
|
72 | } |
|
73 | ||
74 | } |
|
75 |