Class GenerateGeodatabaseJob
- java.lang.Object
-
- com.esri.arcgisruntime.concurrent.Job
-
- com.esri.arcgisruntime.tasks.geodatabase.GenerateGeodatabaseJob
-
- All Implemented Interfaces:
JsonSerializable
,RemoteResource
public final class GenerateGeodatabaseJob extends Job
A Job that requests a feature service to generate a geodatabase file to be downloaded for off-line use.A GenerateGeodatabaseJob instance is returned by
GeodatabaseSyncTask.generateGeodatabase(GenerateGeodatabaseParameters, String)
. The Job is returned in aJob.Status.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.0.0
- See Also:
Job
-
-
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 Geodatabase
getResult()
For a successfully completed job, the result returns the local geodatabase.-
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
-
getResult
public Geodatabase getResult()
For a successfully completed job, the result returns the local geodatabase.If the job is in progress, then a null result is returned until the job successfully completes. The returned geodatabase is in a not loaded state; use
Geodatabase.loadAsync()
to load it.A geodatabase downloaded in this way can contain features, annotation and dimensions that are accessed with the list returned by
Geodatabase.getGeodatabaseFeatureTables()
,Geodatabase.getGeodatabaseAnnotationTables()
, and Geodatabase.getGeodatabaseDimensionTables() collections, respectively.- Specified by:
getResult
in classJob
- Returns:
- a Geodatabase once the job has completed successfully, otherwise null
- Since:
- 100.0.0
- See Also:
Geodatabase
-
-