PHP Class Cassandra\RetryPolicyIntegrationTest

Inheritance: extends BasicIntegrationTest
Afficher le fichier Open project: datastax/php-driver

Méthodes publiques

Méthode Description
setUp ( ) Setup the retry policy for multiple nodes.
testDowngradingPolicy ( ) Statement execution supports downgrading consistency retry policy.
testFallThroughPolicyRead ( ) Statement execution supports fallthrough retry policy (read exception).
testFallThroughPolicyWrite ( ) Statement execution supports fallthrough retry policy (write exception).

Private Methods

Méthode Description
assert ( RetryPolicy $policy, $key, $numberOfAsserts, $consistency, integer $retries = self::NUMBER_OF_TIMEOUT_EXCEPTIONS ) Assert n values in the table for a given key.
insert ( $statementType, RetryPolicy $policy, $key, $numberOfInserts, $consistency, integer $retries = self::NUMBER_OF_TIMEOUT_EXCEPTIONS ) Insert n values into the table for a given key.

Method Details

setUp() public méthode

Setup the retry policy for multiple nodes.
public setUp ( )

testDowngradingPolicy() public méthode

This test will ensure that the PHP driver supports the downgrading retry policy when executing statements.

testFallThroughPolicyRead() public méthode

This test will ensure that the PHP driver supports the ability to provide any exception that occurs when executing statements. This test will ensure that a ReadTimeoutException occurs when a consistency level cannot be achieved.

testFallThroughPolicyWrite() public méthode

This test will ensure that the PHP driver supports the ability to provide any exception that occurs when executing statements. This test will ensure that a WriteTimeoutException occurs when a consistency level cannot be achieved.