public class ZkSolrResourceLoader extends SolrResourceLoader
classLoader, log| Constructor and Description |
|---|
ZkSolrResourceLoader(String instanceDir,
String collection,
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 collection,
ZkController zooKeeperController) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCollectionZkPath() |
String |
getConfigDir() |
ZkController |
getZkController() |
String[] |
listConfigDir() |
InputStream |
openResource(String resource)
Opens any resource by its name.
|
findClass, findClass, getClassLoader, getCoreProperties, getDataDir, getInstanceDir, getLines, getLines, getLines, inform, inform, inform, locateSolrHome, newAdminHandlerInstance, newInstance, newInstance, newInstance, normalizeDir, openConfig, openSchemapublic ZkSolrResourceLoader(String instanceDir, String collection, ZkController zooKeeperController)
public ZkSolrResourceLoader(String instanceDir, String collection, 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[] listConfigDir()
listConfigDir in class SolrResourceLoaderpublic String getCollectionZkPath()
public ZkController getZkController()
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.