PHP 클래스 Elastica\Cluster\Health

파일 보기 프로젝트 열기: ruflin/elastica 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_client Client object.
$_data The cluster health data.

공개 메소드들

메소드 설명
__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.

보호된 메소드들

메소드 설명
_retrieveHealthData ( ) : array Retrieves the health data from the cluster.

메소드 상세

__construct() 공개 메소드

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

_retrieveHealthData() 보호된 메소드

Retrieves the health data from the cluster.
protected _retrieveHealthData ( ) : array
리턴 array

getActivePrimaryShards() 공개 메소드

Gets the number of active primary shards.
public getActivePrimaryShards ( ) : integer
리턴 integer

getActiveShards() 공개 메소드

Gets the number of active shards.
public getActiveShards ( ) : integer
리턴 integer

getClusterName() 공개 메소드

Gets the name of the cluster.
public getClusterName ( ) : string
리턴 string

getData() 공개 메소드

Gets the health data.
public getData ( ) : array
리턴 array

getIndices() 공개 메소드

Gets the status of the indices.
public getIndices ( ) : Index[]
리턴 Elastica\Cluster\Health\Index[]

getInitializingShards() 공개 메소드

Gets the number of initializing shards.
public getInitializingShards ( ) : integer
리턴 integer

getNumberOfDataNodes() 공개 메소드

Gets the number of data nodes in the cluster.
public getNumberOfDataNodes ( ) : integer
리턴 integer

getNumberOfNodes() 공개 메소드

Gets the number of nodes in the cluster.
public getNumberOfNodes ( ) : integer
리턴 integer

getRelocatingShards() 공개 메소드

Gets the number of relocating shards.
public getRelocatingShards ( ) : integer
리턴 integer

getStatus() 공개 메소드

Gets the status of the cluster.
public getStatus ( ) : string
리턴 string green, yellow or red.

getTimedOut() 공개 메소드

TODO determine the purpose of this.
public getTimedOut ( ) : boolean
리턴 boolean

getUnassignedShards() 공개 메소드

Gets the number of unassigned shards.
public getUnassignedShards ( ) : integer
리턴 integer

refresh() 공개 메소드

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

프로퍼티 상세

$_client 보호되어 있는 프로퍼티

Client object.
protected $_client

$_data 보호되어 있는 프로퍼티

The cluster health data.
protected $_data