public class TaskMonkClient
extends java.lang.Object
| Constructor and Description |
|---|
TaskMonkClient(java.lang.String projectId,
java.lang.String server,
OAuthClientCredentials credentials) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
createBatch(java.lang.String batchName) |
void |
getBatchOutput(java.lang.String batchId,
java.lang.String outputFormat,
java.lang.String outputPath)
Get the batch output in a local file path
|
BatchStatus |
getBatchStatus(java.lang.String batchId) |
JobProgressResponse |
getJobProgress(java.lang.String jobId) |
JobProgressResponse |
getJobProgressBatch(java.lang.String batchId) |
java.lang.Boolean |
isProcessComplete(java.lang.String batchId) |
java.lang.Boolean |
isUploadComplete(java.lang.String batchId) |
TaskImportResponse |
uploadTasks(java.lang.String batchName,
java.io.File file) |
public TaskMonkClient(java.lang.String projectId,
java.lang.String server,
OAuthClientCredentials credentials)
public java.lang.String createBatch(java.lang.String batchName)
throws java.lang.Exception
java.lang.Exceptionpublic TaskImportResponse uploadTasks(java.lang.String batchName, java.io.File file) throws java.lang.Exception
java.lang.Exceptionpublic void getBatchOutput(java.lang.String batchId,
java.lang.String outputFormat,
java.lang.String outputPath)
throws java.lang.Exception
batchId - outputFormat - output format for the file - "CSV" or "Excel"outputPath - - path where the output file should be createdjava.lang.Exceptionpublic JobProgressResponse getJobProgress(java.lang.String jobId) throws java.lang.Exception
java.lang.Exceptionpublic JobProgressResponse getJobProgressBatch(java.lang.String batchId) throws java.lang.Exception
java.lang.Exceptionpublic BatchStatus getBatchStatus(java.lang.String batchId) throws java.lang.Exception
java.lang.Exceptionpublic java.lang.Boolean isProcessComplete(java.lang.String batchId)
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.Boolean isUploadComplete(java.lang.String batchId)
throws java.lang.Exception
java.lang.Exception