PHP Класс Elastica\Cluster

Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$_client Client.
$_data array Cluster state data.
$_response Response Cluster state response.

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

Метод Описание
__construct ( Client $client ) Creates a cluster object.
getClient ( ) : Client Returns the client object.
getHealth ( ) : Health Return Cluster health.
getIndexNames ( ) : array Return list of index names.
getInfo ( array $args ) Returns the cluster information (not implemented yet).
getNodeNames ( ) : array Returns a list of existing node names.
getNodes ( ) : Node[] Returns all nodes of the cluster.
getResponse ( ) : Response Returns the response object.
getSettings ( ) : Settings Return Cluster settings.
getState ( ) : array Returns the full state of the cluster.
refresh ( ) Refreshes all cluster information (state).

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

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

Creates a cluster object.
public __construct ( Client $client )
$client Client Connection client object

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

Returns the client object.
public getClient ( ) : Client
Результат Client Client object

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

Return Cluster health.
public getHealth ( ) : Health
Результат Elastica\Cluster\Health

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

Return list of index names.
public getIndexNames ( ) : array
Результат array List of index names

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

Returns the cluster information (not implemented yet).
public getInfo ( array $args )
$args array Additional arguments

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

Returns a list of existing node names.
public getNodeNames ( ) : array
Результат array List of node names

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

Returns all nodes of the cluster.
public getNodes ( ) : Node[]
Результат Node[]

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

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

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

Return Cluster settings.
public getSettings ( ) : Settings
Результат Elastica\Cluster\Settings

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

Returns the full state of the cluster.
public getState ( ) : array
Результат array State array

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

Refreshes all cluster information (state).
public refresh ( )

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

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

Client.
protected $_client

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

Cluster state data.
protected array $_data
Результат array

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

Cluster state response.
protected Response,Elastica $_response
Результат Response