Class SearchIndexerStatus
java.lang.Object
com.azure.search.documents.indexes.models.SearchIndexerStatus
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SearchIndexerStatus>
public final class SearchIndexerStatus
extends Object
implements com.azure.json.JsonSerializable<SearchIndexerStatus>
Represents the current status and execution history of an indexer.
-
Constructor Summary
ConstructorsConstructorDescriptionSearchIndexerStatus(IndexerStatus status, List<IndexerExecutionResult> executionHistory, SearchIndexerLimits limits) Creates an instance of SearchIndexerStatus class. -
Method Summary
Modifier and TypeMethodDescriptionstatic SearchIndexerStatusfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SearchIndexerStatus from the JsonReader.Get the executionHistory property: History of the recent indexer executions, sorted in reverse chronological order.Get the lastResult property: The result of the most recent or an in-progress indexer execution.Get the limits property: The execution limits for the indexer.Get the status property: Overall indexer status.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
SearchIndexerStatus
public SearchIndexerStatus(IndexerStatus status, List<IndexerExecutionResult> executionHistory, SearchIndexerLimits limits) Creates an instance of SearchIndexerStatus class.- Parameters:
status- the status value to set.executionHistory- the executionHistory value to set.limits- the limits value to set.
-
-
Method Details
-
getStatus
Get the status property: Overall indexer status.- Returns:
- the status value.
-
getLastResult
Get the lastResult property: The result of the most recent or an in-progress indexer execution.- Returns:
- the lastResult value.
-
getExecutionHistory
Get the executionHistory property: History of the recent indexer executions, sorted in reverse chronological order.- Returns:
- the executionHistory value.
-
getLimits
Get the limits property: The execution limits for the indexer.- Returns:
- the limits value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<SearchIndexerStatus>- Throws:
IOException
-
fromJson
Reads an instance of SearchIndexerStatus from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of SearchIndexerStatus if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the SearchIndexerStatus.
-