public class BatchService extends EvrythngServiceBase
/batches endpoint of the EVRYTHNG API.| Modifier and Type | Field and Description |
|---|---|
static String |
PATH_BATCH |
static String |
PATH_BATCH_TASK |
static String |
PATH_BATCH_TASK_LOGS |
static String |
PATH_BATCH_TASKS |
static String |
PATH_BATCHES |
| Constructor and Description |
|---|
BatchService(ApiManager apiManager) |
absoluteUri, delete, deleteMultiple, encodeBase64, get, getConfig, iterator, mqttUrl, onBuilderCreated, post, post, postAsynchronously, postMultipart, postMultipart, put, put, putMultipart, putMultipart, putMultiple, urlEncodePathPartpublic static final String PATH_BATCHES
public static final String PATH_BATCH
public static final String PATH_BATCH_TASKS
public static final String PATH_BATCH_TASK
public static final String PATH_BATCH_TASK_LOGS
public BatchService(ApiManager apiManager)
public EvrythngApiBuilder.Builder<Batch> batchCreator(Batch batch) throws EvrythngClientException
Batch.
POST "/batches"
batch - the instance holding the Batch resource dataEvrythngApiBuilder.BuilderEvrythngClientExceptionpublic EvrythngApiBuilder.Builder<List<Batch>> batchesReader() throws EvrythngClientException
Batch resources.
GET "/batches"
EvrythngApiBuilder.BuilderEvrythngClientExceptionpublic EvrythngApiBuilder.Builder<Batch> batchReader(String batchId) throws EvrythngClientException
Batch.
GET "/batches/%s"
batchId - batch idEvrythngApiBuilder.BuilderEvrythngClientExceptionpublic EvrythngApiBuilder.Builder<Batch> batchUpdater(String batchId, Batch batch) throws EvrythngClientException
Batch.
PUT "/batches/%s"
batchId - batch idbatch - Batch instanceEvrythngApiBuilder.BuilderEvrythngClientExceptionpublic EvrythngApiBuilder.Builder<Boolean> batchDeleter(String batchId) throws EvrythngClientException
Batch.
DELETE "/batches/%s"
batchId - batch idEvrythngApiBuilder.BuilderEvrythngClientExceptionpublic EvrythngApiBuilder.Builder<AcceptedResourceResponse> taskCreator(String batchId, TaskOnBatch task) throws EvrythngClientException
TaskOnBatch to be completed asynchronously on a batch.
POST "/batches/%s/tasks"
batchId - batch idtask - the instance holding the TaskOnBatch resource dataEvrythngApiBuilder.BuilderEvrythngClientExceptionpublic EvrythngApiBuilder.Builder<List<TaskOnBatch>> tasksReader(String batchId) throws EvrythngClientException
TaskOnBatch resources of the batch.
batchId - batch idEvrythngApiBuilder.BuilderEvrythngClientExceptionpublic EvrythngApiBuilder.Builder<TaskOnBatch> taskReader(String batchId, String taskId) throws EvrythngClientException
TaskOnBatch of the batch.
batchId - batch idtaskId - task idEvrythngApiBuilder.BuilderEvrythngClientExceptionpublic EvrythngApiBuilder.Builder<List<JobLogEntry>> logsReader(String batchId, String taskId) throws EvrythngClientException
JobLogEntry elements generated by the task.
batchId - batch idtaskId - task idEvrythngApiBuilder.BuilderEvrythngClientExceptionCopyright © 2016 EVRYTHNG Ltd London / Zurich. All rights reserved.