public enum AutoUpdateStatus extends Enum<AutoUpdateStatus>
Use the return status code to determine whether any further actions are necessary. For example: if the return code is AUTO_UPDATE_SUCCESS nothing else needs to be done as the update completed successfully. If AUTO_UPDATE_NOT_NEEDED was returned and you know the next update date is today, then retry update in six hours. All other status codes will indicate a problem with the update. AUTO_UPDATE_ERR_429_TOO_MANY_ATTEMPTS for instance means that your licence key has been used too many times in the last half hour interval.
For more details please see: licence keys and automatic updates general information.
| Enum Constant and Description |
|---|
AUTO_UPDATE_ERR_403_FORBIDDEN
51Degrees server responded with 403 meaning key is blacklisted.
|
AUTO_UPDATE_ERR_429_TOO_MANY_ATTEMPTS
51Degrees server responded with 429: too many attempts.
|
AUTO_UPDATE_ERR_MD5_VALIDATION_FAILED
MD5 validation failed.
|
AUTO_UPDATE_ERR_READING_STREAM
Used when IO operations with input or output stream failed.
|
AUTO_UPDATE_HTTPS_ERR
HTTPS connection could not be established.
|
AUTO_UPDATE_IN_PROGRESS
Update currently under way.
|
AUTO_UPDATE_MASTER_FILE_CANT_RENAME
Path to master file is directory not file.
|
AUTO_UPDATE_NEW_FILE_CANT_RENAME
The new data file can't be renamed to replace the previous one.
|
AUTO_UPDATE_NOT_NEEDED
No need to perform update.
|
AUTO_UPDATE_SUCCESS
Update completed successfully.
|
| Modifier and Type | Method and Description |
|---|---|
static AutoUpdateStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AutoUpdateStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AutoUpdateStatus AUTO_UPDATE_SUCCESS
public static final AutoUpdateStatus AUTO_UPDATE_HTTPS_ERR
public static final AutoUpdateStatus AUTO_UPDATE_NOT_NEEDED
public static final AutoUpdateStatus AUTO_UPDATE_IN_PROGRESS
public static final AutoUpdateStatus AUTO_UPDATE_MASTER_FILE_CANT_RENAME
public static final AutoUpdateStatus AUTO_UPDATE_ERR_429_TOO_MANY_ATTEMPTS
public static final AutoUpdateStatus AUTO_UPDATE_ERR_403_FORBIDDEN
public static final AutoUpdateStatus AUTO_UPDATE_ERR_READING_STREAM
public static final AutoUpdateStatus AUTO_UPDATE_ERR_MD5_VALIDATION_FAILED
public static final AutoUpdateStatus AUTO_UPDATE_NEW_FILE_CANT_RENAME
public static AutoUpdateStatus[] values()
for (AutoUpdateStatus c : AutoUpdateStatus.values()) System.out.println(c);
public static AutoUpdateStatus valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2015 51Degrees. All rights reserved.