public interface DataSourcePendingImport extends DataSourceImportBase
Modifier and Type | Method and Description |
---|---|
OverwritePolicy |
getOverwritePolicy()
Returns the overwrite policy set for this import.
|
void |
post()
Submits this import configuration to the server, triggering an import.
|
DataSourcePendingImport |
setOverwritePolicy(OverwritePolicy policy)
Sets the overwrite policy to use during this import.
|
DataSourcePendingImport |
setRepeatInterval(ImportIntervalUnit unit,
int factor)
Sets the interval at which this import is repeated.
|
com.fasterxml.jackson.databind.JsonNode |
toJson()
Returns a JSON representation of this pending import to send to the
server.
|
getRepeatInterval, isOverwriting
DataSourcePendingImport setOverwritePolicy(OverwritePolicy policy) throws IllegalStateException
OverwritePolicy.deleteNone()
is used.policy
- the overwrite policy to useIllegalStateException
- if the import has already been posted to
the serverOverwritePolicy getOverwritePolicy()
DataSourcePendingImport setRepeatInterval(ImportIntervalUnit unit, int factor) throws IllegalStateException
DataSourceImportBase.getRepeatInterval()
instead to retrieve the resulting interval.unit
- time unit for the intervalfactor
- interval length will be factor * unitIllegalStateException
- if the import has already been posted to
the servervoid post() throws NotFoundException, IllegalStateException
IllegalStateException
s.NotFoundException
- if the data source for this import
configuration doesn't exist on the serverIllegalStateException
- if the import has already been posted to
the servercom.fasterxml.jackson.databind.JsonNode toJson()
Copyright © 2014. All rights reserved.