include/SugarSearchEngine/Elastic/Elastica/Node/Info.php

Show: inherited
Table of Contents

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

Elastica cluster node object

Author
Nicolas Ruflin  
Category
Xodoa  
Link
http://www.elasticsearch.org/guide/reference/api/admin-indices-status.html  

Properties

Propertyprotected  $_data= 'array()'
Default valuearray()Details
Type
n/a
Propertyprotected  $_node= 'null'
Default valuenullDetails
Type
n/a
Propertyprotected  $_response= 'null'
Default valuenullDetails
Type
n/a

Methods

methodpublic__construct( \Elastica_Node $node ) : void

Parameters
Name Type Description
$node \Elastica_Node

Node object

methodpublicget( ) : 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

Returns
Type Description
mixed Data array entry or null if not found
methodpublicgetData( ) : array

Return all info data

Returns
Type Description
array Data array
methodpublicgetIp( ) : string

Returns
Type Description
string Returns Node ip address
methodpublicgetNode( ) : \Elastica_Node

Returns
Type Description
\Elastica_Node Node object
methodpublicgetPort( ) : string

Returns
Type Description
string Returns Node port
methodpublicgetResponse( ) : \Elastica_Response

Returns response object

Returns
Type Description
\Elastica_Response Response object
methodpublicrefresh( ) : \Elastica_Response

Reloads all nodes information. Has to be called if informations changed

Returns
Type Description
\Elastica_Response Response object
Documentation was generated by DocBlox 0.18.1.