DpcMigrationAttempt.State

enum DpcMigrationAttempt.State


The state of a migration attempt. All states other than STATE_UNSPECIFIED, PREPARING_FOR_MIGRATION, RECEIVED_SERVER_RESPONSE and READY_FOR_MIGRATION are terminal states.

Summary

Enum Values

CONFIGURED_NETWORK_REMOVAL_ERROR

Migration failed because a network configured by source DPC could not be removed.

MIGRATED

Migration is complete and Android Management API is managing the device or profile.

MIGRATING

Android Device Policy is migrating.

MIGRATION_FEATURE_NOT_ENABLED

The migration feature is not enabled in Android Device Policy.

MIGRATION_TIMED_OUT

The process of migration did not complete in time.

MIGRATION_TOKEN_EXPIRED

The migration token expired.

NETWORK_ERROR

Migration failed because of a network error and can be retried with the same or a different migration token.

POLICY_NOT_FOUND

The policy for the device was not found on the server.

PREPARING_FOR_MIGRATION

Android Device Policy is working with the server to prepare for migration.

RECEIVED_SERVER_RESPONSE

Android Device Policy has received a response from the server in response to a migration request.

SERVER_ERROR

Migration failed because of a server error and can be retried.

STATE_UNSPECIFIED

This value is not used.

UNKNOWN_ERROR

Migration failed for an unknown reason and can be retried.

Public functions

java-static DpcMigrationAttempt.State!
valueOf(name: String!)

Returns the enum constant of this type with the specified name.

java-static Array<DpcMigrationAttempt.State!>!

Returns an array containing the constants of this enum type, in the order they're declared.

Enum Values

CONFIGURED_NETWORK_REMOVAL_ERROR

val DpcMigrationAttempt.State.CONFIGURED_NETWORK_REMOVAL_ERRORDpcMigrationAttempt.State

Migration failed because a network configured by source DPC could not be removed. Since removal of the networks is not an atomic operation, some networks might have already been removed.

MIGRATED

val DpcMigrationAttempt.State.MIGRATEDDpcMigrationAttempt.State

Migration is complete and Android Management API is managing the device or profile.

MIGRATING

val DpcMigrationAttempt.State.MIGRATINGDpcMigrationAttempt.State

Android Device Policy is migrating. Normally the state will automatically advance to MIGRATED.

MIGRATION_FEATURE_NOT_ENABLED

val DpcMigrationAttempt.State.MIGRATION_FEATURE_NOT_ENABLEDDpcMigrationAttempt.State

The migration feature is not enabled in Android Device Policy.

MIGRATION_TIMED_OUT

val DpcMigrationAttempt.State.MIGRATION_TIMED_OUTDpcMigrationAttempt.State

The process of migration did not complete in time. Migration failed and can be retried with the same or a different migration token.

MIGRATION_TOKEN_EXPIRED

val DpcMigrationAttempt.State.MIGRATION_TOKEN_EXPIREDDpcMigrationAttempt.State

The migration token expired. Migration failed and can be retried with a different migration token. This will be checked based on the device time anyway when migration is initiated, but if device time is wrong or in case of other corner cases that check might pass, but then the server check for expiry might fail, in which case we'll end up here.

NETWORK_ERROR

val DpcMigrationAttempt.State.NETWORK_ERRORDpcMigrationAttempt.State

Migration failed because of a network error and can be retried with the same or a different migration token.

POLICY_NOT_FOUND

val DpcMigrationAttempt.State.POLICY_NOT_FOUNDDpcMigrationAttempt.State

The policy for the device was not found on the server. Migration failed and can be retried with a different migration token. The existence of the policy will be checked when the migration token is created, so this is not likely to happen. But it could, for example, if the EMM deletes the policy in the meanwhile.

PREPARING_FOR_MIGRATION

val DpcMigrationAttempt.State.PREPARING_FOR_MIGRATIONDpcMigrationAttempt.State

Android Device Policy is working with the server to prepare for migration. Normally the state will automatically advance to RECEIVED_SERVER_RESPONSE.

RECEIVED_SERVER_RESPONSE

val DpcMigrationAttempt.State.RECEIVED_SERVER_RESPONSEDpcMigrationAttempt.State

Android Device Policy has received a response from the server in response to a migration request. Normally the state will automatically advance to READY_FOR_MIGRATION.

SERVER_ERROR

val DpcMigrationAttempt.State.SERVER_ERRORDpcMigrationAttempt.State

Migration failed because of a server error and can be retried. It is possible that using a different migration token might help.

STATE_UNSPECIFIED

val DpcMigrationAttempt.State.STATE_UNSPECIFIEDDpcMigrationAttempt.State

This value is not used.

UNKNOWN_ERROR

val DpcMigrationAttempt.State.UNKNOWN_ERRORDpcMigrationAttempt.State

Migration failed for an unknown reason and can be retried. It is possible that a different migration token might help.

Public functions

valueOf

java-static fun valueOf(name: String!): DpcMigrationAttempt.State!

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Returns
DpcMigrationAttempt.State!

the enum constant with the specified name

Throws
java.lang.IllegalArgumentException

if this enum type has no constant with the specified name

values

java-static fun values(): Array<DpcMigrationAttempt.State!>!

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.

Returns
Array<DpcMigrationAttempt.State!>!

an array containing the constants of this enum type, in the order they're declared