There is an http interface to the Back4 service that can be used to monitor Back4 activities. It works by listening for requests at a specific address, configured in the WebUrlPrefix parameter in the Back4 configuration.
NOTE: The Back4 service must be running for these commands to be available.
Command |
Description |
QUERY_TASKS |
Returns an xml containing the list of all current tasks at the service (both pending or in execution). |
QUERY_PEND_TASKS |
Returns an xml containing the list of all pending tasks at the service. |
QUERY_EXEC_TASKS |
Returns an xml containing the list of all tasks currently in execution at the service. |
QUERY_LOG |
Returns an xml containing the ordered list of executed tasks. It accepts the following parameters: - PRIORITY-FROM: Retrieve only tasks log entries with this or greater priority. - PRIORITY-TO: Retrieve only tasks log entries with this or lower priority. |
PAUSE |
Directs the service to stop processing tasks and to stop polling the database for new tasks. Note, this command does not stop the Back4 Service. |
RESUME |
Resumes the service after a pause. |
FORCE_POLLING |
Forces the service to m poll the database for new tasks. Particularly useful when the service is paused. |
GET_CONFIG |
Returns the current Back4 service configuration in xml. This command requires ManageTasks privileges. |
RETRY_TASKS |
Re-schedule tasks from the database executed task log entries. It accepts the following parameters: - IDS: List of comma separated database ids of the task log entries (required). NOTE: Only tasks of type DBTask (Publish and ObjsWF) can be re-scheduled. |
NOTE
Task Log queries are returned in descending date and time order, so when used together with the MAX parameter it will return the most recent entries up to the Max value.
Examples:
http://localhost:7373/PAUSE
http://localhost:7373/QUERY_LOG?FROM=2008-09-24T14:31:13.220Z&MAX=50
http://localhost:7373/RETRY_TASKS?Ids=73,128,157
See also