PersistentMapStatus (API Reference)
Enum Class PersistentMapStatus
- All Implemented Interfaces:
Serializable,Comparable<PersistentMapStatus>,Constable
Specifies possible statuses of the already downloaded map regions as a whole.
Note: This can be valid only for a single region in case of a CORRUPTED state.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUnrecoverable error during construction of pending update parameters.One or more downloaded regions failed to open and a repair action should be performed to mitigate this issue.UnreachableSDKOptions.cachePathorSDKOptions.persistentMapStoragePath.Unrecoverable error during construction of internal map access object.Indicates that the downloaded regions need to be migrated to a new internal format by callingsdk.maploader.MapDownloader.repair_persistent_map.All downloaded regions are in a workable state, no issues found.A map update operation initiated by a user has been interrupted.Indicates that the status cannot be retrieved as the map storage is already closed due to disposal ofSDKNativeEngine. -
Method Summary
Modifier and TypeMethodDescriptionstatic PersistentMapStatusReturns the enum constant of this class with the specified name.static PersistentMapStatus[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OK
All downloaded regions are in a workable state, no issues found.
-
CORRUPTED
One or more downloaded regions failed to open and a repair action should be performed to mitigate this issue. All map download and map update operations (except for
sdk.maploader.MapDownloader.repair_persistent_map) will returnsdk.maploader.MapLoaderError.NOT_READY. -
BROKEN_UPDATE
Unrecoverable error during construction of pending update parameters. Operations such as catalog updates or region downloads will fail. The healing procedure is to clean persistent map with
sdk.maploader.MapDownloader.clear_persistent_map_storage. -
MIGRATION_NEEDED
Indicates that the downloaded regions need to be migrated to a new internal format by calling
sdk.maploader.MapDownloader.repair_persistent_map. This error is not a result of a data loss, nor any data will be lost when performing the repair operation and the map version will stay unchanged afterwards. -
PENDING_UPDATE
A map update operation initiated by a user has been interrupted. Calls to
sdk.maploader.MapDownloader.download_regionsandsdk.maploader.MapDownloader.delete_regionswill fail withsdk.maploader.MapLoaderError.INTERNAL_ERROR. To repair a map, call againsdk.maploader.MapUpdater.update_catalogfor the affected catalog.sdk.maploader.MapUpdater.retrieve_catalogs_update_inforeturns a list ofsdk.maploader.CatalogUpdateInfoitems: The affected catalog can be identified by the state, which is set tosdk.maploader.CatalogUpdateState.PENDING_UPDATE. To know if a map needs to be repaired, check ifsdk.maploader.MapLoaderError.PENDING_UPDATEhas occurred. -
INVALID_PATH
Unreachable
SDKOptions.cachePathorSDKOptions.persistentMapStoragePath. Make sure thatSDKOptionshas accessibleSDKOptions.cachePathandSDKOptions.persistentMapStoragePath -
INVALID_STATE
Unrecoverable error during construction of internal map access object. The healing procedure is to clean persistent map with
sdk.maploader.MapDownloader.clear_persistent_map_storage. -
STORAGE_CLOSED
Indicates that the status cannot be retrieved as the map storage is already closed due to disposal of
SDKNativeEngine.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-