PHP Class Elastica\Cluster\Health

Afficher le fichier Open project: ruflin/elastica Class Usage Examples

Protected Properties

Свойство Type Description
$_client Client object.
$_data The cluster health data.

Méthodes publiques

Méthode Description
__construct ( Client $client )
getActivePrimaryShards ( ) : integer Gets the number of active primary shards.
getActiveShards ( ) : integer Gets the number of active shards.
getClusterName ( ) : string Gets the name of the cluster.
getData ( ) : array Gets the health data.
getIndices ( ) : Index[] Gets the status of the indices.
getInitializingShards ( ) : integer Gets the number of initializing shards.
getNumberOfDataNodes ( ) : integer Gets the number of data nodes in the cluster.
getNumberOfNodes ( ) : integer Gets the number of nodes in the cluster.
getRelocatingShards ( ) : integer Gets the number of relocating shards.
getStatus ( ) : string Gets the status of the cluster.
getTimedOut ( ) : boolean TODO determine the purpose of this.
getUnassignedShards ( ) : integer Gets the number of unassigned shards.
refresh ( ) Refreshes the health data for the cluster.

Méthodes protégées

Méthode Description
_retrieveHealthData ( ) : array Retrieves the health data from the cluster.

Method Details

__construct() public méthode

public __construct ( Client $client )
$client Elastica\Client The Elastica client.

_retrieveHealthData() protected méthode

Retrieves the health data from the cluster.
protected _retrieveHealthData ( ) : array
Résultat array

getActivePrimaryShards() public méthode

Gets the number of active primary shards.
public getActivePrimaryShards ( ) : integer
Résultat integer

getActiveShards() public méthode

Gets the number of active shards.
public getActiveShards ( ) : integer
Résultat integer

getClusterName() public méthode

Gets the name of the cluster.
public getClusterName ( ) : string
Résultat string

getData() public méthode

Gets the health data.
public getData ( ) : array
Résultat array

getIndices() public méthode

Gets the status of the indices.
public getIndices ( ) : Index[]
Résultat Elastica\Cluster\Health\Index[]

getInitializingShards() public méthode

Gets the number of initializing shards.
public getInitializingShards ( ) : integer
Résultat integer

getNumberOfDataNodes() public méthode

Gets the number of data nodes in the cluster.
public getNumberOfDataNodes ( ) : integer
Résultat integer

getNumberOfNodes() public méthode

Gets the number of nodes in the cluster.
public getNumberOfNodes ( ) : integer
Résultat integer

getRelocatingShards() public méthode

Gets the number of relocating shards.
public getRelocatingShards ( ) : integer
Résultat integer

getStatus() public méthode

Gets the status of the cluster.
public getStatus ( ) : string
Résultat string green, yellow or red.

getTimedOut() public méthode

TODO determine the purpose of this.
public getTimedOut ( ) : boolean
Résultat boolean

getUnassignedShards() public méthode

Gets the number of unassigned shards.
public getUnassignedShards ( ) : integer
Résultat integer

refresh() public méthode

Refreshes the health data for the cluster.
public refresh ( )

Property Details

$_client protected_oe property

Client object.
protected $_client

$_data protected_oe property

The cluster health data.
protected $_data