Class SolrCommandBackupResult
- java.lang.Object
-
- org.alfresco.repo.search.impl.lucene.AbstractJSONAPIResult
-
- org.alfresco.repo.search.impl.lucene.SolrCommandBackupResult
-
- All Implemented Interfaces:
JSONAPIResult
public class SolrCommandBackupResult extends AbstractJSONAPIResult
The results of executing a SOLR BACKUP command- Since:
- 6.2
- Author:
- aborroy
-
-
Field Summary
-
Fields inherited from class org.alfresco.repo.search.impl.lucene.AbstractJSONAPIResult
cores, coresInfo, queryTime, status
-
-
Constructor Summary
Constructors Constructor Description SolrCommandBackupResult(org.json.JSONObject json)Parses the JSON to create a new result object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.LonggetQueryTime()Time to perform the requested action or command in SOLRjava.lang.LonggetStatus()HTTP Response code But for 200, that is being returned as 0protected voidprocessCoresInfoJson(org.json.JSONObject json)Parses the JSON to set this Java Object values related to Core Information-
Methods inherited from class org.alfresco.repo.search.impl.lucene.AbstractJSONAPIResult
getCores, getCoresInfo, getPropertyValueMap, processJson
-
-
-
-
Method Detail
-
processCoresInfoJson
protected void processCoresInfoJson(org.json.JSONObject json) throws org.json.JSONExceptionDescription copied from class:AbstractJSONAPIResultParses the JSON to set this Java Object values related to Core Information- Specified by:
processCoresInfoJsonin classAbstractJSONAPIResult- Parameters:
json- JSONObject returned by SOLR API- Throws:
org.json.JSONException
-
getStatus
public java.lang.Long getStatus()
Description copied from interface:JSONAPIResultHTTP Response code But for 200, that is being returned as 0- Specified by:
getStatusin interfaceJSONAPIResult- Overrides:
getStatusin classAbstractJSONAPIResult- Returns:
- Number representing an HTTP Status
-
getQueryTime
public java.lang.Long getQueryTime()
Description copied from interface:JSONAPIResultTime to perform the requested action or command in SOLR- Specified by:
getQueryTimein interfaceJSONAPIResult- Overrides:
getQueryTimein classAbstractJSONAPIResult- Returns:
- Number of milliseconds
-
-