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

Method isCloudMode

solr/core/src/java/org/apache/solr/cli/CLIUtils.java:428–431  ·  view source on GitHub ↗
(SolrClient solrClient)

Source from the content-addressed store, hash-verified

426 final boolean hasName = coreStatus != null && coreStatus.name != null;
427 exists = hasName || initFailureForCore != null;
428 wait = hasName && initFailureForCore == null && Boolean.TRUE.equals(coreStatus.isLoading);
429 } while (wait && System.nanoTime() - startWaitAt < MAX_WAIT_FOR_CORE_LOAD_NANOS);
430 } catch (Exception exc) {
431 // just ignore it since we're only interested in a positive result here
432 }
433 return exists;
434 }

Callers 3

runningSolrIsCloudMethod · 0.95
runImplMethod · 0.95
runImplMethod · 0.95

Calls 3

getModeMethod · 0.95
processMethod · 0.65
equalsMethod · 0.45

Tested by

no test coverage detected