@@ 28-102 (lines=75) @@ | ||
25 | * @package Elastification\Client\Response\V090x |
|
26 | * @author Daniel Wendlandt |
|
27 | */ |
|
28 | class NodeInfoResponse extends Response |
|
29 | { |
|
30 | ||
31 | const PROP_OK = 'ok'; |
|
32 | const PROP_STATUS = 'status'; |
|
33 | const PROP_NAME = 'name'; |
|
34 | const PROP_VERSION = 'version'; |
|
35 | const PROP_TAGLINE = 'tagline'; |
|
36 | ||
37 | /** |
|
38 | * Getter Method |
|
39 | * |
|
40 | * @return mixed |
|
41 | * @author Daniel Wendlandt |
|
42 | */ |
|
43 | public function isOk() |
|
44 | { |
|
45 | $this->processData(); |
|
46 | ||
47 | return $this->get(self::PROP_OK); |
|
48 | } |
|
49 | ||
50 | /** |
|
51 | * Getter Method |
|
52 | * |
|
53 | * @return mixed |
|
54 | * @author Daniel Wendlandt |
|
55 | */ |
|
56 | public function getVersion() |
|
57 | { |
|
58 | $this->processData(); |
|
59 | ||
60 | return $this->get(self::PROP_VERSION); |
|
61 | } |
|
62 | ||
63 | /** |
|
64 | * Getter Method |
|
65 | * |
|
66 | * @return mixed |
|
67 | * @author Daniel Wendlandt |
|
68 | */ |
|
69 | public function getName() |
|
70 | { |
|
71 | $this->processData(); |
|
72 | ||
73 | return $this->get(self::PROP_NAME); |
|
74 | } |
|
75 | ||
76 | /** |
|
77 | * Getter Method |
|
78 | * |
|
79 | * @return mixed |
|
80 | * @author Daniel Wendlandt |
|
81 | */ |
|
82 | public function getStatus() |
|
83 | { |
|
84 | $this->processData(); |
|
85 | ||
86 | return $this->get(self::PROP_STATUS); |
|
87 | } |
|
88 | ||
89 | /** |
|
90 | * Getter Method |
|
91 | * |
|
92 | * @return mixed |
|
93 | * @author Daniel Wendlandt |
|
94 | */ |
|
95 | public function getTagline() |
|
96 | { |
|
97 | $this->processData(); |
|
98 | ||
99 | return $this->get(self::PROP_TAGLINE); |
|
100 | } |
|
101 | ||
102 | } |
|
103 |
@@ 28-102 (lines=75) @@ | ||
25 | * @package Elastification\Client\Response\V1x |
|
26 | * @author Daniel Wendlandt |
|
27 | */ |
|
28 | class NodeInfoResponse extends Response |
|
29 | { |
|
30 | ||
31 | const PROP_STATUS = 'status'; |
|
32 | const PROP_NAME = 'name'; |
|
33 | const PROP_TAGLINE = 'tagline'; |
|
34 | const PROP_CLUSTER_NAME = 'cluster_name'; |
|
35 | const PROP_VERSION = 'version'; |
|
36 | ||
37 | /** |
|
38 | * Getter Method |
|
39 | * |
|
40 | * @return mixed |
|
41 | * @author Daniel Wendlandt |
|
42 | */ |
|
43 | public function getVersion() |
|
44 | { |
|
45 | $this->processData(); |
|
46 | ||
47 | return $this->get(self::PROP_VERSION); |
|
48 | } |
|
49 | ||
50 | /** |
|
51 | * Getter Method |
|
52 | * |
|
53 | * @return mixed |
|
54 | * @author Daniel Wendlandt |
|
55 | */ |
|
56 | public function getName() |
|
57 | { |
|
58 | $this->processData(); |
|
59 | ||
60 | return $this->get(self::PROP_NAME); |
|
61 | } |
|
62 | ||
63 | /** |
|
64 | * Getter Method |
|
65 | * |
|
66 | * @return mixed |
|
67 | * @author Daniel Wendlandt |
|
68 | */ |
|
69 | public function getStatus() |
|
70 | { |
|
71 | $this->processData(); |
|
72 | ||
73 | return $this->get(self::PROP_STATUS); |
|
74 | } |
|
75 | ||
76 | /** |
|
77 | * Getter Method |
|
78 | * |
|
79 | * @return mixed |
|
80 | * @author Daniel Wendlandt |
|
81 | */ |
|
82 | public function getClusterName() |
|
83 | { |
|
84 | $this->processData(); |
|
85 | ||
86 | return $this->get(self::PROP_CLUSTER_NAME); |
|
87 | } |
|
88 | ||
89 | /** |
|
90 | * Getter Method |
|
91 | * |
|
92 | * @return mixed |
|
93 | * @author Daniel Wendlandt |
|
94 | */ |
|
95 | public function getTagline() |
|
96 | { |
|
97 | $this->processData(); |
|
98 | ||
99 | return $this->get(self::PROP_TAGLINE); |
|
100 | } |
|
101 | ||
102 | } |
|
103 |