PHP Class Cassandra\Integration

Show file Open project: datastax/php-driver

Public Methods

Method Description
__construct ( $className, string $testName = "", integer $numberDC1Nodes = 1, integer $numberDC2Nodes, integer $replicationFactor, boolean $isClientAuthentication = false, boolean $isSSL = false, boolean $isUserDefinedAggregatesFunctions = false ) : Integration Create the integration helper instance.
__destruct ( )
__get ( $property )
isDebug ( ) : boolean Determine if the debug argument was used when starting PHPUnit.
isVerbose ( ) : boolean Determine if the verbose argument was used when starting PHPUnit.

Private Methods

Method Description
getContactPoints ( $ipAddress, $numberOfNodes ) : string Get the contact points for the cluster.
getShortName ( $className ) : string Get the short name of the class without the namespacing.

Method Details

__construct() public method

Create the integration helper instance.
public __construct ( $className, string $testName = "", integer $numberDC1Nodes = 1, integer $numberDC2Nodes, integer $replicationFactor, boolean $isClientAuthentication = false, boolean $isSSL = false, boolean $isUserDefinedAggregatesFunctions = false ) : Integration
$className Name of the class for the executed test.
$testName string Name of the test being executed.
$numberDC1Nodes integer Number of nodes in data center one (DEFAULT: 1).
$numberDC2Nodes integer Number of nodes in data center two (DEFAULT: 0).
$replicationFactor integer Replication factor override; default is calculated based on number of data center nodes; single data center is (nodes / 2) rounded up.
$isClientAuthentication boolean True if client authentication should be enabled; false otherwise (DEFAULT: false).
$isSSL boolean True if SSL should be enabled; false otherwise (DEFAULT: false).
$isUserDefinedAggregatesFunctions boolean True if UDA/UDF functionality should be enabled; false otherwise (DEFAULT: false).
return Integration Instance of the Integration class created.

__destruct() public method

public __destruct ( )

__get() public method

public __get ( $property )

isDebug() public static method

Determine if the debug argument was used when starting PHPUnit.
public static isDebug ( ) : boolean
return boolean True if debug argument was used; false otherwise

isVerbose() public static method

Determine if the verbose argument was used when starting PHPUnit.
public static isVerbose ( ) : boolean
return boolean True if verbose argument was used; false otherwise