public interface ExporttoService extends MonitorableTask
This service is used to export a source FeatureStore
to a target
FeatureStore
.
It inherits if MonitorableTask
, and it means that the export process
can be monitorized by one or more observers that can listen all the export
events.
Modifier and Type | Method and Description |
---|---|
void |
export(FeatureSet featureSet)
This method export a
FeatureSet to other FeatureSet . |
void |
setFinishAction(ExporttoServiceFinishAction exporttoServiceFinishAction)
Sets the
ExporttoServiceFinishAction that is used at the end
of the ExporttoService . |
getTaskStatus
cancelRequest, isCancellationRequested
void export(FeatureSet featureSet) throws ExporttoServiceException
FeatureSet
to other FeatureSet
.
The other necessary parameters to make this conversion are specific
for every ExporttoService
. e.g: a shape exporter needs a
file and a projection, a database exporter needs a connection
parameters...featureSet
- the set of features hat have to be exported.ExporttoServiceException
- if there is any exception in the exporting processvoid setFinishAction(ExporttoServiceFinishAction exporttoServiceFinishAction)
ExporttoServiceFinishAction
that is used at the end
of the ExporttoService
.exporttoServiceFinishAction
- it contains an action that can be executed at the end of the
export process