public class BulkConnection extends Object
| Modifier and Type | Field and Description |
|---|---|
static QName |
BATCH_LIST_QNAME |
static QName |
BATCH_QNAME |
static String |
CSV_CONTENT_TYPE |
static QName |
ERROR_QNAME |
static QName |
JOB_QNAME |
static String |
NAMESPACE |
static String |
SESSION_ID |
static TypeMapper |
typeMapper |
static String |
XML_CONTENT_TYPE |
static String |
ZIP_CSV_CONTENT_TYPE |
static String |
ZIP_XML_CONTENT_TYPE |
| Constructor and Description |
|---|
BulkConnection(ConnectorConfig config) |
public static final String NAMESPACE
public static final String SESSION_ID
public static final String XML_CONTENT_TYPE
public static final String CSV_CONTENT_TYPE
public static final String ZIP_XML_CONTENT_TYPE
public static final String ZIP_CSV_CONTENT_TYPE
public static final QName JOB_QNAME
public static final QName BATCH_QNAME
public static final QName BATCH_LIST_QNAME
public static final QName ERROR_QNAME
public static final TypeMapper typeMapper
public BulkConnection(ConnectorConfig config) throws AsyncApiException
AsyncApiExceptionpublic JobInfo createJob(String object, String operation) throws AsyncApiException
AsyncApiExceptionpublic JobInfo createJob(JobInfo job) throws AsyncApiException
AsyncApiExceptionpublic BatchInfo createBatchFromStream(JobInfo jobInfo, InputStream input) throws AsyncApiException
AsyncApiExceptionpublic BatchInfo createBatchFromZipStream(JobInfo jobInfo, InputStream zipInput) throws AsyncApiException
AsyncApiExceptionpublic BatchInfo createBatchFromDir(JobInfo job, InputStream batchContent, File attachmentDir) throws AsyncApiException
AsyncApiExceptionpublic BatchInfo createBatchWithFileAttachments(JobInfo jobInfo, InputStream batchContent, File rootDirectory, String... files) throws AsyncApiException
AsyncApiExceptionpublic BatchInfo createBatchWithFileAttachments(JobInfo jobInfo, InputStream batchContent, Map<String,File> attachedFiles) throws AsyncApiException
AsyncApiExceptionpublic BatchInfo createBatchWithInputStreamAttachments(JobInfo jobInfo, InputStream batchContent, Map<String,InputStream> attachments) throws AsyncApiException
jobInfo - Parent job for new batch.batchContent - InputStream containing the xml or csv content of the batch, or null only if request.txt is contained
in attachments mapattachments - Map of attachments where the key is the filename to be used in the zip file and the value is the
InputStream representing that file.AsyncApiExceptionpublic BatchInfo createBatchFromForeignCsvStream(JobInfo jobInfo, InputStream input, String charSet) throws AsyncApiException
AsyncApiExceptionpublic void createTransformationSpecFromStream(JobInfo jobInfo, InputStream input) throws AsyncApiException
AsyncApiExceptionpublic BatchRequest createBatch(JobInfo job) throws AsyncApiException
AsyncApiExceptionpublic CsvBatchRequest createCsvBatch(JobInfo job) throws AsyncApiException
AsyncApiExceptionpublic TransformationSpecRequest createTransformationSpec(JobInfo job) throws AsyncApiException
AsyncApiExceptionpublic BatchInfoList getBatchInfoList(String jobId) throws AsyncApiException
AsyncApiExceptionpublic BatchInfo getBatchInfo(String jobId, String batchId) throws AsyncApiException
AsyncApiExceptionpublic BatchResult getBatchResult(String jobId, String batchId) throws AsyncApiException
AsyncApiExceptionpublic InputStream getBatchResultStream(String jobId, String batchId) throws AsyncApiException
AsyncApiExceptionpublic URL buildBatchResultURL(String jobId, String batchId) throws AsyncApiException
AsyncApiExceptionpublic InputStream getBatchRequestInputStream(String jobId, String batchId) throws AsyncApiException
AsyncApiExceptionpublic QueryResultList getQueryResultList(String jobId, String batchId) throws AsyncApiException
AsyncApiExceptionpublic InputStream getQueryResultStream(String jobId, String batchId, String resultId) throws AsyncApiException
AsyncApiExceptionpublic URL buildQueryResultURL(String jobId, String batchId, String resultId) throws AsyncApiException
AsyncApiExceptionpublic JobInfo getJobStatus(String jobId) throws AsyncApiException
AsyncApiExceptionpublic JobInfo abortJob(String jobId) throws AsyncApiException
AsyncApiExceptionpublic JobInfo closeJob(String jobId) throws AsyncApiException
AsyncApiExceptionpublic JobInfo updateJob(JobInfo job) throws AsyncApiException
AsyncApiExceptionpublic ConnectorConfig getConfig()
Copyright © 2015. All Rights Reserved.