ExecutionStatistics Class

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

Implements

public final class ExecutionStatistics
implements JsonSerializable<ExecutionStatistics>

Description about the errors happen while performing migration validation.

Constructor Summary

Constructor Description
ExecutionStatistics()

Creates an instance of ExecutionStatistics class.

Method Summary

Modifier and Type Method and Description
Float cpuTimeMs()

Get the cpuTimeMs property: CPU Time in millisecond(s) for the query execution.

Float elapsedTimeMs()

Get the elapsedTimeMs property: Time taken in millisecond(s) for executing the query.

Long executionCount()

Get the executionCount property: No.

static ExecutionStatistics fromJson(JsonReader jsonReader)

Reads an instance of ExecutionStatistics from the JsonReader.

Boolean hasErrors()

Get the hasErrors property: Indicates whether the query resulted in an error.

List<String> sqlErrors()

Get the sqlErrors property: List of sql Errors.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Map<String,WaitStatistics> waitStats()

Get the waitStats property: Dictionary of sql query execution wait types and the respective statistics.

ExecutionStatistics withCpuTimeMs(Float cpuTimeMs)

Set the cpuTimeMs property: CPU Time in millisecond(s) for the query execution.

ExecutionStatistics withElapsedTimeMs(Float elapsedTimeMs)

Set the elapsedTimeMs property: Time taken in millisecond(s) for executing the query.

ExecutionStatistics withExecutionCount(Long executionCount)

Set the executionCount property: No.

ExecutionStatistics withHasErrors(Boolean hasErrors)

Set the hasErrors property: Indicates whether the query resulted in an error.

ExecutionStatistics withSqlErrors(List<String> sqlErrors)

Set the sqlErrors property: List of sql Errors.

ExecutionStatistics withWaitStats(Map<String,WaitStatistics> waitStats)

Set the waitStats property: Dictionary of sql query execution wait types and the respective statistics.

Methods inherited from java.lang.Object

Constructor Details

ExecutionStatistics

public ExecutionStatistics()

Creates an instance of ExecutionStatistics class.

Method Details

cpuTimeMs

public Float cpuTimeMs()

Get the cpuTimeMs property: CPU Time in millisecond(s) for the query execution.

Returns:

the cpuTimeMs value.

elapsedTimeMs

public Float elapsedTimeMs()

Get the elapsedTimeMs property: Time taken in millisecond(s) for executing the query.

Returns:

the elapsedTimeMs value.

executionCount

public Long executionCount()

Get the executionCount property: No. of query executions.

Returns:

the executionCount value.

fromJson

public static ExecutionStatistics fromJson(JsonReader jsonReader)

Reads an instance of ExecutionStatistics from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ExecutionStatistics 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 ExecutionStatistics.

hasErrors

public Boolean hasErrors()

Get the hasErrors property: Indicates whether the query resulted in an error.

Returns:

the hasErrors value.

sqlErrors

public List<String> sqlErrors()

Get the sqlErrors property: List of sql Errors.

Returns:

the sqlErrors value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

waitStats

public Map<String,WaitStatistics> waitStats()

Get the waitStats property: Dictionary of sql query execution wait types and the respective statistics.

Returns:

the waitStats value.

withCpuTimeMs

public ExecutionStatistics withCpuTimeMs(Float cpuTimeMs)

Set the cpuTimeMs property: CPU Time in millisecond(s) for the query execution.

Parameters:

cpuTimeMs - the cpuTimeMs value to set.

Returns:

the ExecutionStatistics object itself.

withElapsedTimeMs

public ExecutionStatistics withElapsedTimeMs(Float elapsedTimeMs)

Set the elapsedTimeMs property: Time taken in millisecond(s) for executing the query.

Parameters:

elapsedTimeMs - the elapsedTimeMs value to set.

Returns:

the ExecutionStatistics object itself.

withExecutionCount

public ExecutionStatistics withExecutionCount(Long executionCount)

Set the executionCount property: No. of query executions.

Parameters:

executionCount - the executionCount value to set.

Returns:

the ExecutionStatistics object itself.

withHasErrors

public ExecutionStatistics withHasErrors(Boolean hasErrors)

Set the hasErrors property: Indicates whether the query resulted in an error.

Parameters:

hasErrors - the hasErrors value to set.

Returns:

the ExecutionStatistics object itself.

withSqlErrors

public ExecutionStatistics withSqlErrors(List<String> sqlErrors)

Set the sqlErrors property: List of sql Errors.

Parameters:

sqlErrors - the sqlErrors value to set.

Returns:

the ExecutionStatistics object itself.

withWaitStats

public ExecutionStatistics withWaitStats(Map<String,WaitStatistics> waitStats)

Set the waitStats property: Dictionary of sql query execution wait types and the respective statistics.

Parameters:

waitStats - the waitStats value to set.

Returns:

the ExecutionStatistics object itself.

Applies to