You are here

protected function Apache_Solr_Service_Balancer::_getServiceId in Apache Solr Search 5

Generates a service ID

Parameters

string $host:

integer $port:

string $path:

Return value

string

4 calls to Apache_Solr_Service_Balancer::_getServiceId()
Apache_Solr_Service_Balancer::addReadService in SolrPhpClient/Apache/Solr/Service/Balancer.php
Adds a service instance or service descriptor (if it is already not added)
Apache_Solr_Service_Balancer::addWriteService in SolrPhpClient/Apache/Solr/Service/Balancer.php
Adds a service instance or service descriptor (if it is already not added)
Apache_Solr_Service_Balancer::removeReadService in SolrPhpClient/Apache/Solr/Service/Balancer.php
Removes a service instance or descriptor from the available services
Apache_Solr_Service_Balancer::removeWriteService in SolrPhpClient/Apache/Solr/Service/Balancer.php
Removes a service instance or descriptor from the available services

File

SolrPhpClient/Apache/Solr/Service/Balancer.php, line 129

Class

Apache_Solr_Service_Balancer
Reference Implementation for using multiple Solr services in a distribution. Functionality includes: routing of read / write operations failover (on selection) for multiple read servers

Code

protected function _getServiceId($host, $port, $path) {
  return $host . ':' . $port . $path;
}