public class DefaultExporttoService extends AbstractMonitorableTask implements ExporttoService
ExporttoService
implementation.Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
protected DataServerExplorer |
dataServerExplorer |
protected static Logger |
LOG |
protected NewDataStoreParameters |
newDataStoreParameters |
protected OpenDataStoreParameters |
openDataStoreParameters |
taskStatus
cancellationRequested
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Modifier | Constructor and Description |
---|---|
protected |
DefaultExporttoService() |
|
DefaultExporttoService(DataServerExplorer dataServerExplorer,
NewDataStoreParameters newDataStoreParameters,
OpenDataStoreParameters openDataStoreParameters)
DefaultExporttoService constructor |
Modifier and Type | Method and Description |
---|---|
protected void |
copyValues(Feature source,
EditableFeature target) |
void |
export(FeatureSet featureSet)
This method export a
FeatureSet to other FeatureSet . |
void |
export(FeatureStore featureStore,
IProjection projection,
FeatureSet featureSet) |
void |
setFinishAction(ExporttoServiceFinishAction exporttoServiceFinishAction)
Sets the
ExporttoServiceFinishAction that is used at the end
of the ExporttoService . |
cancelRequest, getSimpleTaskStatus, getTaskStatus, setTaskName
isCancellationRequested
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getTaskStatus
cancelRequest, isCancellationRequested
protected static final Logger LOG
protected DataServerExplorer dataServerExplorer
protected NewDataStoreParameters newDataStoreParameters
protected OpenDataStoreParameters openDataStoreParameters
protected DefaultExporttoService()
public DefaultExporttoService(DataServerExplorer dataServerExplorer, NewDataStoreParameters newDataStoreParameters, OpenDataStoreParameters openDataStoreParameters)
DefaultExporttoService
constructordataServerExplorer
- newDataStoreParameters
- openDataStoreParameters
- public void export(FeatureStore featureStore, IProjection projection, FeatureSet featureSet) throws ExporttoServiceException
ExporttoServiceException
public void export(FeatureSet featureSet) throws ExporttoServiceException
ExporttoService
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...export
in interface ExporttoService
featureSet
- the set of features hat have to be exported.ExporttoServiceException
- if there is any exception in the exporting processpublic void setFinishAction(ExporttoServiceFinishAction exporttoServiceFinishAction)
ExporttoService
ExporttoServiceFinishAction
that is used at the end
of the ExporttoService
.setFinishAction
in interface ExporttoService
exporttoServiceFinishAction
- it contains an action that can be executed at the end of the
export processprotected void copyValues(Feature source, EditableFeature target)