Class OfflineMapSyncJob
- java.lang.Object
-
- com.esri.arcgisruntime.concurrent.Job
-
- com.esri.arcgisruntime.tasks.offlinemap.OfflineMapSyncJob
-
- All Implemented Interfaces:
JsonSerializable
,RemoteResource
public final class OfflineMapSyncJob extends Job
A Job that synchronizes an offline map's geodatabases with their originating services.An OfflineMapSyncJob instance is returned by
OfflineMapSyncTask.syncOfflineMap(OfflineMapSyncParameters)
. The Job is returned in aStatus.NOT_STARTED
state andJob.start()
must be called to start the associated operation.See the
Job
class for full information on how to work with jobs.- Since:
- 100.1.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.esri.arcgisruntime.concurrent.Job
Job.Message, Job.MessageSeverity, Job.MessageSource, Job.Status
-
-
Field Summary
-
Fields inherited from class com.esri.arcgisruntime.concurrent.Job
mCredential, mRequestConfiguration
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListenableList<GeodatabaseDeltaInfo>
getGeodatabaseDeltaInfos()
Gets information on upload and download delta geodatabases generated during the sync process.OfflineMapSyncResult
getResult()
Returns an OfflineMapSyncResult once the job has completed.-
Methods inherited from class com.esri.arcgisruntime.concurrent.Job
addJobChangedListener, addJobDoneListener, addJobMessageAddedListener, addProgressChangedListener, addStatusChangedListener, cancel, cancelAsync, fromJson, getCredential, getError, getMessages, getProgress, getRequestConfiguration, getServerJobId, getStatus, getUnknownJson, getUnsupportedJson, getUri, pause, removeJobChangedListener, removeJobDoneListener, removeJobMessageAddedListener, removeProgressChangedListener, removeStatusChangedListener, setCredential, setRequestConfiguration, setUri, start, toJson
-
-
-
-
Method Detail
-
getGeodatabaseDeltaInfos
public ListenableList<GeodatabaseDeltaInfo> getGeodatabaseDeltaInfos()
Gets information on upload and download delta geodatabases generated during the sync process.Contains a collection of
GeodatabaseDeltaInfo
with one for each geodatabase synced. These provide information about the synced geodatabase along with the paths to its uploaded and downloaded deltas.Delta geodatabases allow you to troubleshoot sync problems - for example by inspecting the changes they contain or sending the file to the system administrator for the feature service.
This collection will be updated even if the job fails and there are deltas on disk. This collection will only be updated if
OfflineMapSyncParameters.isKeepGeodatabaseDeltas()
is true, otherwise it will remain empty.- Returns:
- an unmodifiable list containing information on upload and download delta geodatabases generated during the sync process
- Since:
- 100.10.0
-
getResult
public OfflineMapSyncResult getResult()
Returns an OfflineMapSyncResult once the job has completed. The methods of OfflineMapSyncResult indicate if there were errors related to any layers or tables within the map.- Specified by:
getResult
in classJob
- Returns:
- an OfflineMapSyncResult containing the result, or null if the job is not done yet or was cancelled
- Since:
- 100.1.0
- See Also:
OfflineMapSyncResult.hasErrors()
,OfflineMapSyncResult.getLayerResults()
,OfflineMapSyncResult.getTableResults()
-
-