$_client
$_client : \Elastica\Client
Cluster settings.
$_client : \Elastica\Client
__construct(\Elastica\Client $client)
Creates a cluster object.
\Elastica\Client | $client | Connection client object |
setPersistent(string $key, string $value) : \Elastica\Response
Sets persistent setting.
string | $key | |
string | $value |
setTransient(string $key, string $value) : \Elastica\Response
Sets transient settings.
string | $key | |
string | $value |
setReadOnly(boolean $readOnly = true, boolean $persistent = false) : \Elastica\Response
Sets the cluster to read only.
Second param can be used to set it persistent
boolean | $readOnly | |
boolean | $persistent |
$response
set(array $settings) : \Elastica\Response
Set settings for cluster.
array | $settings | Raw settings (including persistent or transient) |
getClient() : \Elastica\Client
Get the client.
request(array $data = array(), string $method = \Elastica\Request::GET) : \Elastica\Response
Sends settings request.
array | $data | OPTIONAL Data array |
string | $method | OPTIONAL Transfer method (default = \Elastica\Request::GET) |
Response object