PHP Client for Apache Ignite
|
Public Member Functions | |
__construct (string ... $endpoints) | |
getEndpoints () | |
setUserName (?string $userName) | |
getUserName () | |
setPassword (?string $password) | |
getPassword () | |
setTLSOptions (?array $tlsOptions) | |
getTLSOptions () | |
setTimeout (int $timeout) | |
getTimeout () | |
setSendChunkSize (int $size) | |
getSendChunkSize () | |
setReceiveChunkSize (int $size) | |
getReceiveChunkSize () | |
setTcpNoDelay (bool $tcpNoDelay) | |
getTcpNoDelay () | |
Class representing Ignite client configuration.
The configuration includes:
Apache\Ignite\ClientConfiguration::__construct | ( | string ... | $endpoints | ) |
Creates an instance of Ignite client configuration with the provided mandatory settings and default optional settings.
By default, the client does not use authentication and secure connection.
string | ...$endpoints Ignite node endpoint(s). The client randomly connects/reconnects to one of the specified node. |
ClientException | if error. |
Apache\Ignite\ClientConfiguration::getEndpoints | ( | ) |
Returns Ignite node endpoints specified in the constructor.
Apache\Ignite\ClientConfiguration::getPassword | ( | ) |
Returns the current password.
Apache\Ignite\ClientConfiguration::getReceiveChunkSize | ( | ) |
Returns the current size of the receive chunk.
Apache\Ignite\ClientConfiguration::getSendChunkSize | ( | ) |
Returns the current size of the send chunk.
Apache\Ignite\ClientConfiguration::getTcpNoDelay | ( | ) |
Returns the current status of the TCP Nagle algorithm.
Apache\Ignite\ClientConfiguration::getTimeout | ( | ) |
Returns the current send/receive timeout.
Apache\Ignite\ClientConfiguration::getTLSOptions | ( | ) |
Returns the current TLS connection options.
Apache\Ignite\ClientConfiguration::getUserName | ( | ) |
Returns the current username.
Apache\Ignite\ClientConfiguration::setPassword | ( | ?string | $password | ) |
Sets password which will be used for authentication during the client's connection.
Password is ignored, if username is not set. If password is not set, it is considered empty.
string | null | $password | password. If null, password is empty. |
Apache\Ignite\ClientConfiguration::setReceiveChunkSize | ( | int | $size | ) |
Sets the size of the receive chunk.
8192 bytes by default.
int | $size | size of the receive chunk (in bytes). |
Apache\Ignite\ClientConfiguration::setSendChunkSize | ( | int | $size | ) |
Sets the size of the send chunk.
8192 bytes by default.
int | $size | size of the send chunk (in bytes). |
Apache\Ignite\ClientConfiguration::setTcpNoDelay | ( | bool | $tcpNoDelay | ) |
Disables/enables the TCP Nagle algorithm.
Enabled by default.
bool | $tcpNoDelay | true to enable, false to disable. |
Apache\Ignite\ClientConfiguration::setTimeout | ( | int | $timeout | ) |
Sets send/receive timeout.
Default value is defined by the PHP settings.
int | $timeout | send/receive timeout (in milliseconds). |
Apache\Ignite\ClientConfiguration::setTLSOptions | ( | ?array | $tlsOptions | ) |
Enables and setup TLS connection.
If not enabled (by default), the client does not use secure connection.
array | null | $tlsOptions | TLS connection options in the format defined here: http://php.net/manual/en/context.ssl.php If null, secure connection is not used. |
Apache\Ignite\ClientConfiguration::setUserName | ( | ?string | $userName | ) |
Sets username which will be used for authentication during the client's connection.
If username is not set, the client does not use authentication during connection.
string | null | $userName | username. If null, authentication is disabled. |