Package org.apache.solr.handler.admin
Enum CoreAdminOperation
- java.lang.Object
-
- java.lang.Enum<CoreAdminOperation>
-
- org.apache.solr.handler.admin.CoreAdminOperation
-
- All Implemented Interfaces:
Serializable
,Comparable<CoreAdminOperation>
,CoreAdminHandler.CoreAdminOp
public enum CoreAdminOperation extends Enum<CoreAdminOperation> implements CoreAdminHandler.CoreAdminOp
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(CoreAdminHandler.CallInfo it)
static org.apache.solr.common.util.NamedList<Object>
getCoreStatus(CoreContainer cores, String cname, boolean isIndexInfoNeeded)
Returns the core status for a particular core.boolean
isExpensive()
static CoreAdminOperation
valueOf(String name)
Returns the enum constant of this type with the specified name.static CoreAdminOperation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CREATE_OP
public static final CoreAdminOperation CREATE_OP
-
UNLOAD_OP
public static final CoreAdminOperation UNLOAD_OP
-
RELOAD_OP
public static final CoreAdminOperation RELOAD_OP
-
STATUS_OP
public static final CoreAdminOperation STATUS_OP
-
SWAP_OP
public static final CoreAdminOperation SWAP_OP
-
RENAME_OP
public static final CoreAdminOperation RENAME_OP
-
MERGEINDEXES_OP
public static final CoreAdminOperation MERGEINDEXES_OP
-
SPLIT_OP
public static final CoreAdminOperation SPLIT_OP
-
PREPRECOVERY_OP
public static final CoreAdminOperation PREPRECOVERY_OP
-
REQUESTRECOVERY_OP
public static final CoreAdminOperation REQUESTRECOVERY_OP
-
REQUESTSYNCSHARD_OP
public static final CoreAdminOperation REQUESTSYNCSHARD_OP
-
REQUESTBUFFERUPDATES_OP
public static final CoreAdminOperation REQUESTBUFFERUPDATES_OP
-
REQUESTAPPLYUPDATES_OP
public static final CoreAdminOperation REQUESTAPPLYUPDATES_OP
-
REQUESTSTATUS_OP
public static final CoreAdminOperation REQUESTSTATUS_OP
-
OVERSEEROP_OP
public static final CoreAdminOperation OVERSEEROP_OP
-
REJOINLEADERELECTION_OP
public static final CoreAdminOperation REJOINLEADERELECTION_OP
-
BACKUPCORE_OP
public static final CoreAdminOperation BACKUPCORE_OP
-
RESTORECORE_OP
public static final CoreAdminOperation RESTORECORE_OP
-
INSTALLCOREDATA_OP
public static final CoreAdminOperation INSTALLCOREDATA_OP
-
CREATESNAPSHOT_OP
public static final CoreAdminOperation CREATESNAPSHOT_OP
-
DELETESNAPSHOT_OP
public static final CoreAdminOperation DELETESNAPSHOT_OP
-
LISTSNAPSHOTS_OP
public static final CoreAdminOperation LISTSNAPSHOTS_OP
-
-
Method Detail
-
values
public static CoreAdminOperation[] 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 (CoreAdminOperation c : CoreAdminOperation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CoreAdminOperation 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
-
isExpensive
public boolean isExpensive()
- Specified by:
isExpensive
in interfaceCoreAdminHandler.CoreAdminOp
-
getCoreStatus
public static org.apache.solr.common.util.NamedList<Object> getCoreStatus(CoreContainer cores, String cname, boolean isIndexInfoNeeded) throws IOException
Returns the core status for a particular core.- Parameters:
cores
- - the enclosing core containercname
- - the core to returnisIndexInfoNeeded
- - add what may be expensive index information. NOT returned if the core is not loaded- Returns:
- - a named list of key/value pairs from the core.
- Throws:
IOException
- - LukeRequestHandler can throw an I/O exception
-
execute
public void execute(CoreAdminHandler.CallInfo it) throws Exception
- Specified by:
execute
in interfaceCoreAdminHandler.CoreAdminOp
- Parameters:
it
- request/response objectIf the request is invalid throw a SolrException with SolrException.ErrorCode.BAD_REQUEST ( 400 ) If the execution of the command fails throw a SolrException with SolrException.ErrorCode.SERVER_ERROR ( 500 )
Any non-SolrException's are wrapped at a higher level as a SolrException with SolrException.ErrorCode.SERVER_ERROR.
- Throws:
Exception
-
-