Package org.apache.solr.cloud
Class ConfigSetCmds
- java.lang.Object
-
- org.apache.solr.cloud.ConfigSetCmds
-
public class ConfigSetCmds extends Object
This class contains methods dealing with Config Sets and called for Config Set API execution, called from theOverseerConfigSetMessageHandler
or fromDistributedCollectionConfigSetCommandRunner.runConfigSetCommand(org.apache.solr.response.SolrQueryResponse, org.apache.solr.handler.admin.ConfigSetsHandler.ConfigSetOperation, java.util.Map<java.lang.String, java.lang.Object>, long)
depending on whether Collection and Config Set APIs are Overseer based or distributed.
-
-
Field Summary
Fields Modifier and Type Field Description static String
BASE_CONFIGSET
Name of the ConfigSet to copy from for CREATEstatic String
CONFIG_SET_PROPERTY_PREFIX
Prefix for properties that should be applied to the ConfigSet for CREATE
-
Constructor Summary
Constructors Constructor Description ConfigSetCmds()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
createConfigSet(ZkNodeProps message, CoreContainer coreContainer)
static void
deleteConfigSet(ZkNodeProps message, CoreContainer coreContainer)
static String
getBaseConfigSetName(ConfigSetParams.ConfigSetAction action, String baseConfigSetName)
-
-
-
Field Detail
-
BASE_CONFIGSET
public static final String BASE_CONFIGSET
Name of the ConfigSet to copy from for CREATE- See Also:
- Constant Field Values
-
CONFIG_SET_PROPERTY_PREFIX
public static final String CONFIG_SET_PROPERTY_PREFIX
Prefix for properties that should be applied to the ConfigSet for CREATE- See Also:
- Constant Field Values
-
-
Method Detail
-
getBaseConfigSetName
public static String getBaseConfigSetName(ConfigSetParams.ConfigSetAction action, String baseConfigSetName)
-
createConfigSet
public static void createConfigSet(ZkNodeProps message, CoreContainer coreContainer) throws IOException
- Throws:
IOException
-
deleteConfigSet
public static void deleteConfigSet(ZkNodeProps message, CoreContainer coreContainer) throws IOException
- Throws:
IOException
-
-