public class ZkSolrResourceLoader extends SolrResourceLoader
Modifier and Type | Class and Description |
---|---|
static class |
ZkSolrResourceLoader.ZkByteArrayInputStream |
classLoader
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.
|
ZkSolrResourceLoader(Path instanceDir,
String configSet,
ZkController zooKeeperController) |
Modifier and Type | Method and Description |
---|---|
String |
getConfigDir() |
String |
getConfigSetZkPath() |
ZkController |
getZkController() |
ZkIndexSchemaReader |
getZkIndexSchemaReader() |
String[] |
listConfigDir() |
InputStream |
openResource(String resource)
Opens any resource by its name.
|
void |
setZkIndexSchemaReader(ZkIndexSchemaReader zkIndexSchemaReader) |
close, findClass, findClass, getClassLoader, getCoreProperties, getDataDir, getFilteredURLs, getInfoMBeans, getInstancePath, getLines, getLines, getLines, getManagedResourceRegistry, getURLs, getURLs, inform, inform, inform, locateSolrHome, newAdminHandlerInstance, newInstance, newInstance, newInstance, normalizeDir, openConfig, openSchema, persistConfLocally, resourceLocation
public ZkSolrResourceLoader(Path instanceDir, String configSet, ZkController zooKeeperController)
public 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 ResourceLoader
openResource
in class SolrResourceLoader
IOException
public String getConfigDir()
getConfigDir
in class SolrResourceLoader
public String[] listConfigDir()
listConfigDir
in class SolrResourceLoader
public String getConfigSetZkPath()
public ZkController getZkController()
public void setZkIndexSchemaReader(ZkIndexSchemaReader zkIndexSchemaReader)
public ZkIndexSchemaReader getZkIndexSchemaReader()
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.