public class BulkConnection
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static javax.xml.namespace.QName |
BATCH_LIST_QNAME |
static javax.xml.namespace.QName |
BATCH_QNAME |
static java.lang.String |
CSV_CONTENT_TYPE |
static javax.xml.namespace.QName |
ERROR_QNAME |
static javax.xml.namespace.QName |
JOB_QNAME |
static java.lang.String |
JSON_CONTENT_TYPE |
static java.lang.String |
NAMESPACE |
static java.lang.String |
SESSION_ID |
static TypeMapper |
typeMapper |
static java.lang.String |
XML_CONTENT_TYPE |
static java.lang.String |
ZIP_CSV_CONTENT_TYPE |
static java.lang.String |
ZIP_JSON_CONTENT_TYPE |
static java.lang.String |
ZIP_XML_CONTENT_TYPE |
| Constructor and Description |
|---|
BulkConnection(ConnectorConfig config) |
| Modifier and Type | Method and Description |
|---|---|
JobInfo |
abortJob(java.lang.String jobId) |
void |
addHeader(java.lang.String headerName,
java.lang.String headerValue) |
java.net.URL |
buildBatchResultURL(java.lang.String jobId,
java.lang.String batchId) |
java.net.URL |
buildQueryResultURL(java.lang.String jobId,
java.lang.String batchId,
java.lang.String resultId) |
JobInfo |
closeJob(java.lang.String jobId) |
BatchRequest |
createBatch(JobInfo job) |
BatchInfo |
createBatchFromDir(JobInfo job,
java.io.InputStream batchContent,
java.io.File attachmentDir) |
BatchInfo |
createBatchFromForeignCsvStream(JobInfo jobInfo,
java.io.InputStream input,
java.lang.String charSet) |
BatchInfo |
createBatchFromStream(JobInfo jobInfo,
java.io.InputStream input) |
BatchInfo |
createBatchFromZipStream(JobInfo jobInfo,
java.io.InputStream zipInput) |
BatchInfo |
createBatchWithFileAttachments(JobInfo jobInfo,
java.io.InputStream batchContent,
java.io.File rootDirectory,
java.lang.String... files) |
BatchInfo |
createBatchWithFileAttachments(JobInfo jobInfo,
java.io.InputStream batchContent,
java.util.Map<java.lang.String,java.io.File> attachedFiles) |
BatchInfo |
createBatchWithInputStreamAttachments(JobInfo jobInfo,
java.io.InputStream batchContent,
java.util.Map<java.lang.String,java.io.InputStream> attachments) |
CsvBatchRequest |
createCsvBatch(JobInfo job) |
JobInfo |
createJob(JobInfo job) |
JobInfo |
createJob(JobInfo job,
ContentType contentType) |
JobInfo |
createJob(java.lang.String object,
java.lang.String operation) |
TransformationSpecRequest |
createTransformationSpec(JobInfo job) |
void |
createTransformationSpecFromStream(JobInfo jobInfo,
java.io.InputStream input) |
BatchInfo |
getBatchInfo(java.lang.String jobId,
java.lang.String batchId) |
BatchInfo |
getBatchInfo(java.lang.String jobId,
java.lang.String batchId,
ContentType contentType) |
BatchInfoList |
getBatchInfoList(java.lang.String jobId) |
BatchInfoList |
getBatchInfoList(java.lang.String jobId,
ContentType contentType) |
java.io.InputStream |
getBatchRequestInputStream(java.lang.String jobId,
java.lang.String batchId) |
BatchResult |
getBatchResult(java.lang.String jobId,
java.lang.String batchId) |
BatchResult |
getBatchResult(java.lang.String jobId,
java.lang.String batchId,
ContentType contentType) |
java.io.InputStream |
getBatchResultStream(java.lang.String jobId,
java.lang.String batchId) |
ConnectorConfig |
getConfig() |
JobInfo |
getJobStatus(java.lang.String jobId) |
JobInfo |
getJobStatus(java.lang.String jobId,
ContentType contentType) |
QueryResultList |
getQueryResultList(java.lang.String jobId,
java.lang.String batchId) |
QueryResultList |
getQueryResultList(java.lang.String jobId,
java.lang.String batchId,
ContentType contentType) |
java.io.InputStream |
getQueryResultStream(java.lang.String jobId,
java.lang.String batchId,
java.lang.String resultId) |
JobInfo |
updateJob(JobInfo job) |
JobInfo |
updateJob(JobInfo job,
ContentType contentType) |
public static final java.lang.String NAMESPACE
public static final java.lang.String SESSION_ID
public static final java.lang.String XML_CONTENT_TYPE
public static final java.lang.String CSV_CONTENT_TYPE
public static final java.lang.String JSON_CONTENT_TYPE
public static final java.lang.String ZIP_XML_CONTENT_TYPE
public static final java.lang.String ZIP_CSV_CONTENT_TYPE
public static final java.lang.String ZIP_JSON_CONTENT_TYPE
public static final javax.xml.namespace.QName JOB_QNAME
public static final javax.xml.namespace.QName BATCH_QNAME
public static final javax.xml.namespace.QName BATCH_LIST_QNAME
public static final javax.xml.namespace.QName ERROR_QNAME
public static final TypeMapper typeMapper
public BulkConnection(ConnectorConfig config) throws AsyncApiException
AsyncApiExceptionpublic JobInfo createJob(java.lang.String object, java.lang.String operation) throws AsyncApiException
AsyncApiExceptionpublic JobInfo createJob(JobInfo job) throws AsyncApiException
AsyncApiExceptionpublic JobInfo createJob(JobInfo job, ContentType contentType) throws AsyncApiException
AsyncApiExceptionpublic void addHeader(java.lang.String headerName,
java.lang.String headerValue)
public BatchInfo createBatchFromStream(JobInfo jobInfo, java.io.InputStream input) throws AsyncApiException
AsyncApiExceptionpublic BatchInfo createBatchFromZipStream(JobInfo jobInfo, java.io.InputStream zipInput) throws AsyncApiException
AsyncApiExceptionpublic BatchInfo createBatchFromDir(JobInfo job, java.io.InputStream batchContent, java.io.File attachmentDir) throws AsyncApiException
AsyncApiExceptionpublic BatchInfo createBatchWithFileAttachments(JobInfo jobInfo, java.io.InputStream batchContent, java.io.File rootDirectory, java.lang.String... files) throws AsyncApiException
AsyncApiExceptionpublic BatchInfo createBatchWithFileAttachments(JobInfo jobInfo, java.io.InputStream batchContent, java.util.Map<java.lang.String,java.io.File> attachedFiles) throws AsyncApiException
AsyncApiExceptionpublic BatchInfo createBatchWithInputStreamAttachments(JobInfo jobInfo, java.io.InputStream batchContent, java.util.Map<java.lang.String,java.io.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, java.io.InputStream input, java.lang.String charSet) throws AsyncApiException
AsyncApiExceptionpublic void createTransformationSpecFromStream(JobInfo jobInfo, java.io.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(java.lang.String jobId) throws AsyncApiException
AsyncApiExceptionpublic BatchInfoList getBatchInfoList(java.lang.String jobId, ContentType contentType) throws AsyncApiException
AsyncApiExceptionpublic BatchInfo getBatchInfo(java.lang.String jobId, java.lang.String batchId) throws AsyncApiException
AsyncApiExceptionpublic BatchInfo getBatchInfo(java.lang.String jobId, java.lang.String batchId, ContentType contentType) throws AsyncApiException
AsyncApiExceptionpublic BatchResult getBatchResult(java.lang.String jobId, java.lang.String batchId) throws AsyncApiException
AsyncApiExceptionpublic BatchResult getBatchResult(java.lang.String jobId, java.lang.String batchId, ContentType contentType) throws AsyncApiException
AsyncApiExceptionpublic java.io.InputStream getBatchResultStream(java.lang.String jobId,
java.lang.String batchId)
throws AsyncApiException
AsyncApiExceptionpublic java.net.URL buildBatchResultURL(java.lang.String jobId,
java.lang.String batchId)
throws AsyncApiException
AsyncApiExceptionpublic java.io.InputStream getBatchRequestInputStream(java.lang.String jobId,
java.lang.String batchId)
throws AsyncApiException
AsyncApiExceptionpublic QueryResultList getQueryResultList(java.lang.String jobId, java.lang.String batchId) throws AsyncApiException
AsyncApiExceptionpublic QueryResultList getQueryResultList(java.lang.String jobId, java.lang.String batchId, ContentType contentType) throws AsyncApiException
AsyncApiExceptionpublic java.io.InputStream getQueryResultStream(java.lang.String jobId,
java.lang.String batchId,
java.lang.String resultId)
throws AsyncApiException
AsyncApiExceptionpublic java.net.URL buildQueryResultURL(java.lang.String jobId,
java.lang.String batchId,
java.lang.String resultId)
throws AsyncApiException
AsyncApiExceptionpublic JobInfo getJobStatus(java.lang.String jobId) throws AsyncApiException
AsyncApiExceptionpublic JobInfo getJobStatus(java.lang.String jobId, ContentType contentType) throws AsyncApiException
AsyncApiExceptionpublic JobInfo abortJob(java.lang.String jobId) throws AsyncApiException
AsyncApiExceptionpublic JobInfo closeJob(java.lang.String jobId) throws AsyncApiException
AsyncApiExceptionpublic JobInfo updateJob(JobInfo job) throws AsyncApiException
AsyncApiExceptionpublic JobInfo updateJob(JobInfo job, ContentType contentType) throws AsyncApiException
AsyncApiExceptionpublic ConnectorConfig getConfig()
Copyright © 2018. All Rights Reserved.