include/SugarSearchEngine/Elastic/Elastica/Node/Info.php
Elastica cluster node object
- Author
- Nicolas Ruflin
- Category
- Xodoa
- Link
- http://www.elasticsearch.org/guide/reference/api/admin-indices-status.html
- Package
- Elastica
\Elastica_Node_Info
Package: Elastica
Returns
Elastica cluster node object
- Author
- Nicolas Ruflin
- Category
- Xodoa
- Link
- http://www.elasticsearch.org/guide/reference/api/admin-indices-status.html
Properties
Methods
__construct(
\Elastica_Node $node
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$node | \Elastica_Node | Node object |
get(
)
:
mixed
Returns the entry in the data array based on the params.
Several params possible.
Example 1: get('os', 'mem', 'total') returns total memory of the system the node is running on Example 2: get('os', 'mem') returns an array with all mem infos
Type | Description |
---|---|
mixed | Data array entry or null if not found |
getResponse(
)
:
\Elastica_Response
Returns response object
Returns
Type | Description |
---|---|
\Elastica_Response | Response object |
refresh(
)
:
\Elastica_Response
Reloads all nodes information. Has to be called if informations changed
Returns
Type | Description |
---|---|
\Elastica_Response | Response object |