MCPcopy Create free account
hub / github.com/apache/solr / runImpl

Method runImpl

solr/core/src/java/org/apache/solr/cli/VersionTool.java:51–63  ·  view source on GitHub ↗
(CommandLine cli)

Source from the content-addressed store, hash-verified

49 }
50
51 @Override
52 public void runImpl(CommandLine cli) throws Exception {
53 echo("Client version: " + SolrVersion.LATEST);
54
55 if (CLIUtils.hasConnectionOption(cli)) {
56 String solrUrl = CLIUtils.normalizeSolrUrl(cli);
57 String credentials = cli.getOptionValue(CommonCLIOptions.CREDENTIALS_OPTION);
58 try (var solrClient = CLIUtils.getSolrClient(solrUrl, credentials)) {
59 SystemInfoResponse sysResponse = new SystemInfoRequest().process(solrClient);
60 echo("Server version: " + sysResponse.getSolrImplVersion());
61 }
62 }
63 }
64}

Callers

nothing calls this directly

Calls 6

hasConnectionOptionMethod · 0.95
normalizeSolrUrlMethod · 0.95
getSolrClientMethod · 0.95
getSolrImplVersionMethod · 0.95
echoMethod · 0.80
processMethod · 0.65

Tested by

no test coverage detected