| 1 | package Search::Elasticsearch::Client::0_90::TestServer; | ||
| 2 | $Search::Elasticsearch::Client::0_90::TestServer::VERSION = '6.81'; | ||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | #=================================== | ||
| 7 | sub command_line { | ||
| 8 | #=================================== | ||
| 9 | my ( $class, $ts, $pid_file, $dir, $transport, $http ) = @_; | ||
| 10 | |||
| 11 | return ( | ||
| 12 | $ts->es_home . '/bin/elasticsearch', | ||
| 13 | '-f', '-p', | ||
| 14 | $pid_file->filename, | ||
| 15 | map {"-Des.$_"} ( | ||
| 16 | 'path.data=' . $dir, | ||
| 17 | 'network.host=127.0.0.1', | ||
| 18 | 'cluster.name=es_test', | ||
| 19 | 'discovery.zen.ping_timeout=1s', | ||
| 20 | 'discovery.zen.ping.multicast.enabled=false', | ||
| 21 | 'discovery.zen.ping.unicast.hosts=127.0.0.1:' . $ts->es_port, | ||
| 22 | 'transport.tcp.port=' . $transport, | ||
| 23 | 'http.port=' . $http, | ||
| 24 | @{ $ts->conf } | ||
| 25 | ) | ||
| 26 | ); | ||
| 27 | } | ||
| 28 | |||
| 29 | 1 | ||
| 30 | |||
| 31 | # ABSTRACT: Client-specific backend for Search::Elasticsearch::TestServer | ||
| 32 | |||
| 33 | __END__ |