Enum CoreApiMapping.Meta
- java.lang.Object
-
- java.lang.Enum<CoreApiMapping.Meta>
-
- org.apache.solr.client.solrj.request.CoreApiMapping.Meta
-
- All Implemented Interfaces:
Serializable
,Comparable<CoreApiMapping.Meta>
,ApiMapping.CommandMeta
- Enclosing class:
- CoreApiMapping
public static enum CoreApiMapping.Meta extends Enum<CoreApiMapping.Meta> implements ApiMapping.CommandMeta
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MERGEINDEXES
PREPRECOVERY
RELOAD
RENAME
REQUESTAPPLYUPDATES
REQUESTBUFFERUPDATES
REQUESTRECOVERY
REQUESTSTATUS
REQUESTSYNCSHARD
SPLIT
SWAP
UNLOAD
-
Field Summary
Fields Modifier and Type Field Description CoreAdminParams.CoreAdminAction
action
String
commandName
CoreApiMapping.EndPoint
endPoint
SolrRequest.METHOD
method
Map<String,String>
paramstoAttr
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiMapping.V2EndPoint
getEndPoint()
SolrRequest.METHOD
getHttpMethod()
the http method supported by this commandString
getName()
String
getParamSubstitute(String param)
Given a v1 param, return the v2 attribute (possibly a dotted path).static CoreApiMapping.Meta
valueOf(String name)
Returns the enum constant of this type with the specified name.static CoreApiMapping.Meta[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface org.apache.solr.client.solrj.request.ApiMapping.CommandMeta
getParamNamesIterator
-
-
-
-
Enum Constant Detail
-
UNLOAD
public static final CoreApiMapping.Meta UNLOAD
-
RELOAD
public static final CoreApiMapping.Meta RELOAD
-
SWAP
public static final CoreApiMapping.Meta SWAP
-
RENAME
public static final CoreApiMapping.Meta RENAME
-
MERGEINDEXES
public static final CoreApiMapping.Meta MERGEINDEXES
-
SPLIT
public static final CoreApiMapping.Meta SPLIT
-
PREPRECOVERY
public static final CoreApiMapping.Meta PREPRECOVERY
-
REQUESTRECOVERY
public static final CoreApiMapping.Meta REQUESTRECOVERY
-
REQUESTSYNCSHARD
public static final CoreApiMapping.Meta REQUESTSYNCSHARD
-
REQUESTBUFFERUPDATES
public static final CoreApiMapping.Meta REQUESTBUFFERUPDATES
-
REQUESTAPPLYUPDATES
public static final CoreApiMapping.Meta REQUESTAPPLYUPDATES
-
REQUESTSTATUS
public static final CoreApiMapping.Meta REQUESTSTATUS
-
-
Field Detail
-
commandName
public final String commandName
-
endPoint
public final CoreApiMapping.EndPoint endPoint
-
method
public final SolrRequest.METHOD method
-
action
public final CoreAdminParams.CoreAdminAction action
-
-
Method Detail
-
values
public static CoreApiMapping.Meta[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CoreApiMapping.Meta c : CoreApiMapping.Meta.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CoreApiMapping.Meta valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getName
public String getName()
- Specified by:
getName
in interfaceApiMapping.CommandMeta
-
getHttpMethod
public SolrRequest.METHOD getHttpMethod()
Description copied from interface:ApiMapping.CommandMeta
the http method supported by this command- Specified by:
getHttpMethod
in interfaceApiMapping.CommandMeta
-
getEndPoint
public ApiMapping.V2EndPoint getEndPoint()
- Specified by:
getEndPoint
in interfaceApiMapping.CommandMeta
-
getParamSubstitute
public String getParamSubstitute(String param)
Description copied from interface:ApiMapping.CommandMeta
Given a v1 param, return the v2 attribute (possibly a dotted path).- Specified by:
getParamSubstitute
in interfaceApiMapping.CommandMeta
-
-