DpcMigrationAttempt.State

public 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 methods

static DpcMigrationAttempt.State

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

static DpcMigrationAttempt.State[]

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

Enum Values

CONFIGURED_NETWORK_REMOVAL_ERROR

DpcMigrationAttempt.State DpcMigrationAttempt.State.CONFIGURED_NETWORK_REMOVAL_ERROR

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

DpcMigrationAttempt.State DpcMigrationAttempt.State.MIGRATED

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

MIGRATING

DpcMigrationAttempt.State DpcMigrationAttempt.State.MIGRATING

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

MIGRATION_FEATURE_NOT_ENABLED

DpcMigrationAttempt.State DpcMigrationAttempt.State.MIGRATION_FEATURE_NOT_ENABLED

The migration feature is not enabled in Android Device Policy.

MIGRATION_TIMED_OUT

DpcMigrationAttempt.State DpcMigrationAttempt.State.MIGRATION_TIMED_OUT

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

DpcMigrationAttempt.State DpcMigrationAttempt.State.MIGRATION_TOKEN_EXPIRED

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

DpcMigrationAttempt.State DpcMigrationAttempt.State.NETWORK_ERROR

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

POLICY_NOT_FOUND

DpcMigrationAttempt.State DpcMigrationAttempt.State.POLICY_NOT_FOUND

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

DpcMigrationAttempt.State DpcMigrationAttempt.State.PREPARING_FOR_MIGRATION

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

DpcMigrationAttempt.State DpcMigrationAttempt.State.RECEIVED_SERVER_RESPONSE

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

DpcMigrationAttempt.State DpcMigrationAttempt.State.SERVER_ERROR

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

STATE_UNSPECIFIED

DpcMigrationAttempt.State DpcMigrationAttempt.State.STATE_UNSPECIFIED

This value is not used.

UNKNOWN_ERROR

DpcMigrationAttempt.State DpcMigrationAttempt.State.UNKNOWN_ERROR

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

Public methods

valueOf

public static DpcMigrationAttempt.State valueOf(String name)

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

public static DpcMigrationAttempt.State[] values()

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
DpcMigrationAttempt.State[]

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