$_response
$_response : \Elastica\Response
Response.
Elastica cluster node object.
$_response : \Elastica\Response
Response.
$_node : \Elastica\Node
Node.
__construct(\Elastica\Node $node, array $params = array())
Create new info object for node.
\Elastica\Node | $node | Node object |
array | $params | List of params to return. Can be: settings, os, process, jvm, thread_pool, network, transport, http |
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
Data array entry or null if not found
getNode() : \Elastica\Node
Return node object.
Node object
getResponse() : \Elastica\Response
Returns response object.
Response object
refresh(array $params = array()) : \Elastica\Response
Reloads all nodes information. Has to be called if informations changed.
array | $params | Params to return (default none). Possible options: settings, os, process, jvm, thread_pool, network, transport, http, plugin |
Response object