include/SugarSearchEngine/Elastic/Elastica/Node.php
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
Methods
__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 |
getClient(
)
:
\Elastica_Client
Returns the current client object
Returns
Type | Description |
---|---|
\Elastica_Client | Client |
getStats(
)
:
\Elastica_Node_Stats
Return stats object of the current node
Returns
Type | Description |
---|---|
\Elastica_Node_Stats | Node stats |
refresh(
)
:
void
Refreshs all node information
This should be called after upating a node to refresh all information
shutdown(
string $delay
=
'1s'
)
:
\Elastica_Response
Shuts this node down
Parameters
Returns
Details
Name | Type | Description |
---|---|---|
$delay | string | OPTIONAL Delay after which node is shut down (defualt = 1s) |
Type | Description |
---|---|
\Elastica_Response |