Class SyncGeodatabaseJob
- All Implemented Interfaces:
JsonSerializable
,RemoteResource
Synchronization can include sending feature edits made locally and retrieving feature edits made on the server,
this can be controlled by setting the SyncGeodatabaseParameters.SyncDirection
.
Only changes are sent/received during the synchronization process to ensure only the minimum required data is transferred.
A SyncGeodatabaseJob instance is returned by
GeodatabaseSyncTask.syncGeodatabase(SyncGeodatabaseParameters, Geodatabase)
.
The Job is returned in a Job.Status.NOT_STARTED
state and Job.start()
must be called to start the
associated operation.
See the Job
class for full information on how to work with jobs.
- Since:
- 100.0.0
- See Also:
-
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
Modifier and TypeMethodDescriptionGets information on geodatabase upload and download delta files.For a successfully completed job, the result returns a list ofSyncLayerResult
.Methods inherited from class com.esri.arcgisruntime.concurrent.Job
addJobDoneListener, addJobMessageAddedListener, addProgressChangedListener, addStatusChangedListener, cancelAsync, fromJson, getCredential, getError, getMessages, getProgress, getRequestConfiguration, getServerJobId, getStatus, getUnknownJson, getUnsupportedJson, getUri, pause, removeJobDoneListener, removeJobMessageAddedListener, removeProgressChangedListener, removeStatusChangedListener, setCredential, setRequestConfiguration, start, toJson
-
Method Details
-
getGeodatabaseDeltaInfo
Gets information on geodatabase upload and download delta files.When
SyncGeodatabaseParameters.isKeepGeodatabaseDeltas()
is set to true, this property provides 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 property will be set even if the job fails. If
SyncGeodatabaseParameters.isKeepGeodatabaseDeltas()
is false, this property will be null.- Returns:
- an unmodifiable list containing information on geodatabase upload and download delta files, or null if none
- Since:
- 100.10.0
-
getResult
For a successfully completed job, the result returns a list ofSyncLayerResult
. Typically, when all features are synced successfully, this is an empty list.If individual edits failed, then the result list provides these errors grouped by each table, using
SyncLayerResult
instances. These in turn contain each edit error. Only errors are reported; the feature edit results do not contain information about successful adds, deletes, or updates.
-