$_client
$_client : \Elastica\Client
Client.
Elastica cluster node object.
$_client : \Elastica\Client
Client.
$_stats : \Elastica\Node\Stats|null
Node stats.
$_info : \Elastica\Node\Info|null
Node info.
__construct(string $id, \Elastica\Client $client)
Create a new node object.
string | $id | Node id or name |
\Elastica\Client | $client | Node object |
getClient() : \Elastica\Client
Returns the current client object.
Client
getStats() : \Elastica\Node\Stats
Return stats object of the current node.
Node stats
getInfo() : \Elastica\Node\Info
Return info object of the current node.
Node info object
shutdown(string $delay = '1s') : \Elastica\Response
Shuts this node down.
string | $delay | OPTIONAL Delay after which node is shut down (default = 1s) |