MongoMigrationProgressDetails Class

  • java.lang.Object
    • com.azure.resourcemanager.datamigration.models.MongoMigrationProgressDetails

Implements

public final class MongoMigrationProgressDetails
implements JsonSerializable<MongoMigrationProgressDetails>

Detailed status of collection migration.

Constructor Summary

Constructor Description
MongoMigrationProgressDetails()

Creates an instance of MongoMigrationProgressDetails class.

Method Summary

Modifier and Type Method and Description
Integer durationInSeconds()

Get the durationInSeconds property: Migration duration.

static MongoMigrationProgressDetails fromJson(JsonReader jsonReader)

Reads an instance of MongoMigrationProgressDetails from the JsonReader.

String migrationError()

Get the migrationError property: Migration Error.

MongoMigrationStatus migrationStatus()

Get the migrationStatus property: Migration Status.

Long processedDocumentCount()

Get the processedDocumentCount property: Processed Document Count.

Long sourceDocumentCount()

Get the sourceDocumentCount property: Source Document Count.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

MongoMigrationProgressDetails

public MongoMigrationProgressDetails()

Creates an instance of MongoMigrationProgressDetails class.

Method Details

durationInSeconds

public Integer durationInSeconds()

Get the durationInSeconds property: Migration duration.

Returns:

the durationInSeconds value.

fromJson

public static MongoMigrationProgressDetails fromJson(JsonReader jsonReader)

Reads an instance of MongoMigrationProgressDetails from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MongoMigrationProgressDetails if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the MongoMigrationProgressDetails.

migrationError

public String migrationError()

Get the migrationError property: Migration Error.

Returns:

the migrationError value.

migrationStatus

public MongoMigrationStatus migrationStatus()

Get the migrationStatus property: Migration Status.

Returns:

the migrationStatus value.

processedDocumentCount

public Long processedDocumentCount()

Get the processedDocumentCount property: Processed Document Count.

Returns:

the processedDocumentCount value.

sourceDocumentCount

public Long sourceDocumentCount()

Get the sourceDocumentCount property: Source Document Count.

Returns:

the sourceDocumentCount value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to