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

Method runImpl

solr/core/src/java/org/apache/solr/cli/CreateTool.java:123–132  ·  view source on GitHub ↗
(CommandLine cli)

Source from the content-addressed store, hash-verified

121 .addOptionGroup(getConnectionOptions());
122 }
123
124 @Override
125 public void runImpl(CommandLine cli) throws Exception {
126 try (var solrClient = CLIUtils.getSolrClient(cli)) {
127 if (CLIUtils.isCloudMode(solrClient)) {
128 createCollection(cli);
129 } else {
130 createCore(cli, solrClient);
131 }
132 }
133 }
134
135 protected void createCore(CommandLine cli, SolrClient solrClient) throws Exception {

Callers

nothing calls this directly

Calls 4

getSolrClientMethod · 0.95
isCloudModeMethod · 0.95
createCollectionMethod · 0.95
createCoreMethod · 0.95

Tested by

no test coverage detected