-
- All Implemented Interfaces:
public interface DataOtaDownloader
-
-
Method Summary
Modifier and Type Method Description abstract ArrayList<SpaceInfo>getSupportedSpaces()Get the information of all supported spaces. abstract RegionDataStatusquerySpaceDataStatus(String space, Integer countryCode)Query the status of space data for a specific space. abstract IntegerstartDownloadSpaceData(String space)Start downloading space data for a specific space. abstract IntegercancelDownloadSpaceData(String space)Cancel downloading space data for a specific space. abstract IntegerapplySpaceData(String space)Apply space data for a specific space. abstract ArrayList<RegionJobStatus>listAllSpaceJobStatuses()List all space job statuses. abstract IntegerpauseDownloadSpaceData(String space)Pause downloading space data for a specific space. abstract IntegerresumeDownloadSpaceData(String space)Resume the space data download for a specific space. abstract UnitpurgeSpaceDownloadData(String space)Purge the space data download for a specific space. -
-
Method Detail
-
getSupportedSpaces
abstract ArrayList<SpaceInfo> getSupportedSpaces()
Get the information of all supported spaces.
-
querySpaceDataStatus
abstract RegionDataStatus querySpaceDataStatus(String space, Integer countryCode)
Query the status of space data for a specific space.
- Parameters:
space- the name of the space to query.countryCode- the country code of the space.
-
startDownloadSpaceData
abstract Integer startDownloadSpaceData(String space)
Start downloading space data for a specific space.
- Parameters:
space- the name of the space to download data for.
-
cancelDownloadSpaceData
abstract Integer cancelDownloadSpaceData(String space)
Cancel downloading space data for a specific space.
- Parameters:
space- the name of the space to cancel downloading data for.
-
applySpaceData
abstract Integer applySpaceData(String space)
Apply space data for a specific space.
- Parameters:
space- the name of the space to apply data for.
-
listAllSpaceJobStatuses
abstract ArrayList<RegionJobStatus> listAllSpaceJobStatuses()
List all space job statuses.
-
pauseDownloadSpaceData
abstract Integer pauseDownloadSpaceData(String space)
Pause downloading space data for a specific space. A small amount of data for the space will be continued to download after this interface is called as the pause operation is asynchronous.
- Parameters:
space- the name of the space to pause downloading data for.
-
resumeDownloadSpaceData
abstract Integer resumeDownloadSpaceData(String space)
Resume the space data download for a specific space.
- Parameters:
space- the name of the space to resume downloading data for.
-
purgeSpaceDownloadData
abstract Unit purgeSpaceDownloadData(String space)
Purge the space data download for a specific space. This interface is synchronous, it may take some time to complete, recommend not to call it in the main thread. If the space is still in downloading/download paused/applying state, purge operation will do nothing. If purge successfully, space data status from @ref querySpaceDataStatus will be reset. If purge successfully, the temporary data of the space will be removed from the local storage. If download or(and) apply job of the space exists in listAllSpaceJobStatuses, after purge successfully, the jobs of this space will be removed from the result.
- Parameters:
space- the name of the space to pause downloading data for.
-
-
-
-