\Elastica\NodeStats

Elastica cluster node object.

Summary

Methods
Properties
Constants
__construct()
get()
getData()
getNode()
getResponse()
refresh()
No public properties found
No constants found
No protected methods found
$_response
$_data
$_node
N/A
No private methods found
No private properties found
N/A

Properties

$_response

$_response : \Elastica\Response

Response.

Type

\Elastica\Response — Response object

$_data

$_data : array

Stats data.

Type

array — stats data

$_node

$_node : \Elastica\Node

Node.

Type

\Elastica\Node — Node object

Methods

__construct()

__construct(\Elastica\Node  $node) 

Create new stats for node.

Parameters

\Elastica\Node $node

Elastica node object

get()

get() : array

Returns all node stats as array based on the arguments.

Several arguments can be use get('index', 'test', 'example')

Returns

array —

Node stats for the given field or null if not found

getData()

getData() : array

Returns all stats data.

Returns

array —

Data array

getNode()

getNode() : \Elastica\Node

Returns node object.

Returns

\Elastica\Node

Node object

getResponse()

getResponse() : \Elastica\Response

Returns response object.

Returns

\Elastica\Response

Response object

refresh()

refresh() : \Elastica\Response

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

Returns

\Elastica\Response

Response object