@since solr 1.3
| 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 |
nothing calls this directly
no test coverage detected
searching dependent graphs…