|
Foxit PDF RDK
|
Public Member Functions | |
| addTask (task) | |
| Adds a task to the server. More... | |
| cancelAllTasks (force) | |
| Cancels all tasks. More... | |
| cancelTask (task, addToQueue) | |
| Cancels a specific task. More... | |
| constructor () | |
| Constructor. | |
| disableAddTask () | |
| Disables the ability to add tasks. Prevents tasks from being added to the server. | |
| enableAddTask () | |
| Enables the ability to add tasks. Allows tasks to be added to the server. | |
| getCurTask () | |
| Retrieves the current task. More... | |
| handleTaskResult (task, isSync, addToQueue) | |
| Handles the result of a task. More... | |
| setMachineStatus (status) | |
| Sets the machine status. More... | |
Class TaskServer represents a task server class.
The TaskServer class defines methods to get information about a task server.
| TaskServer.addTask | ( | task | ) |
Adds a task to the server.
| {Task} | task - The task to be added to the server. |
| TaskServer.cancelAllTasks | ( | force | ) |
Cancels all tasks.
| {boolean} | force - If true, forces the cancellation of all tasks immediately. |
| TaskServer.cancelTask | ( | task | , |
| addToQueue | |||
| ) |
Cancels a specific task.
| {Task} | task - The task to be cancelled. |
| {boolean} | addToQueue - If true, the task result is added to a queue for further processing. |
| TaskServer.getCurTask | ( | ) |
Retrieves the current task.
| TaskServer.handleTaskResult | ( | task | , |
| isSync | , | ||
| addToQueue | |||
| ) |
Handles the result of a task.
| {Task} | task - The task whose result is to be handled. |
| {boolean} | isSync - If true, the task result is handled synchronously. |
| {boolean} | addToQueue - If true, the task result is added to a queue for further processing. |
| TaskServer.setMachineStatus | ( | status | ) |
Sets the machine status.
| {number} | status - The new status to be set for the machine. |