include/SugarSearchEngine/Elastic/Elastica/Node.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

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  $_info= 'null'
Default valuenullDetails
Type
n/a
Propertyprotected  $_name= ''''
Default value''Details
Type
n/a
Propertyprotected  $_stats= 'null'
Default valuenullDetails
Type
n/a

Methods

methodpublic__construct( string $name, \Elastica_Client $client ) : void

Create a new node object

Parameters
Name Type Description
$name string

Node name

$client \Elastica_Client

Node object

methodpublicgetClient( ) : \Elastica_Client

Returns the current client object

Returns
Type Description
\Elastica_Client Client
methodpublicgetInfo( ) : \Elastica_Node_Info

Returns
Type Description
\Elastica_Node_Info Node info object
methodpublicgetName( ) : string

Returns
Type Description
string Node name
methodpublicgetStats( ) : \Elastica_Node_Stats

Return stats object of the current node

Returns
Type Description
\Elastica_Node_Stats Node stats
methodpublicrefresh( ) : void

Refreshs all node information

This should be called after upating a node to refresh all information

methodpublicshutdown( string $delay = '1s' ) : \Elastica_Response

Shuts this node down

Parameters
Name Type Description
$delay string

OPTIONAL Delay after which node is shut down (defualt = 1s)

Returns
Type Description
\Elastica_Response
Details
Link
http://www.elasticsearch.org/guide/reference/api/admin-cluster-nodes-shutdown.html  
Documentation was generated by DocBlox 0.18.1.