public class ZkSolrResourceLoader extends SolrResourceLoader
| Modifier and Type | Class and Description |
|---|---|
static class |
ZkSolrResourceLoader.ZkByteArrayInputStream |
classLoader, USER_FILES_DIRECTORY| Constructor and Description |
|---|
ZkSolrResourceLoader(Path instanceDir,
String configSet,
ClassLoader parent,
Properties coreProperties,
ZkController zooKeeperController)
This loader will first attempt to load resources from ZooKeeper, but if not found
will delegate to the context classloader when possible,
otherwise it will attempt to resolve resources using any jar files found in
the "lib/" directory in the specified instance directory.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getConfigDir() |
String |
getConfigSetZkPath() |
ZkController |
getZkController() |
ZkIndexSchemaReader |
getZkIndexSchemaReader() |
InputStream |
openResource(String resource)
Opens any resource by its name.
|
void |
setZkIndexSchemaReader(ZkIndexSchemaReader zkIndexSchemaReader) |
addToCoreAware, addToInfoBeans, addToResourceLoaderAware, assertAwareCompatibility, close, findClass, findClass, getClassLoader, getCoreProperties, getDataDir, getFilteredURLs, getInfoMBeans, getInstancePath, getLines, getLines, getLines, getManagedResourceRegistry, getURLs, getURLs, inform, inform, inform, listConfigDir, locateSolrHome, newInstance, newInstance, newInstance, normalizeDir, openConfig, openSchema, persistConfLocally, resourceLocationpublic ZkSolrResourceLoader(Path instanceDir, String configSet, ClassLoader parent, Properties coreProperties, ZkController zooKeeperController)
This loader will first attempt to load resources from ZooKeeper, but if not found will delegate to the context classloader when possible, otherwise it will attempt to resolve resources using any jar files found in the "lib/" directory in the specified instance directory.
public InputStream openResource(String resource) throws IOException
openResource in interface ResourceLoaderopenResource in class SolrResourceLoaderIOExceptionpublic String getConfigDir()
getConfigDir in class SolrResourceLoaderpublic String getConfigSetZkPath()
public ZkController getZkController()
public void setZkIndexSchemaReader(ZkIndexSchemaReader zkIndexSchemaReader)
public ZkIndexSchemaReader getZkIndexSchemaReader()
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.