public class ZkSolrResourceLoader extends SolrResourceLoader
Modifier and Type | Class and Description |
---|---|
static class |
ZkSolrResourceLoader.ZkByteArrayInputStream |
classLoader, log
Constructor and Description |
---|
ZkSolrResourceLoader(String 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(String 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, getInfoMBeans, getInstanceDir, getLines, getLines, getLines, getManagedResourceRegistry, inform, inform, inform, locateSolrHome, newAdminHandlerInstance, newInstance, newInstance, newInstance, normalizeDir, openConfig, openSchema, persistConfLocally, resolve
public ZkSolrResourceLoader(String instanceDir, String configSet, ZkController zooKeeperController)
public ZkSolrResourceLoader(String 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-2015 Apache Software Foundation. All Rights Reserved.