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

Class CoreContainer

solr/core/src/java/org/apache/solr/core/CoreContainer.java:175–2544  ·  view source on GitHub ↗

@since solr 1.3

Source from the content-addressed store, hash-verified

173
174 {
175 // Declared up top to ensure this is present before anything else.
176 // note: will not be re-added if already there
177 ExecutorUtil.addThreadLocalProvider(SolrRequestInfo.getInheritableThreadLocalProvider());
178 }
179
180 final SolrCores solrCores;
181
182 public Executor getIndexSearcherExecutor() {
183 return indexSearcherExecutor;
184 }
185
186 public ExecutorService getIndexFingerprintExecutor() {
187 return indexFingerprintExecutor;
188 }
189
190 public static class CoreLoadFailure {
191
192 public final CoreDescriptor cd;
193 public final Exception exception;
194
195 public CoreLoadFailure(CoreDescriptor cd, Exception loadFailure) {
196 this.cd = new CoreDescriptor(cd.getName(), cd);
197 this.exception = loadFailure;
198 }
199 }
200
201 private volatile PluginBag<SolrRequestHandler> containerHandlers =
202 new PluginBag<>(SolrRequestHandler.class, null);
203
204 private volatile ApplicationHandler jerseyAppHandler;
205 private volatile JerseyAppHandlerCache appHandlersByConfigSetId;
206
207 public ApplicationHandler getJerseyApplicationHandler() {
208 return jerseyAppHandler;
209 }
210
211 public JerseyAppHandlerCache getJerseyAppHandlerCache() {
212 return appHandlersByConfigSetId;
213 }
214
215 /** Minimize exposure to CoreContainer. Mostly only ZK interface is required */
216 public final Supplier<SolrZkClient> zkClientSupplier = () -> getZkController().getZkClient();
217
218 private ContainerPluginsRegistry containerPluginsRegistry;
219
220 protected final Map<String, CoreLoadFailure> coreInitFailures = new ConcurrentHashMap<>();
221
222 protected volatile CoreAdminHandler coreAdminHandler = null;
223 protected volatile CollectionsHandler collectionsHandler = null;
224 protected volatile HealthCheckHandler healthCheckHandler = null;
225
226 private volatile InfoHandler infoHandler;
227 protected volatile ConfigSetsHandler configSetsHandler = null;
228
229 private volatile PKIAuthenticationPlugin pkiAuthenticationSecurityBuilder;
230
231 protected volatile Properties containerProperties;
232

Callers

nothing calls this directly

Calls 12

getZkControllerMethod · 0.95
getUniqueMetricTagMethod · 0.95
runAsyncMethod · 0.95
getOverseerMethod · 0.80
debugMethod · 0.80
isClosedMethod · 0.65
lookupMethod · 0.45
getZkClientMethod · 0.45
getPropertyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…