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_TASKS |
static String |
PATH_BATCHES |
| Constructor and Description |
|---|
BatchService(ApiManager apiManager) |
| Modifier and Type | Method and Description |
|---|---|
EvrythngApiBuilder.Builder<Batch> |
batchCreator(Batch batch)
Creates a new
Batch. |
EvrythngApiBuilder.Builder<Boolean> |
batchDeleter(String batchId)
Deletes the referenced
Batch. |
EvrythngApiBuilder.Builder<List<Batch>> |
batchesReader()
Retrieves
Batch resources. |
EvrythngApiBuilder.Builder<Batch> |
batchReader(String batchId)
Retrieves the referenced
Batch. |
EvrythngApiBuilder.Builder<Batch> |
batchUpdater(String batchId,
Batch batch)
Updates the referenced
Batch. |
EvrythngApiBuilder.Builder<AcceptedResourceResponse> |
taskCreator(String batchId,
TaskOnBatch task)
Creates a new
TaskOnBatch to be completed asynchronously on a batch. |
EvrythngApiBuilder.Builder<TaskOnBatch> |
taskReader(String batchId,
String taskId)
Retrieves the referenced
TaskOnBatch of the batch. |
EvrythngApiBuilder.Builder<List<TaskOnBatch>> |
tasksReader(String batchId)
Retrieves
TaskOnBatch resources of the batch. |
absoluteUri, delete, deleteMultiple, encodeBase64, get, getConfig, 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 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.BuilderEvrythngClientExceptionCopyright © 2016 EVRYTHNG Ltd London / Zurich. All rights reserved.