Home
last modified time | relevance | path

Searched refs:connections (Results 1 – 25 of 73) sorted by relevance

123

/plugin/swiftmail/Swift/Connection/
H A DRotator.php26 protected $connections = array(); variable in Swift_Connection_Rotator
41 public function __construct($connections=array()) argument
43 foreach ($connections as $id => $conn)
45 $this->addConnection($connections[$id], $id);
59 $this->connections[] = $connection;
73 $total = count($this->connections);
82 if (!$this->connections[$id]->isAlive()) $this->connections[$id]->start();
83 if ($this->connections[$id]->isAlive())
91 $this->connections[$id]->stop();
142 foreach ($this->connections as $id => $conn)
[all …]
H A DMulti.php26 protected $connections = array(); variable in Swift_Connection_Multi
36 public function __construct($connections=array()) argument
38 foreach ($connections as $id => $conn)
40 $this->addConnection($connections[$id], $id);
55 if ($id !== null) $this->connections[$id] = $connection;
56 else $this->connections[] = $connection;
69 return $this->connections[$this->active]->read();
92 foreach ($this->connections as $id => $conn)
95 $this->connections[$id]->start();
96 if ($this->connections[$id]->isAlive())
[all …]
/plugin/elasticsearch/vendor/elasticsearch/elasticsearch/tests/Elasticsearch/Tests/ConnectionPool/
H A DStaticConnectionPoolTest.php45 $connections = [$mockConnection];
49 ->andReturn($connections[0])
66 $connections = [];
83 ->andReturn($connections[0])
100 $connections = [];
119 ->andReturnValues($connections)
137 $connections = [];
165 $connections[] = $goodConnection;
169 ->andReturnValues($connections)
185 $connections = [];
[all …]
H A DSniffingConnectionPoolTest.php50 $connections = [$mockConnection];
54 ->andReturn($connections[0])
80 $connections = [$mockConnection];
116 $connections = [$mockConnection];
139 $connections = [];
155 ->andReturn($connections[0])
170 $connections = [];
211 $connections = [];
346 $connections = [];
365 $newConnections = $connections;
[all …]
/plugin/elasticsearch/vendor/elasticsearch/elasticsearch/src/Elasticsearch/ConnectionPool/Selectors/
H A DStickyRoundRobinSelector.php33 * @param ConnectionInterface[] $connections Array of connections to choose from
35 public function select(array $connections): ConnectionInterface argument
40 if ($connections[$this->current]->isAlive()) {
41 return $connections[$this->current];
45 $this->current = $this->currentCounter % count($connections);
47 return $connections[$this->current];
H A DRandomSelector.php23 …* @param ConnectionInterface[] $connections an array of ConnectionInterface instances to choose fr…
25 public function select(array $connections): ConnectionInterface argument
27 return $connections[array_rand($connections)];
H A DRoundRobinSelector.php28 …* @param ConnectionInterface[] $connections an array of ConnectionInterface instances to choose fr…
30 public function select(array $connections): ConnectionInterface argument
32 $returnConnection = $connections[$this->current % count($connections)];
/plugin/elasticsearch/vendor/elasticsearch/elasticsearch/src/Elasticsearch/ConnectionPool/
H A DAbstractConnectionPool.php28 protected $connections; variable in Elasticsearch\\ConnectionPool\\AbstractConnectionPool
57 * @param ConnectionInterface[] $connections The Connections to choose from
62 …public function __construct(array $connections, SelectorInterface $selector, ConnectionFactoryInte… argument
74 shuffle($connections);
77 $this->connections = $connections;
78 $this->seedConnections = $connections;
H A DSniffingConnectionPool.php29 …public function __construct($connections, SelectorInterface $selector, ConnectionFactoryInterface … argument
31 parent::__construct($connections, $selector, $factory, $connectionPoolParams);
41 $size = count($this->connections);
46 $connection = $this->selector->select($this->connections);
70 $total = count($this->connections);
76 $connection = $this->selector->select($this->connections);
112 $this->connections = array();
119 $this->connections[] = $this->connectionFactory->create($nodeDetails);
H A DStaticConnectionPool.php28 …public function __construct($connections, SelectorInterface $selector, ConnectionFactoryInterface … argument
30 parent::__construct($connections, $selector, $factory, $connectionPoolParams);
38 $total = count($this->connections);
43 $connection = $this->selector->select($this->connections);
69 foreach ($this->connections as $connection) {
H A DStaticNoPingConnectionPool.php28 …public function __construct($connections, SelectorInterface $selector, ConnectionFactoryInterface … argument
30 parent::__construct($connections, $selector, $factory, $connectionPoolParams);
35 $total = count($this->connections);
40 $connection = $this->selector->select($this->connections);
H A DSimpleConnectionPool.php18 …public function __construct($connections, SelectorInterface $selector, ConnectionFactoryInterface … argument
20 parent::__construct($connections, $selector, $factory, $connectionPoolParams);
25 return $this->selector->select($this->connections);
/plugin/authgooglesheets/vendor/google/apiclient-services/src/CloudRun/
H A DGoogleCloudRunOpV2CloudSqlInstance.php26 public $connections; variable in Google\\Service\\CloudRun\\GoogleCloudRunOpV2CloudSqlInstance
31 public function setConnections($connections) argument
33 $this->connections = $connections;
40 return $this->connections;
/plugin/authgooglesheets/vendor/google/apiclient-services/src/ServiceNetworking/
H A DListConnectionsResponse.php29 public function setConnections($connections) argument
31 $this->connections = $connections;
38 return $this->connections;
/plugin/elasticsearch/vendor/ruflin/elastica/lib/Elastica/Connection/
H A DConnectionPool.php34 * @param array $connections
38 …public function __construct(array $connections, StrategyInterface $strategy, callable $callback = … argument
40 $this->_connections = $connections;
60 * @param Connection[] $connections
64 public function setConnections(array $connections): self argument
66 $this->_connections = $connections;
/plugin/authgooglesheets/vendor/google/apiclient-services/src/BigQueryConnectionService/
H A DListConnectionsResponse.php33 public function setConnections($connections) argument
35 $this->connections = $connections;
42 return $this->connections;
/plugin/authgooglesheets/vendor/google/apiclient-services/src/Connectors/
H A DListConnectionsResponse.php37 public function setConnections($connections) argument
39 $this->connections = $connections;
46 return $this->connections;
/plugin/authgooglesheets/vendor/google/apiclient-services/src/PeopleService/
H A DListConnectionsResponse.php45 public function setConnections($connections) argument
47 $this->connections = $connections;
54 return $this->connections;
/plugin/elasticsearch/vendor/ruflin/elastica/lib/Elastica/Connection/Strategy/
H A DRoundRobin.php17 public function getConnection(array $connections): Connection argument
19 \shuffle($connections);
21 return parent::getConnection($connections);
H A DStrategyInterface.php15 * @param Connection[] $connections
19 public function getConnection(array $connections): Connection; argument
H A DSimple.php18 public function getConnection(array $connections): Connection argument
20 foreach ($connections as $connection) {
H A DCallbackStrategy.php30 public function getConnection(array $connections): Connection argument
32 return \call_user_func_array($this->_callback, [$connections]);
/plugin/authgooglesheets/vendor/google/apiclient-services/src/StreetViewPublish/
H A DPhoto.php83 public function setConnections($connections) argument
85 $this->connections = $connections;
92 return $this->connections;
/plugin/elasticsearch/vendor/elasticsearch/elasticsearch/docs/
H A Dselectors.asciidoc4 The connection pool maintains the list of connections, and decides when nodes should transition fro…
5 vice versa). It has no logic to choose connections, however. That job belongs to the Selector cla…
7 The selector's job is to return a single connection from a provided array of connections. Like the…
12 This selector returns connections in a round-robin fashion. Node #1 is selected on the first reque…
34 new connections for each request is often a sub-optimal strategy and introduces a lot of overhead. …
87 * @param array $connections Array of Connection objects
91 public function select($connections)
/plugin/elasticsearch/vendor/ruflin/elastica/lib/Elastica/
H A DClient.php121 $connections = [];
124 $connections[] = Connection::create($this->_prepareConnectionParams($connection));
129 $connections[] = Connection::create($this->_prepareConnectionParams($server));
134 if (empty($connections)) {
135 … $connections[] = Connection::create($this->_prepareConnectionParams($this->getConfig()));
148 … $this->_connectionPool = new Connection\ConnectionPool($connections, $strategy, $this->_callback);
545 public function setConnections(array $connections) argument
547 $this->_connectionPool->setConnections($connections);

123