Differential D17601 Diff 42341 src/infrastructure/cluster/search/PhabricatorElasticsearchHost.php.lowercase
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/cluster/search/PhabricatorElasticsearchHost.php.lowercase
- This file was moved from src/infrastructure/cluster/search/PhabricatorElasticSearchHost.php.
<?php | <?php | ||||
final class PhabricatorElasticSearchHost | final class PhabricatorElasticsearchHost | ||||
extends PhabricatorSearchHost { | extends PhabricatorSearchHost { | ||||
private $version = 5; | private $version = 5; | ||||
private $path = 'phabricator/'; | private $path = 'phabricator/'; | ||||
private $protocol = 'http'; | private $protocol = 'http'; | ||||
const KEY_REFS = 'search.elastic.refs'; | const KEY_REFS = 'search.elastic.refs'; | ||||
public function setConfig($config) { | public function setConfig($config) { | ||||
$this->setRoles(idx($config, 'roles', $this->getRoles())) | $this->setRoles(idx($config, 'roles', $this->getRoles())) | ||||
->setHost(idx($config, 'host', $this->host)) | ->setHost(idx($config, 'host', $this->host)) | ||||
->setPort(idx($config, 'port', $this->port)) | ->setPort(idx($config, 'port', $this->port)) | ||||
->setProtocol(idx($config, 'protocol', $this->protocol)) | ->setProtocol(idx($config, 'protocol', $this->protocol)) | ||||
->setPath(idx($config, 'path', $this->path)) | ->setPath(idx($config, 'path', $this->path)) | ||||
->setVersion(idx($config, 'version', $this->version)); | ->setVersion(idx($config, 'version', $this->version)); | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getDisplayName() { | public function getDisplayName() { | ||||
return pht('ElasticSearch'); | return pht('Elasticsearch'); | ||||
} | } | ||||
public function getStatusViewColumns() { | public function getStatusViewColumns() { | ||||
return array( | return array( | ||||
pht('Protocol') => $this->getProtocol(), | pht('Protocol') => $this->getProtocol(), | ||||
pht('Host') => $this->getHost(), | pht('Host') => $this->getHost(), | ||||
pht('Port') => $this->getPort(), | pht('Port') => $this->getPort(), | ||||
pht('Index Path') => $this->getPath(), | pht('Index Path') => $this->getPath(), | ||||
▲ Show 20 Lines • Show All 50 Lines • Show Last 20 Lines |