PHP Class Elastica\Cluster\Health\Index

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

Protected Properties

Свойство Type Description
$_data The index health data.
$_name The name of the index.

Méthodes publiques

Méthode Description
__construct ( string $name, array $data )
getActivePrimaryShards ( ) : integer Gets the number of active primary shards.
getActiveShards ( ) : integer Gets the number of active shards.
getInitializingShards ( ) : integer Gets the number of initializing shards.
getName ( ) : string Gets the name of the index.
getNumberOfReplicas ( ) : integer Gets the number of data nodes in the index.
getNumberOfShards ( ) : integer Gets the number of nodes in the index.
getRelocatingShards ( ) : integer Gets the number of relocating shards.
getShards ( ) : Elastica\Cluster\Health\Shard[] Gets the health of the shards in this index.
getStatus ( ) : string Gets the status of the index.
getUnassignedShards ( ) : integer Gets the number of unassigned shards.

Method Details

__construct() public méthode

public __construct ( string $name, array $data )
$name string The name of the index.
$data array The index health data.

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

getInitializingShards() public méthode

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

getName() public méthode

Gets the name of the index.
public getName ( ) : string
Résultat string

getNumberOfReplicas() public méthode

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

getNumberOfShards() public méthode

Gets the number of nodes in the index.
public getNumberOfShards ( ) : integer
Résultat integer

getRelocatingShards() public méthode

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

getShards() public méthode

Gets the health of the shards in this index.
public getShards ( ) : Elastica\Cluster\Health\Shard[]
Résultat Elastica\Cluster\Health\Shard[]

getStatus() public méthode

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

getUnassignedShards() public méthode

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

Property Details

$_data protected_oe property

The index health data.
protected $_data

$_name protected_oe property

The name of the index.
protected $_name