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.
|
close, findClass, findClass, getClassLoader, getCoreProperties, getDataDir, getInfoMBeans, getInstanceDir, getLines, getLines, getLines, getManagedResourceRegistry, inform, inform, inform, locateSolrHome, newAdminHandlerInstance, newInstance, newInstance, newInstance, normalizeDir, openConfig, openSchema
public 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 ResourceLoader
openResource
in class SolrResourceLoader
IOException
public String getConfigDir()
getConfigDir
in class SolrResourceLoader
public String[] listConfigDir()
listConfigDir
in class SolrResourceLoader
public String getCollectionZkPath()
public ZkController getZkController()
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.