public class CloudClient
extends java.lang.Object
implements java.lang.AutoCloseable
Modifier and Type | Class and Description |
---|---|
static class |
CloudClient.ProcessingStatus |
static class |
CloudClient.ProjectInfo |
Modifier and Type | Field and Description |
---|---|
protected boolean |
swigCMemOwn |
Modifier | Constructor and Description |
---|---|
|
CloudClient() |
protected |
CloudClient(long cPtr,
boolean cMemoryOwn) |
Modifier and Type | Method and Description |
---|---|
void |
abortProcessing(Document document)
Cancel processing.
|
void |
close() |
void |
delete() |
void |
downloadProject(Document document,
Progress progress)
Download project from the cloud.
|
protected void |
finalize() |
java.lang.String |
getClientId()
Get client software id (optional).
|
java.lang.String |
getClientSecret()
Get client software secret (optional).
|
protected static long |
getCPtr(CloudClient obj) |
java.lang.String |
getPassword()
Get cloud account password.
|
CloudClient.ProcessingStatus |
getProcessingStatus(Document document)
Get processing status.
|
CloudClient.ProjectInfo[] |
getProjectList()
Get list of projects in the cloud.
|
java.lang.String |
getUsername()
Get cloud account username.
|
void |
processProject(Document document,
NetworkTask[] tasks)
Start processing in the cloud.
|
void |
setClientId(java.lang.String client_id)
Set client software id (optional).
|
void |
setClientSecret(java.lang.String client_secret)
Set client software secret (optional).
|
void |
setPassword(java.lang.String password)
Set cloud account password.
|
void |
setUsername(java.lang.String username)
Set cloud account username.
|
void |
uploadProject(Document document,
Progress progress)
Upload project to the cloud.
|
protected CloudClient(long cPtr, boolean cMemoryOwn)
public CloudClient()
protected static long getCPtr(CloudClient obj)
protected void finalize()
finalize
in class java.lang.Object
public void delete()
public void close()
close
in interface java.lang.AutoCloseable
public void setUsername(java.lang.String username)
username
- Username.public java.lang.String getUsername()
public void setPassword(java.lang.String password)
password
- User password.public java.lang.String getPassword()
public void setClientId(java.lang.String client_id)
client_id
- Client software id.public java.lang.String getClientId()
public void setClientSecret(java.lang.String client_secret)
client_secret
- Client software secret.public java.lang.String getClientSecret()
public void uploadProject(Document document, Progress progress)
document
- Project to upload.progress
- Progress callback.public void downloadProject(Document document, Progress progress)
document
- Project to download.progress
- Progress callback.public void processProject(Document document, NetworkTask[] tasks)
document
- Project to process.tasks
- List of processing tasks to execute.public CloudClient.ProcessingStatus getProcessingStatus(Document document)
document
- Project being processed.public void abortProcessing(Document document)
document
- Project to cancel.public CloudClient.ProjectInfo[] getProjectList()