Class CoreStatus
java.lang.Object
org.apache.solr.api.JerseyResource
org.apache.solr.handler.admin.api.CoreAdminAPIBase
org.apache.solr.handler.admin.api.CoreStatus
- All Implemented Interfaces:
CoreApis.GetStatus
V2 APIs for getting the status of one or all cores.
This API (GET /v2/cores/coreName is analogous to the v1 /admin/cores?action=status command.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.solr.handler.admin.api.CoreAdminAPIBase
CoreAdminAPIBase.CoreAdminAPIBaseException -
Field Summary
Fields inherited from class org.apache.solr.handler.admin.api.CoreAdminAPIBase
coreAdminAsyncTracker, coreContainer, req, rspFields inherited from class org.apache.solr.api.JerseyResource
containerRequestContext -
Constructor Summary
ConstructorsConstructorDescriptionCoreStatus(CoreContainer coreContainer, CoreAdminHandler.CoreAdminAsyncTracker coreAdminAsyncTracker, SolrQueryRequest solrQueryRequest, SolrQueryResponse solrQueryResponse) -
Method Summary
Modifier and TypeMethodDescriptionstatic CoreStatusResponsefetchStatusInfo(CoreContainer coreContainer, String coreName, Boolean indexInfo) getAllCoreStatus(Boolean indexInfo) getCoreStatus(String coreName, Boolean indexInfo) getCoreStatus(CoreContainer cores, String cname, boolean isIndexInfoNeeded) Returns the core status for a particular core.Methods inherited from class org.apache.solr.handler.admin.api.CoreAdminAPIBase
handlePotentiallyAsynchronousTaskMethods inherited from class org.apache.solr.api.JerseyResource
ensureRequiredParameterProvided, ensureRequiredRequestBodyProvided, instantiateJerseyResponse, instantiateJerseyResponse
-
Constructor Details
-
CoreStatus
@Inject public CoreStatus(CoreContainer coreContainer, CoreAdminHandler.CoreAdminAsyncTracker coreAdminAsyncTracker, SolrQueryRequest solrQueryRequest, SolrQueryResponse solrQueryResponse)
-
-
Method Details
-
getAllCoreStatus
- Specified by:
getAllCoreStatusin interfaceCoreApis.GetStatus- Throws:
IOException
-
getCoreStatus
- Specified by:
getCoreStatusin interfaceCoreApis.GetStatus- Throws:
IOException
-
fetchStatusInfo
public static CoreStatusResponse fetchStatusInfo(CoreContainer coreContainer, String coreName, Boolean indexInfo) throws IOException - Throws:
IOException
-
getCoreStatus
public static CoreStatusResponse.SingleCoreData 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
-