View source on GitHub |
Provides logic for walking down XML tree and pulling data.
Inherits From: expected_type
Methods
ProcessQueueNode
ProcessQueueNode(
node
)
Processes XML <queue>
nodes into Queue objects.
The following information is parsed out:
- name
- mode: can be either push or pull
- retry-parameters: task-retry-limit
For push queues only:
- task-age-limit
- min-backoff-seconds
- max-back-off-seconds
- max-doubling
- bucket-size
- max-concurrent-requests
- rate: how often tasks are processed on this queue.
- target: version of application on which tasks on this queue will be invoked.
For pull queues only:
- acl: access control list - lists user and writer email addresses.
Args | |
---|---|
node
|
Current <queue> XML node being processed.
|
ProcessXml
ProcessXml(
xml_str
)
Parses XML string and returns object representation of relevant info.
Args | |
---|---|
xml_str
|
The XML string. |
Returns | |
---|---|
A QueueXml object containing information about task queue
specifications from the XML.
|
Raises | |
---|---|
AppEngineConfigException
|
In case of malformed XML or illegal inputs. |