The Agent manages the execution of remote tasks on a device. It stores tasks to be executed and the results of tasks it has executed in the agent database. The Agent synchronizes the agent database using ordinary MobiLink synchronization. During synchronization, the Agent receives new tasks to execute and uploads information about tasks it has executed.
The Agent synchronizes the agent database when the following occur:
The Agent is started.
The Agent receives a notification from the server to synchronize the agent database. The Agent listens for notifications from the server and when notified, synchronizes the agent database.
A user-specified amount of time has elapsed since the last synchronization.
A task completes that is configured to send its status immediately upon completion.
The Agent is multi-threaded and may run more than one task in parallel. A task is only deleted after it enters a "final" state. Final states are: successful, failed, expired or canceled. A task only enters a final state if it is "run exclusive" or "run immediate" and it succeeds or fails; or if it is a scheduled task and it expires; or it is canceled at the server. The "on demand" tasks do not enter a final state unless they are canceled. On demand tasks sit in the Agent and are executed by server-initiated requests (SIRT).
The MobiLink Agent is not the same as the QAnywhere Agent and the two do not conflict with one another.
The following diagram shows the flow of communication to and from the Agent.
Discuter à propos de cette page dans DocCommentXchange.
|Copyright © 2010, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.0|