public class SimpleCoreDescriptor extends Object implements SolrCoreDescriptor
Path.| Constructor and Description |
|---|
SimpleCoreDescriptor(String coreName,
Path coreBundle) |
| Modifier and Type | Method and Description |
|---|---|
static SolrCoreDescriptor |
createFromResource(String coreName,
String resource,
Class<?> clazz)
Create a
SolrCoreDescriptor from the provided classpath-resource. |
static SolrCoreDescriptor |
createFromResource(String coreName,
String resource,
ClassLoader classLoader)
Create a
SolrCoreDescriptor from the provided classpath-resource. |
static SolrCoreDescriptor |
createFromResource(String coreName,
String resource,
Object contextObject)
Create a
SolrCoreDescriptor from the provided classpath-resource. |
String |
getCoreName() |
int |
getNumShards() |
int |
getReplicationFactor() |
void |
initCoreDirectory(Path coreDir,
Path sharedLibDir) |
SimpleCoreDescriptor |
setNumShards(int numShards) |
SimpleCoreDescriptor |
setReplicationFactor(int replicationFactor) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonCoreCreated, onCoreStarted, unpackSolrCoreDir, unpackSolrCoreZip, unpackSolrCoreZippublic String getCoreName()
getCoreName in interface SolrCoreDescriptorpublic void initCoreDirectory(Path coreDir, Path sharedLibDir) throws IOException
initCoreDirectory in interface SolrCoreDescriptorIOExceptionpublic int getNumShards()
getNumShards in interface SolrCoreDescriptorpublic int getReplicationFactor()
getReplicationFactor in interface SolrCoreDescriptorpublic SimpleCoreDescriptor setNumShards(int numShards)
public SimpleCoreDescriptor setReplicationFactor(int replicationFactor)
public static SolrCoreDescriptor createFromResource(String coreName, String resource, Object contextObject)
SolrCoreDescriptor from the provided classpath-resource.coreName - the core-nameresource - the solr-core bundle on the classpathcontextObject - the object to retrieve the resource fromObject.getClass()public static SolrCoreDescriptor createFromResource(String coreName, String resource, Class<?> clazz)
SolrCoreDescriptor from the provided classpath-resource.coreName - the core-nameresource - the solr-core bundle on the classpathclazz - the Class to retrieve the resource fromClass.getResource(String)public static SolrCoreDescriptor createFromResource(String coreName, String resource, ClassLoader classLoader)
SolrCoreDescriptor from the provided classpath-resource.coreName - the core-nameresource - the solr-core bundle on the classpathclassLoader - the ClassLoader to load the resourceClassLoader.getResource(String)Copyright © 2017 redlink GmbH. All rights reserved.