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

Method runImpl

solr/core/src/java/org/apache/solr/cli/DeleteTool.java:93–102  ·  view source on GitHub ↗
(CommandLine cli)

Source from the content-addressed store, hash-verified

91 }
92
93 @Override
94 public void runImpl(CommandLine cli) throws Exception {
95 try (var solrClient = CLIUtils.getSolrClient(cli)) {
96 if (CLIUtils.isCloudMode(solrClient)) {
97 deleteCollection(cli);
98 } else {
99 deleteCore(cli, solrClient);
100 }
101 }
102 }
103
104 protected void deleteCollection(CommandLine cli) throws Exception {
105 var builder =

Callers

nothing calls this directly

Calls 4

getSolrClientMethod · 0.95
isCloudModeMethod · 0.95
deleteCollectionMethod · 0.95
deleteCoreMethod · 0.95

Tested by

no test coverage detected