PHP Класс Elastica\Node\Stats

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$_data Stats data.
$_node Node.
$_response Response.

Открытые методы

Метод Описание
__construct ( Node $node ) Create new stats for node.
get ( ) : array Returns all node stats as array based on the arguments.
getData ( ) : array Returns all stats data.
getNode ( ) : Node Returns node object.
getResponse ( ) : Response Returns response object.
refresh ( ) : Response Reloads all nodes information. Has to be called if informations changed.

Описание методов

__construct() публичный Метод

Create new stats for node.
public __construct ( Node $node )
$node Elastica\Node Elastica node object

get() публичный Метод

Several arguments can be use get('index', 'test', 'example')
public get ( ) : array
Результат array Node stats for the given field or null if not found

getData() публичный Метод

Returns all stats data.
public getData ( ) : array
Результат array Data array

getNode() публичный Метод

Returns node object.
public getNode ( ) : Node
Результат Elastica\Node Node object

getResponse() публичный Метод

Returns response object.
public getResponse ( ) : Response
Результат Elastica\Response Response object

refresh() публичный Метод

Reloads all nodes information. Has to be called if informations changed.
public refresh ( ) : Response
Результат Elastica\Response Response object

Описание свойств

$_data защищенное свойство

Stats data.
protected $_data

$_node защищенное свойство

Node.
protected $_node

$_response защищенное свойство

Response.
protected $_response