amps-python-client 5.3.4.1__zip

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (550) hide show
  1. amps-python-client-5.3.4.1/HISTORY +7 -0
  2. amps-python-client-5.3.4.1/LICENSE +157 -0
  3. amps-python-client-5.3.4.1/PKG-INFO +112 -0
  4. amps-python-client-5.3.4.1/README.md +96 -0
  5. amps-python-client-5.3.4.1/docs/command-reference/doctrees/chapters/ack-messages.doctree +0 -0
  6. amps-python-client-5.3.4.1/docs/command-reference/doctrees/chapters/content-messages.doctree +0 -0
  7. amps-python-client-5.3.4.1/docs/command-reference/doctrees/chapters/intro.doctree +0 -0
  8. amps-python-client-5.3.4.1/docs/command-reference/doctrees/chapters/logon.doctree +0 -0
  9. amps-python-client-5.3.4.1/docs/command-reference/doctrees/chapters/protocol-reference.doctree +0 -0
  10. amps-python-client-5.3.4.1/docs/command-reference/doctrees/chapters/publishing.doctree +0 -0
  11. amps-python-client-5.3.4.1/docs/command-reference/doctrees/chapters/query-delimiters.doctree +0 -0
  12. amps-python-client-5.3.4.1/docs/command-reference/doctrees/chapters/query-subscribe.doctree +0 -0
  13. amps-python-client-5.3.4.1/docs/command-reference/doctrees/chapters/removing.doctree +0 -0
  14. amps-python-client-5.3.4.1/docs/command-reference/doctrees/chapters/utilities.doctree +0 -0
  15. amps-python-client-5.3.4.1/docs/command-reference/doctrees/environment.pickle +0 -0
  16. amps-python-client-5.3.4.1/docs/command-reference/doctrees/index.doctree +0 -0
  17. amps-python-client-5.3.4.1/docs/command-reference/html/.buildinfo +4 -0
  18. amps-python-client-5.3.4.1/docs/command-reference/html/_images/caution.svg +25 -0
  19. amps-python-client-5.3.4.1/docs/command-reference/html/_sources/chapters/ack-messages.rst.txt +32 -0
  20. amps-python-client-5.3.4.1/docs/command-reference/html/_sources/chapters/content-messages.rst.txt +27 -0
  21. amps-python-client-5.3.4.1/docs/command-reference/html/_sources/chapters/intro.rst.txt +43 -0
  22. amps-python-client-5.3.4.1/docs/command-reference/html/_sources/chapters/logon.rst.txt +231 -0
  23. amps-python-client-5.3.4.1/docs/command-reference/html/_sources/chapters/protocol-reference.rst.txt +1474 -0
  24. amps-python-client-5.3.4.1/docs/command-reference/html/_sources/chapters/publishing.rst.txt +25 -0
  25. amps-python-client-5.3.4.1/docs/command-reference/html/_sources/chapters/query-delimiters.rst.txt +12 -0
  26. amps-python-client-5.3.4.1/docs/command-reference/html/_sources/chapters/query-subscribe.rst.txt +23 -0
  27. amps-python-client-5.3.4.1/docs/command-reference/html/_sources/chapters/removing.rst.txt +6 -0
  28. amps-python-client-5.3.4.1/docs/command-reference/html/_sources/chapters/utilities.rst.txt +13 -0
  29. amps-python-client-5.3.4.1/docs/command-reference/html/_sources/index.rst.txt +56 -0
  30. amps-python-client-5.3.4.1/docs/command-reference/html/_static/ajax-loader.gif +0 -0
  31. amps-python-client-5.3.4.1/docs/command-reference/html/_static/alabaster.css +699 -0
  32. amps-python-client-5.3.4.1/docs/command-reference/html/_static/basic.css +632 -0
  33. amps-python-client-5.3.4.1/docs/command-reference/html/_static/comment-bright.png +0 -0
  34. amps-python-client-5.3.4.1/docs/command-reference/html/_static/comment-close.png +0 -0
  35. amps-python-client-5.3.4.1/docs/command-reference/html/_static/comment.png +0 -0
  36. amps-python-client-5.3.4.1/docs/command-reference/html/_static/custom.css +192 -0
  37. amps-python-client-5.3.4.1/docs/command-reference/html/_static/custom.css.backup +161 -0
  38. amps-python-client-5.3.4.1/docs/command-reference/html/_static/doctools.js +287 -0
  39. amps-python-client-5.3.4.1/docs/command-reference/html/_static/down-pressed.png +0 -0
  40. amps-python-client-5.3.4.1/docs/command-reference/html/_static/down.png +0 -0
  41. amps-python-client-5.3.4.1/docs/command-reference/html/_static/file.png +0 -0
  42. amps-python-client-5.3.4.1/docs/command-reference/html/_static/flag_logo.png +0 -0
  43. amps-python-client-5.3.4.1/docs/command-reference/html/_static/flag_logo.svg +153 -0
  44. amps-python-client-5.3.4.1/docs/command-reference/html/_static/jquery-3.1.0.js +10074 -0
  45. amps-python-client-5.3.4.1/docs/command-reference/html/_static/jquery.js +4 -0
  46. amps-python-client-5.3.4.1/docs/command-reference/html/_static/minus.png +0 -0
  47. amps-python-client-5.3.4.1/docs/command-reference/html/_static/plus.png +0 -0
  48. amps-python-client-5.3.4.1/docs/command-reference/html/_static/pygments.css +74 -0
  49. amps-python-client-5.3.4.1/docs/command-reference/html/_static/searchtools.js +758 -0
  50. amps-python-client-5.3.4.1/docs/command-reference/html/_static/underscore-1.3.1.js +999 -0
  51. amps-python-client-5.3.4.1/docs/command-reference/html/_static/underscore.js +31 -0
  52. amps-python-client-5.3.4.1/docs/command-reference/html/_static/up-pressed.png +0 -0
  53. amps-python-client-5.3.4.1/docs/command-reference/html/_static/up.png +0 -0
  54. amps-python-client-5.3.4.1/docs/command-reference/html/_static/websupport.js +808 -0
  55. amps-python-client-5.3.4.1/docs/command-reference/html/chapters/ack-messages.html +417 -0
  56. amps-python-client-5.3.4.1/docs/command-reference/html/chapters/content-messages.html +417 -0
  57. amps-python-client-5.3.4.1/docs/command-reference/html/chapters/intro.html +126 -0
  58. amps-python-client-5.3.4.1/docs/command-reference/html/chapters/logon.html +295 -0
  59. amps-python-client-5.3.4.1/docs/command-reference/html/chapters/protocol-reference.html +1190 -0
  60. amps-python-client-5.3.4.1/docs/command-reference/html/chapters/publishing.html +436 -0
  61. amps-python-client-5.3.4.1/docs/command-reference/html/chapters/query-delimiters.html +173 -0
  62. amps-python-client-5.3.4.1/docs/command-reference/html/chapters/query-subscribe.html +2123 -0
  63. amps-python-client-5.3.4.1/docs/command-reference/html/chapters/removing.html +299 -0
  64. amps-python-client-5.3.4.1/docs/command-reference/html/chapters/utilities.html +287 -0
  65. amps-python-client-5.3.4.1/docs/command-reference/html/genindex.html +97 -0
  66. amps-python-client-5.3.4.1/docs/command-reference/html/index.html +138 -0
  67. amps-python-client-5.3.4.1/docs/command-reference/html/objects.inv +0 -0
  68. amps-python-client-5.3.4.1/docs/command-reference/html/search.html +107 -0
  69. amps-python-client-5.3.4.1/docs/command-reference/html/searchindex.js +1 -0
  70. amps-python-client-5.3.4.1/docs/html/.buildinfo +4 -0
  71. amps-python-client-5.3.4.1/docs/html/_sources/code.rst.txt +6 -0
  72. amps-python-client-5.3.4.1/docs/html/_sources/index.rst.txt +29 -0
  73. amps-python-client-5.3.4.1/docs/html/_static/ajax-loader.gif +0 -0
  74. amps-python-client-5.3.4.1/docs/html/_static/basic.css +632 -0
  75. amps-python-client-5.3.4.1/docs/html/_static/classic.css +261 -0
  76. amps-python-client-5.3.4.1/docs/html/_static/comment-bright.png +0 -0
  77. amps-python-client-5.3.4.1/docs/html/_static/comment-close.png +0 -0
  78. amps-python-client-5.3.4.1/docs/html/_static/comment.png +0 -0
  79. amps-python-client-5.3.4.1/docs/html/_static/default.css +1 -0
  80. amps-python-client-5.3.4.1/docs/html/_static/doctools.js +287 -0
  81. amps-python-client-5.3.4.1/docs/html/_static/down-pressed.png +0 -0
  82. amps-python-client-5.3.4.1/docs/html/_static/down.png +0 -0
  83. amps-python-client-5.3.4.1/docs/html/_static/file.png +0 -0
  84. amps-python-client-5.3.4.1/docs/html/_static/jquery-3.1.0.js +10074 -0
  85. amps-python-client-5.3.4.1/docs/html/_static/jquery.js +4 -0
  86. amps-python-client-5.3.4.1/docs/html/_static/minus.png +0 -0
  87. amps-python-client-5.3.4.1/docs/html/_static/plus.png +0 -0
  88. amps-python-client-5.3.4.1/docs/html/_static/pygments.css +74 -0
  89. amps-python-client-5.3.4.1/docs/html/_static/searchtools.js +758 -0
  90. amps-python-client-5.3.4.1/docs/html/_static/sidebar.js +159 -0
  91. amps-python-client-5.3.4.1/docs/html/_static/underscore-1.3.1.js +999 -0
  92. amps-python-client-5.3.4.1/docs/html/_static/underscore.js +31 -0
  93. amps-python-client-5.3.4.1/docs/html/_static/up-pressed.png +0 -0
  94. amps-python-client-5.3.4.1/docs/html/_static/up.png +0 -0
  95. amps-python-client-5.3.4.1/docs/html/_static/websupport.js +808 -0
  96. amps-python-client-5.3.4.1/docs/html/code.html +6503 -0
  97. amps-python-client-5.3.4.1/docs/html/genindex.html +1361 -0
  98. amps-python-client-5.3.4.1/docs/html/index.html +131 -0
  99. amps-python-client-5.3.4.1/docs/html/objects.inv +0 -0
  100. amps-python-client-5.3.4.1/docs/html/py-modindex.html +111 -0
  101. amps-python-client-5.3.4.1/docs/html/search.html +107 -0
  102. amps-python-client-5.3.4.1/docs/html/searchindex.js +1 -0
  103. amps-python-client-5.3.4.1/docs/python/doctrees/chapters/advanced-topics.doctree +0 -0
  104. amps-python-client-5.3.4.1/docs/python/doctrees/chapters/cpp-compiler-list.doctree +0 -0
  105. amps-python-client-5.3.4.1/docs/python/doctrees/chapters/cpp-feature-table.doctree +0 -0
  106. amps-python-client-5.3.4.1/docs/python/doctrees/chapters/creating-commands.doctree +0 -0
  107. amps-python-client-5.3.4.1/docs/python/doctrees/chapters/deltas.doctree +0 -0
  108. amps-python-client-5.3.4.1/docs/python/doctrees/chapters/error-handling.doctree +0 -0
  109. amps-python-client-5.3.4.1/docs/python/doctrees/chapters/exceptions.doctree +0 -0
  110. amps-python-client-5.3.4.1/docs/python/doctrees/chapters/first-program.doctree +0 -0
  111. amps-python-client-5.3.4.1/docs/python/doctrees/chapters/high-availability.doctree +0 -0
  112. amps-python-client-5.3.4.1/docs/python/doctrees/chapters/installing.doctree +0 -0
  113. amps-python-client-5.3.4.1/docs/python/doctrees/chapters/introduction.doctree +0 -0
  114. amps-python-client-5.3.4.1/docs/python/doctrees/chapters/moving-from-python-lite.doctree +0 -0
  115. amps-python-client-5.3.4.1/docs/python/doctrees/chapters/performance-tips.doctree +0 -0
  116. amps-python-client-5.3.4.1/docs/python/doctrees/chapters/queues.doctree +0 -0
  117. amps-python-client-5.3.4.1/docs/python/doctrees/chapters/sow.doctree +0 -0
  118. amps-python-client-5.3.4.1/docs/python/doctrees/chapters/subscriptions.doctree +0 -0
  119. amps-python-client-5.3.4.1/docs/python/doctrees/chapters/utilities.doctree +0 -0
  120. amps-python-client-5.3.4.1/docs/python/doctrees/environment.pickle +0 -0
  121. amps-python-client-5.3.4.1/docs/python/doctrees/index.doctree +0 -0
  122. amps-python-client-5.3.4.1/docs/python/html/.buildinfo +4 -0
  123. amps-python-client-5.3.4.1/docs/python/html/_images/caution.png +0 -0
  124. amps-python-client-5.3.4.1/docs/python/html/_images/caution.svg +25 -0
  125. amps-python-client-5.3.4.1/docs/python/html/_images/connection_string.svg +461 -0
  126. amps-python-client-5.3.4.1/docs/python/html/_images/important.png +0 -0
  127. amps-python-client-5.3.4.1/docs/python/html/_images/important.svg +25 -0
  128. amps-python-client-5.3.4.1/docs/python/html/_images/tip.png +0 -0
  129. amps-python-client-5.3.4.1/docs/python/html/_images/tip.svg +31 -0
  130. amps-python-client-5.3.4.1/docs/python/html/_images/warning.png +0 -0
  131. amps-python-client-5.3.4.1/docs/python/html/_sources/chapters/advanced-topics.rst.txt +398 -0
  132. amps-python-client-5.3.4.1/docs/python/html/_sources/chapters/cpp-compiler-list.rst.txt +6 -0
  133. amps-python-client-5.3.4.1/docs/python/html/_sources/chapters/cpp-feature-table.rst.txt +26 -0
  134. amps-python-client-5.3.4.1/docs/python/html/_sources/chapters/creating-commands.rst.txt +159 -0
  135. amps-python-client-5.3.4.1/docs/python/html/_sources/chapters/deltas.rst.txt +79 -0
  136. amps-python-client-5.3.4.1/docs/python/html/_sources/chapters/error-handling.rst.txt +482 -0
  137. amps-python-client-5.3.4.1/docs/python/html/_sources/chapters/exceptions.rst.txt +128 -0
  138. amps-python-client-5.3.4.1/docs/python/html/_sources/chapters/first-program.rst.txt +142 -0
  139. amps-python-client-5.3.4.1/docs/python/html/_sources/chapters/high-availability.rst.txt +876 -0
  140. amps-python-client-5.3.4.1/docs/python/html/_sources/chapters/installing.rst.txt +184 -0
  141. amps-python-client-5.3.4.1/docs/python/html/_sources/chapters/introduction.rst.txt +50 -0
  142. amps-python-client-5.3.4.1/docs/python/html/_sources/chapters/moving-from-python-lite.rst.txt +32 -0
  143. amps-python-client-5.3.4.1/docs/python/html/_sources/chapters/performance-tips.rst.txt +434 -0
  144. amps-python-client-5.3.4.1/docs/python/html/_sources/chapters/queues.rst.txt +282 -0
  145. amps-python-client-5.3.4.1/docs/python/html/_sources/chapters/sow.rst.txt +292 -0
  146. amps-python-client-5.3.4.1/docs/python/html/_sources/chapters/subscriptions.rst.txt +374 -0
  147. amps-python-client-5.3.4.1/docs/python/html/_sources/chapters/utilities.rst.txt +214 -0
  148. amps-python-client-5.3.4.1/docs/python/html/_sources/index.rst.txt +44 -0
  149. amps-python-client-5.3.4.1/docs/python/html/_static/ajax-loader.gif +0 -0
  150. amps-python-client-5.3.4.1/docs/python/html/_static/alabaster.css +699 -0
  151. amps-python-client-5.3.4.1/docs/python/html/_static/basic.css +632 -0
  152. amps-python-client-5.3.4.1/docs/python/html/_static/comment-bright.png +0 -0
  153. amps-python-client-5.3.4.1/docs/python/html/_static/comment-close.png +0 -0
  154. amps-python-client-5.3.4.1/docs/python/html/_static/comment.png +0 -0
  155. amps-python-client-5.3.4.1/docs/python/html/_static/custom.css +192 -0
  156. amps-python-client-5.3.4.1/docs/python/html/_static/custom.css.backup +161 -0
  157. amps-python-client-5.3.4.1/docs/python/html/_static/doctools.js +287 -0
  158. amps-python-client-5.3.4.1/docs/python/html/_static/down-pressed.png +0 -0
  159. amps-python-client-5.3.4.1/docs/python/html/_static/down.png +0 -0
  160. amps-python-client-5.3.4.1/docs/python/html/_static/file.png +0 -0
  161. amps-python-client-5.3.4.1/docs/python/html/_static/flag_logo.png +0 -0
  162. amps-python-client-5.3.4.1/docs/python/html/_static/flag_logo.svg +153 -0
  163. amps-python-client-5.3.4.1/docs/python/html/_static/jquery-3.1.0.js +10074 -0
  164. amps-python-client-5.3.4.1/docs/python/html/_static/jquery.js +4 -0
  165. amps-python-client-5.3.4.1/docs/python/html/_static/minus.png +0 -0
  166. amps-python-client-5.3.4.1/docs/python/html/_static/plus.png +0 -0
  167. amps-python-client-5.3.4.1/docs/python/html/_static/pygments.css +74 -0
  168. amps-python-client-5.3.4.1/docs/python/html/_static/searchtools.js +758 -0
  169. amps-python-client-5.3.4.1/docs/python/html/_static/underscore-1.3.1.js +999 -0
  170. amps-python-client-5.3.4.1/docs/python/html/_static/underscore.js +31 -0
  171. amps-python-client-5.3.4.1/docs/python/html/_static/up-pressed.png +0 -0
  172. amps-python-client-5.3.4.1/docs/python/html/_static/up.png +0 -0
  173. amps-python-client-5.3.4.1/docs/python/html/_static/websupport.js +808 -0
  174. amps-python-client-5.3.4.1/docs/python/html/chapters/advanced-topics.html +447 -0
  175. amps-python-client-5.3.4.1/docs/python/html/chapters/cpp-compiler-list.html +92 -0
  176. amps-python-client-5.3.4.1/docs/python/html/chapters/cpp-feature-table.html +156 -0
  177. amps-python-client-5.3.4.1/docs/python/html/chapters/creating-commands.html +2837 -0
  178. amps-python-client-5.3.4.1/docs/python/html/chapters/deltas.html +169 -0
  179. amps-python-client-5.3.4.1/docs/python/html/chapters/error-handling.html +746 -0
  180. amps-python-client-5.3.4.1/docs/python/html/chapters/exceptions.html +272 -0
  181. amps-python-client-5.3.4.1/docs/python/html/chapters/first-program.html +499 -0
  182. amps-python-client-5.3.4.1/docs/python/html/chapters/high-availability.html +1014 -0
  183. amps-python-client-5.3.4.1/docs/python/html/chapters/installing.html +264 -0
  184. amps-python-client-5.3.4.1/docs/python/html/chapters/introduction.html +245 -0
  185. amps-python-client-5.3.4.1/docs/python/html/chapters/moving-from-python-lite.html +118 -0
  186. amps-python-client-5.3.4.1/docs/python/html/chapters/performance-tips.html +499 -0
  187. amps-python-client-5.3.4.1/docs/python/html/chapters/queues.html +352 -0
  188. amps-python-client-5.3.4.1/docs/python/html/chapters/sow.html +381 -0
  189. amps-python-client-5.3.4.1/docs/python/html/chapters/subscriptions.html +535 -0
  190. amps-python-client-5.3.4.1/docs/python/html/chapters/utilities.html +302 -0
  191. amps-python-client-5.3.4.1/docs/python/html/genindex.html +351 -0
  192. amps-python-client-5.3.4.1/docs/python/html/index.html +380 -0
  193. amps-python-client-5.3.4.1/docs/python/html/objects.inv +0 -0
  194. amps-python-client-5.3.4.1/docs/python/html/search.html +107 -0
  195. amps-python-client-5.3.4.1/docs/python/html/searchindex.js +1 -0
  196. amps-python-client-5.3.4.1/docs/python-quickstart/doctrees/chapters/crankitup.doctree +0 -0
  197. amps-python-client-5.3.4.1/docs/python-quickstart/doctrees/chapters/equipment.doctree +0 -0
  198. amps-python-client-5.3.4.1/docs/python-quickstart/doctrees/environment.pickle +0 -0
  199. amps-python-client-5.3.4.1/docs/python-quickstart/doctrees/index.doctree +0 -0
  200. amps-python-client-5.3.4.1/docs/python-quickstart/html/.buildinfo +4 -0
  201. amps-python-client-5.3.4.1/docs/python-quickstart/html/_sources/chapters/crankitup.rst.txt +155 -0
  202. amps-python-client-5.3.4.1/docs/python-quickstart/html/_sources/chapters/equipment.rst.txt +19 -0
  203. amps-python-client-5.3.4.1/docs/python-quickstart/html/_sources/index.rst.txt +20 -0
  204. amps-python-client-5.3.4.1/docs/python-quickstart/html/_static/ajax-loader.gif +0 -0
  205. amps-python-client-5.3.4.1/docs/python-quickstart/html/_static/alabaster.css +699 -0
  206. amps-python-client-5.3.4.1/docs/python-quickstart/html/_static/basic.css +632 -0
  207. amps-python-client-5.3.4.1/docs/python-quickstart/html/_static/comment-bright.png +0 -0
  208. amps-python-client-5.3.4.1/docs/python-quickstart/html/_static/comment-close.png +0 -0
  209. amps-python-client-5.3.4.1/docs/python-quickstart/html/_static/comment.png +0 -0
  210. amps-python-client-5.3.4.1/docs/python-quickstart/html/_static/custom.css +192 -0
  211. amps-python-client-5.3.4.1/docs/python-quickstart/html/_static/custom.css.backup +161 -0
  212. amps-python-client-5.3.4.1/docs/python-quickstart/html/_static/doctools.js +287 -0
  213. amps-python-client-5.3.4.1/docs/python-quickstart/html/_static/down-pressed.png +0 -0
  214. amps-python-client-5.3.4.1/docs/python-quickstart/html/_static/down.png +0 -0
  215. amps-python-client-5.3.4.1/docs/python-quickstart/html/_static/file.png +0 -0
  216. amps-python-client-5.3.4.1/docs/python-quickstart/html/_static/flag_logo.png +0 -0
  217. amps-python-client-5.3.4.1/docs/python-quickstart/html/_static/flag_logo.svg +153 -0
  218. amps-python-client-5.3.4.1/docs/python-quickstart/html/_static/jquery-3.1.0.js +10074 -0
  219. amps-python-client-5.3.4.1/docs/python-quickstart/html/_static/jquery.js +4 -0
  220. amps-python-client-5.3.4.1/docs/python-quickstart/html/_static/minus.png +0 -0
  221. amps-python-client-5.3.4.1/docs/python-quickstart/html/_static/plus.png +0 -0
  222. amps-python-client-5.3.4.1/docs/python-quickstart/html/_static/pygments.css +74 -0
  223. amps-python-client-5.3.4.1/docs/python-quickstart/html/_static/searchtools.js +758 -0
  224. amps-python-client-5.3.4.1/docs/python-quickstart/html/_static/underscore-1.3.1.js +999 -0
  225. amps-python-client-5.3.4.1/docs/python-quickstart/html/_static/underscore.js +31 -0
  226. amps-python-client-5.3.4.1/docs/python-quickstart/html/_static/up-pressed.png +0 -0
  227. amps-python-client-5.3.4.1/docs/python-quickstart/html/_static/up.png +0 -0
  228. amps-python-client-5.3.4.1/docs/python-quickstart/html/_static/websupport.js +808 -0
  229. amps-python-client-5.3.4.1/docs/python-quickstart/html/chapters/crankitup.html +271 -0
  230. amps-python-client-5.3.4.1/docs/python-quickstart/html/chapters/equipment.html +105 -0
  231. amps-python-client-5.3.4.1/docs/python-quickstart/html/genindex.html +97 -0
  232. amps-python-client-5.3.4.1/docs/python-quickstart/html/index.html +382 -0
  233. amps-python-client-5.3.4.1/docs/python-quickstart/html/objects.inv +0 -0
  234. amps-python-client-5.3.4.1/docs/python-quickstart/html/search.html +107 -0
  235. amps-python-client-5.3.4.1/docs/python-quickstart/html/searchindex.js +1 -0
  236. amps-python-client-5.3.4.1/docs/resources/custom.css +9 -0
  237. amps-python-client-5.3.4.1/docs/resources/flag_logo.svg +153 -0
  238. amps-python-client-5.3.4.1/docs/user-guide/doctrees/chapters/acks.doctree +0 -0
  239. amps-python-client-5.3.4.1/docs/user-guide/doctrees/chapters/actions.doctree +0 -0
  240. amps-python-client-5.3.4.1/docs/user-guide/doctrees/chapters/amps-statistics.doctree +0 -0
  241. amps-python-client-5.3.4.1/docs/user-guide/doctrees/chapters/amps_expressions.doctree +0 -0
  242. amps-python-client-5.3.4.1/docs/user-guide/doctrees/chapters/amps_functions.doctree +0 -0
  243. amps-python-client-5.3.4.1/docs/user-guide/doctrees/chapters/auxiliary_modules.doctree +0 -0
  244. amps-python-client-5.3.4.1/docs/user-guide/doctrees/chapters/config-file-shortcuts.doctree +0 -0
  245. amps-python-client-5.3.4.1/docs/user-guide/doctrees/chapters/conflated_topics.doctree +0 -0
  246. amps-python-client-5.3.4.1/docs/user-guide/doctrees/chapters/constructing-fields.doctree +0 -0
  247. amps-python-client-5.3.4.1/docs/user-guide/doctrees/chapters/daemon.doctree +0 -0
  248. amps-python-client-5.3.4.1/docs/user-guide/doctrees/chapters/delta.doctree +0 -0
  249. amps-python-client-5.3.4.1/docs/user-guide/doctrees/chapters/distribution.doctree +0 -0
  250. amps-python-client-5.3.4.1/docs/user-guide/doctrees/chapters/enrichment.doctree +0 -0
  251. amps-python-client-5.3.4.1/docs/user-guide/doctrees/chapters/events.doctree +0 -0
  252. amps-python-client-5.3.4.1/docs/user-guide/doctrees/chapters/file_format_versions.doctree +0 -0
  253. amps-python-client-5.3.4.1/docs/user-guide/doctrees/chapters/glossary.doctree +0 -0
  254. amps-python-client-5.3.4.1/docs/user-guide/doctrees/chapters/ha.doctree +0 -0
  255. amps-python-client-5.3.4.1/docs/user-guide/doctrees/chapters/installing_and_starting.doctree +0 -0
  256. amps-python-client-5.3.4.1/docs/user-guide/doctrees/chapters/intro.doctree +0 -0
  257. amps-python-client-5.3.4.1/docs/user-guide/doctrees/chapters/logging.doctree +0 -0
  258. amps-python-client-5.3.4.1/docs/user-guide/doctrees/chapters/messageTypes.doctree +0 -0
  259. amps-python-client-5.3.4.1/docs/user-guide/doctrees/chapters/monitoring.doctree +0 -0
  260. amps-python-client-5.3.4.1/docs/user-guide/doctrees/chapters/oof.doctree +0 -0
  261. amps-python-client-5.3.4.1/docs/user-guide/doctrees/chapters/operation.doctree +0 -0
  262. amps-python-client-5.3.4.1/docs/user-guide/doctrees/chapters/pub_sub.doctree +0 -0
  263. amps-python-client-5.3.4.1/docs/user-guide/doctrees/chapters/queues.doctree +0 -0
  264. amps-python-client-5.3.4.1/docs/user-guide/doctrees/chapters/replication.doctree +0 -0
  265. amps-python-client-5.3.4.1/docs/user-guide/doctrees/chapters/securing.doctree +0 -0
  266. amps-python-client-5.3.4.1/docs/user-guide/doctrees/chapters/sow.doctree +0 -0
  267. amps-python-client-5.3.4.1/docs/user-guide/doctrees/chapters/sow_queries.doctree +0 -0
  268. amps-python-client-5.3.4.1/docs/user-guide/doctrees/chapters/spark.doctree +0 -0
  269. amps-python-client-5.3.4.1/docs/user-guide/doctrees/chapters/transports.doctree +0 -0
  270. amps-python-client-5.3.4.1/docs/user-guide/doctrees/chapters/troubleshooting.doctree +0 -0
  271. amps-python-client-5.3.4.1/docs/user-guide/doctrees/chapters/txlog.doctree +0 -0
  272. amps-python-client-5.3.4.1/docs/user-guide/doctrees/chapters/usecases.doctree +0 -0
  273. amps-python-client-5.3.4.1/docs/user-guide/doctrees/chapters/utilities.doctree +0 -0
  274. amps-python-client-5.3.4.1/docs/user-guide/doctrees/chapters/views.doctree +0 -0
  275. amps-python-client-5.3.4.1/docs/user-guide/doctrees/environment.pickle +0 -0
  276. amps-python-client-5.3.4.1/docs/user-guide/doctrees/index.doctree +0 -0
  277. amps-python-client-5.3.4.1/docs/user-guide/html/.buildinfo +4 -0
  278. amps-python-client-5.3.4.1/docs/user-guide/html/_images/AMPS-Queues-Intro.svg +1330 -0
  279. amps-python-client-5.3.4.1/docs/user-guide/html/_images/GeoRepl.png +0 -0
  280. amps-python-client-5.3.4.1/docs/user-guide/html/_images/HA_async_ack.png +0 -0
  281. amps-python-client-5.3.4.1/docs/user-guide/html/_images/HA_sync_ack.png +0 -0
  282. amps-python-client-5.3.4.1/docs/user-guide/html/_images/Hot-Hot-Replication.png +0 -0
  283. amps-python-client-5.3.4.1/docs/user-guide/html/_images/MessageOrdering.svg +235 -0
  284. amps-python-client-5.3.4.1/docs/user-guide/html/_images/OOF5.png +0 -0
  285. amps-python-client-5.3.4.1/docs/user-guide/html/_images/OOF6.png +0 -0
  286. amps-python-client-5.3.4.1/docs/user-guide/html/_images/OOF7.png +0 -0
  287. amps-python-client-5.3.4.1/docs/user-guide/html/_images/OOF8.png +0 -0
  288. amps-python-client-5.3.4.1/docs/user-guide/html/_images/PubSub1.svg +1 -0
  289. amps-python-client-5.3.4.1/docs/user-guide/html/_images/PubSub2.svg +1 -0
  290. amps-python-client-5.3.4.1/docs/user-guide/html/_images/SOWAndSubscribeAndReplace.svg +684 -0
  291. amps-python-client-5.3.4.1/docs/user-guide/html/_images/SOWQuery1.svg +402 -0
  292. amps-python-client-5.3.4.1/docs/user-guide/html/_images/SOWQuery2.svg +505 -0
  293. amps-python-client-5.3.4.1/docs/user-guide/html/_images/UseCaseFig1.svg +1 -0
  294. amps-python-client-5.3.4.1/docs/user-guide/html/_images/UseCaseFig2.svg +1 -0
  295. amps-python-client-5.3.4.1/docs/user-guide/html/_images/UseCaseFig3.svg +1 -0
  296. amps-python-client-5.3.4.1/docs/user-guide/html/_images/UseCaseFig4.svg +1 -0
  297. amps-python-client-5.3.4.1/docs/user-guide/html/_images/caution.png +0 -0
  298. amps-python-client-5.3.4.1/docs/user-guide/html/_images/caution.svg +25 -0
  299. amps-python-client-5.3.4.1/docs/user-guide/html/_images/chicago_group.png +0 -0
  300. amps-python-client-5.3.4.1/docs/user-guide/html/_images/delta_original_messages.png +0 -0
  301. amps-python-client-5.3.4.1/docs/user-guide/html/_images/delta_update_message.png +0 -0
  302. amps-python-client-5.3.4.1/docs/user-guide/html/_images/important.png +0 -0
  303. amps-python-client-5.3.4.1/docs/user-guide/html/_images/important.svg +25 -0
  304. amps-python-client-5.3.4.1/docs/user-guide/html/_images/inline_view_conflation.svg +1 -0
  305. amps-python-client-5.3.4.1/docs/user-guide/html/_images/paginated_subs_pub.png +0 -0
  306. amps-python-client-5.3.4.1/docs/user-guide/html/_images/paginated_subs_sub.png +0 -0
  307. amps-python-client-5.3.4.1/docs/user-guide/html/_images/queue_usage_overview.svg +627 -0
  308. amps-python-client-5.3.4.1/docs/user-guide/html/_images/replication_hub.png +0 -0
  309. amps-python-client-5.3.4.1/docs/user-guide/html/_images/replication_scenario_with_ha.png +0 -0
  310. amps-python-client-5.3.4.1/docs/user-guide/html/_images/sow_overview_1.svg +248 -0
  311. amps-python-client-5.3.4.1/docs/user-guide/html/_images/sow_overview_2.svg +183 -0
  312. amps-python-client-5.3.4.1/docs/user-guide/html/_images/sow_update_sequence.svg +1 -0
  313. amps-python-client-5.3.4.1/docs/user-guide/html/_images/tip.png +0 -0
  314. amps-python-client-5.3.4.1/docs/user-guide/html/_images/tip.svg +31 -0
  315. amps-python-client-5.3.4.1/docs/user-guide/html/_images/warning.png +0 -0
  316. amps-python-client-5.3.4.1/docs/user-guide/html/_images/warning.svg +23 -0
  317. amps-python-client-5.3.4.1/docs/user-guide/html/_sources/chapters/acks.rst.txt +232 -0
  318. amps-python-client-5.3.4.1/docs/user-guide/html/_sources/chapters/actions.rst.txt +111 -0
  319. amps-python-client-5.3.4.1/docs/user-guide/html/_sources/chapters/amps-statistics.rst.txt +358 -0
  320. amps-python-client-5.3.4.1/docs/user-guide/html/_sources/chapters/amps_expressions.rst.txt +83 -0
  321. amps-python-client-5.3.4.1/docs/user-guide/html/_sources/chapters/amps_functions.rst.txt +11 -0
  322. amps-python-client-5.3.4.1/docs/user-guide/html/_sources/chapters/auxiliary_modules.rst.txt +86 -0
  323. amps-python-client-5.3.4.1/docs/user-guide/html/_sources/chapters/config-file-shortcuts.rst.txt +9 -0
  324. amps-python-client-5.3.4.1/docs/user-guide/html/_sources/chapters/conflated_topics.rst.txt +111 -0
  325. amps-python-client-5.3.4.1/docs/user-guide/html/_sources/chapters/constructing-fields.rst.txt +269 -0
  326. amps-python-client-5.3.4.1/docs/user-guide/html/_sources/chapters/daemon.rst.txt +232 -0
  327. amps-python-client-5.3.4.1/docs/user-guide/html/_sources/chapters/delta.rst.txt +556 -0
  328. amps-python-client-5.3.4.1/docs/user-guide/html/_sources/chapters/distribution.rst.txt +186 -0
  329. amps-python-client-5.3.4.1/docs/user-guide/html/_sources/chapters/enrichment.rst.txt +191 -0
  330. amps-python-client-5.3.4.1/docs/user-guide/html/_sources/chapters/events.rst.txt +39 -0
  331. amps-python-client-5.3.4.1/docs/user-guide/html/_sources/chapters/file_format_versions.rst.txt +203 -0
  332. amps-python-client-5.3.4.1/docs/user-guide/html/_sources/chapters/glossary.rst.txt +101 -0
  333. amps-python-client-5.3.4.1/docs/user-guide/html/_sources/chapters/ha.rst.txt +465 -0
  334. amps-python-client-5.3.4.1/docs/user-guide/html/_sources/chapters/installing_and_starting.rst.txt +23 -0
  335. amps-python-client-5.3.4.1/docs/user-guide/html/_sources/chapters/intro.rst.txt +116 -0
  336. amps-python-client-5.3.4.1/docs/user-guide/html/_sources/chapters/logging.rst.txt +34 -0
  337. amps-python-client-5.3.4.1/docs/user-guide/html/_sources/chapters/messageTypes.rst.txt +1398 -0
  338. amps-python-client-5.3.4.1/docs/user-guide/html/_sources/chapters/monitoring.rst.txt +326 -0
  339. amps-python-client-5.3.4.1/docs/user-guide/html/_sources/chapters/oof.rst.txt +312 -0
  340. amps-python-client-5.3.4.1/docs/user-guide/html/_sources/chapters/operation.rst.txt +27 -0
  341. amps-python-client-5.3.4.1/docs/user-guide/html/_sources/chapters/pub_sub.rst.txt +49 -0
  342. amps-python-client-5.3.4.1/docs/user-guide/html/_sources/chapters/queues.rst.txt +1351 -0
  343. amps-python-client-5.3.4.1/docs/user-guide/html/_sources/chapters/replication.rst.txt +1228 -0
  344. amps-python-client-5.3.4.1/docs/user-guide/html/_sources/chapters/securing.rst.txt +657 -0
  345. amps-python-client-5.3.4.1/docs/user-guide/html/_sources/chapters/sow.rst.txt +57 -0
  346. amps-python-client-5.3.4.1/docs/user-guide/html/_sources/chapters/sow_queries.rst.txt +25 -0
  347. amps-python-client-5.3.4.1/docs/user-guide/html/_sources/chapters/spark.rst.txt +824 -0
  348. amps-python-client-5.3.4.1/docs/user-guide/html/_sources/chapters/transports.rst.txt +291 -0
  349. amps-python-client-5.3.4.1/docs/user-guide/html/_sources/chapters/troubleshooting.rst.txt +517 -0
  350. amps-python-client-5.3.4.1/docs/user-guide/html/_sources/chapters/txlog.rst.txt +62 -0
  351. amps-python-client-5.3.4.1/docs/user-guide/html/_sources/chapters/usecases.rst.txt +21 -0
  352. amps-python-client-5.3.4.1/docs/user-guide/html/_sources/chapters/utilities.rst.txt +62 -0
  353. amps-python-client-5.3.4.1/docs/user-guide/html/_sources/chapters/views.rst.txt +175 -0
  354. amps-python-client-5.3.4.1/docs/user-guide/html/_sources/index.rst.txt +110 -0
  355. amps-python-client-5.3.4.1/docs/user-guide/html/_static/ajax-loader.gif +0 -0
  356. amps-python-client-5.3.4.1/docs/user-guide/html/_static/alabaster.css +695 -0
  357. amps-python-client-5.3.4.1/docs/user-guide/html/_static/basic.css +632 -0
  358. amps-python-client-5.3.4.1/docs/user-guide/html/_static/comment-bright.png +0 -0
  359. amps-python-client-5.3.4.1/docs/user-guide/html/_static/comment-close.png +0 -0
  360. amps-python-client-5.3.4.1/docs/user-guide/html/_static/comment.png +0 -0
  361. amps-python-client-5.3.4.1/docs/user-guide/html/_static/custom.css +192 -0
  362. amps-python-client-5.3.4.1/docs/user-guide/html/_static/custom.css.backup +161 -0
  363. amps-python-client-5.3.4.1/docs/user-guide/html/_static/doctools.js +287 -0
  364. amps-python-client-5.3.4.1/docs/user-guide/html/_static/down-pressed.png +0 -0
  365. amps-python-client-5.3.4.1/docs/user-guide/html/_static/down.png +0 -0
  366. amps-python-client-5.3.4.1/docs/user-guide/html/_static/file.png +0 -0
  367. amps-python-client-5.3.4.1/docs/user-guide/html/_static/flag_logo.png +0 -0
  368. amps-python-client-5.3.4.1/docs/user-guide/html/_static/flag_logo.svg +153 -0
  369. amps-python-client-5.3.4.1/docs/user-guide/html/_static/jquery-3.1.0.js +10074 -0
  370. amps-python-client-5.3.4.1/docs/user-guide/html/_static/jquery.js +4 -0
  371. amps-python-client-5.3.4.1/docs/user-guide/html/_static/minus.png +0 -0
  372. amps-python-client-5.3.4.1/docs/user-guide/html/_static/plus.png +0 -0
  373. amps-python-client-5.3.4.1/docs/user-guide/html/_static/pygments.css +74 -0
  374. amps-python-client-5.3.4.1/docs/user-guide/html/_static/searchtools.js +758 -0
  375. amps-python-client-5.3.4.1/docs/user-guide/html/_static/underscore-1.3.1.js +999 -0
  376. amps-python-client-5.3.4.1/docs/user-guide/html/_static/underscore.js +31 -0
  377. amps-python-client-5.3.4.1/docs/user-guide/html/_static/up-pressed.png +0 -0
  378. amps-python-client-5.3.4.1/docs/user-guide/html/_static/up.png +0 -0
  379. amps-python-client-5.3.4.1/docs/user-guide/html/_static/websupport.js +808 -0
  380. amps-python-client-5.3.4.1/docs/user-guide/html/chapters/acks.html +289 -0
  381. amps-python-client-5.3.4.1/docs/user-guide/html/chapters/actions.html +3782 -0
  382. amps-python-client-5.3.4.1/docs/user-guide/html/chapters/amps-statistics.html +439 -0
  383. amps-python-client-5.3.4.1/docs/user-guide/html/chapters/amps_expressions.html +1552 -0
  384. amps-python-client-5.3.4.1/docs/user-guide/html/chapters/amps_functions.html +1626 -0
  385. amps-python-client-5.3.4.1/docs/user-guide/html/chapters/auxiliary_modules.html +2548 -0
  386. amps-python-client-5.3.4.1/docs/user-guide/html/chapters/config-file-shortcuts.html +508 -0
  387. amps-python-client-5.3.4.1/docs/user-guide/html/chapters/conflated_topics.html +328 -0
  388. amps-python-client-5.3.4.1/docs/user-guide/html/chapters/constructing-fields.html +447 -0
  389. amps-python-client-5.3.4.1/docs/user-guide/html/chapters/daemon.html +295 -0
  390. amps-python-client-5.3.4.1/docs/user-guide/html/chapters/delta.html +609 -0
  391. amps-python-client-5.3.4.1/docs/user-guide/html/chapters/distribution.html +246 -0
  392. amps-python-client-5.3.4.1/docs/user-guide/html/chapters/enrichment.html +264 -0
  393. amps-python-client-5.3.4.1/docs/user-guide/html/chapters/events.html +449 -0
  394. amps-python-client-5.3.4.1/docs/user-guide/html/chapters/file_format_versions.html +229 -0
  395. amps-python-client-5.3.4.1/docs/user-guide/html/chapters/glossary.html +215 -0
  396. amps-python-client-5.3.4.1/docs/user-guide/html/chapters/ha.html +978 -0
  397. amps-python-client-5.3.4.1/docs/user-guide/html/chapters/installing_and_starting.html +357 -0
  398. amps-python-client-5.3.4.1/docs/user-guide/html/chapters/intro.html +572 -0
  399. amps-python-client-5.3.4.1/docs/user-guide/html/chapters/logging.html +972 -0
  400. amps-python-client-5.3.4.1/docs/user-guide/html/chapters/messageTypes.html +1280 -0
  401. amps-python-client-5.3.4.1/docs/user-guide/html/chapters/monitoring.html +718 -0
  402. amps-python-client-5.3.4.1/docs/user-guide/html/chapters/oof.html +341 -0
  403. amps-python-client-5.3.4.1/docs/user-guide/html/chapters/operation.html +1515 -0
  404. amps-python-client-5.3.4.1/docs/user-guide/html/chapters/pub_sub.html +934 -0
  405. amps-python-client-5.3.4.1/docs/user-guide/html/chapters/queues.html +1767 -0
  406. amps-python-client-5.3.4.1/docs/user-guide/html/chapters/replication.html +1777 -0
  407. amps-python-client-5.3.4.1/docs/user-guide/html/chapters/securing.html +697 -0
  408. amps-python-client-5.3.4.1/docs/user-guide/html/chapters/sow.html +1038 -0
  409. amps-python-client-5.3.4.1/docs/user-guide/html/chapters/sow_queries.html +621 -0
  410. amps-python-client-5.3.4.1/docs/user-guide/html/chapters/spark.html +819 -0
  411. amps-python-client-5.3.4.1/docs/user-guide/html/chapters/transports.html +352 -0
  412. amps-python-client-5.3.4.1/docs/user-guide/html/chapters/troubleshooting.html +530 -0
  413. amps-python-client-5.3.4.1/docs/user-guide/html/chapters/txlog.html +1013 -0
  414. amps-python-client-5.3.4.1/docs/user-guide/html/chapters/usecases.html +288 -0
  415. amps-python-client-5.3.4.1/docs/user-guide/html/chapters/utilities.html +133 -0
  416. amps-python-client-5.3.4.1/docs/user-guide/html/chapters/views.html +1120 -0
  417. amps-python-client-5.3.4.1/docs/user-guide/html/genindex.html +1261 -0
  418. amps-python-client-5.3.4.1/docs/user-guide/html/index.html +163 -0
  419. amps-python-client-5.3.4.1/docs/user-guide/html/objects.inv +0 -0
  420. amps-python-client-5.3.4.1/docs/user-guide/html/search.html +106 -0
  421. amps-python-client-5.3.4.1/docs/user-guide/html/searchindex.js +1 -0
  422. amps-python-client-5.3.4.1/include/ampspy_bookmarkstore.hpp +63 -0
  423. amps-python-client-5.3.4.1/include/ampspy_compat.h +63 -0
  424. amps-python-client-5.3.4.1/include/ampspy_defs.hpp +181 -0
  425. amps-python-client-5.3.4.1/include/ampspy_recoverypointadapter.hpp +52 -0
  426. amps-python-client-5.3.4.1/include/ampspy_shims.hpp +113 -0
  427. amps-python-client-5.3.4.1/include/ampspy_type_object.hpp +242 -0
  428. amps-python-client-5.3.4.1/include/ampspy_types.hpp +1139 -0
  429. amps-python-client-5.3.4.1/include/ampspyver.h +30 -0
  430. amps-python-client-5.3.4.1/index.html +66 -0
  431. amps-python-client-5.3.4.1/samples/AMPSConsolePublisher.py +59 -0
  432. amps-python-client-5.3.4.1/samples/AMPSConsoleSubscriber.py +63 -0
  433. amps-python-client-5.3.4.1/samples/AMPSFIXBuilderPublisher.py +71 -0
  434. amps-python-client-5.3.4.1/samples/AMPSFIXShredderSubscriber.py +69 -0
  435. amps-python-client-5.3.4.1/samples/AMPSNVFIXBuilderPublisher.py +71 -0
  436. amps-python-client-5.3.4.1/samples/AMPSNVFIXShredderSubscriber.py +67 -0
  437. amps-python-client-5.3.4.1/samples/AMPSPublishForReplay.py +81 -0
  438. amps-python-client-5.3.4.1/samples/AMPSQueueConsumer.py +69 -0
  439. amps-python-client-5.3.4.1/samples/AMPSQueuePublisher.py +59 -0
  440. amps-python-client-5.3.4.1/samples/AMPSSOWConsolePublisher.py +67 -0
  441. amps-python-client-5.3.4.1/samples/AMPSSOWConsoleSubscriber.py +77 -0
  442. amps-python-client-5.3.4.1/samples/AMPSSOWandSubscribeConsoleSubscriber.py +79 -0
  443. amps-python-client-5.3.4.1/samples/AMPSSOWandSubscribeWithOOF.py +108 -0
  444. amps-python-client-5.3.4.1/samples/AMPSSubscribeForReplay.py +128 -0
  445. amps-python-client-5.3.4.1/samples/AMPSUpdateForOOF.py +123 -0
  446. amps-python-client-5.3.4.1/samples/CompositeMessagePublisher.py +84 -0
  447. amps-python-client-5.3.4.1/samples/CompositeMessageSubscriber.py +87 -0
  448. amps-python-client-5.3.4.1/samples/RandomServerChooser.py +41 -0
  449. amps-python-client-5.3.4.1/samples/sample.xml +335 -0
  450. amps-python-client-5.3.4.1/setup.py +209 -0
  451. amps-python-client-5.3.4.1/setup_amps.py +94 -0
  452. amps-python-client-5.3.4.1/src/ampspy_shims.cpp +203 -0
  453. amps-python-client-5.3.4.1/src/ampspy_type_object.cpp +484 -0
  454. amps-python-client-5.3.4.1/src/authenticator.cpp +128 -0
  455. amps-python-client-5.3.4.1/src/bookmarkstore.cpp +238 -0
  456. amps-python-client-5.3.4.1/src/client.cpp +2430 -0
  457. amps-python-client-5.3.4.1/src/client_docs.h +956 -0
  458. amps-python-client-5.3.4.1/src/cmessagehandler.cpp +151 -0
  459. amps-python-client-5.3.4.1/src/command.cpp +164 -0
  460. amps-python-client-5.3.4.1/src/command_docs.h +194 -0
  461. amps-python-client-5.3.4.1/src/compositemessagebuilder.cpp +111 -0
  462. amps-python-client-5.3.4.1/src/compositemessageparser.cpp +146 -0
  463. amps-python-client-5.3.4.1/src/conflatingrecoverypointadapter.cpp +194 -0
  464. amps-python-client-5.3.4.1/src/cpp/include/amps/BlockPublishStore.hpp +2053 -0
  465. amps-python-client-5.3.4.1/src/cpp/include/amps/BlockStore.hpp +677 -0
  466. amps-python-client-5.3.4.1/src/cpp/include/amps/BookmarkStore.hpp +542 -0
  467. amps-python-client-5.3.4.1/src/cpp/include/amps/Buffer.hpp +214 -0
  468. amps-python-client-5.3.4.1/src/cpp/include/amps/CompositeMessageBuilder.hpp +174 -0
  469. amps-python-client-5.3.4.1/src/cpp/include/amps/CompositeMessageParser.hpp +151 -0
  470. amps-python-client-5.3.4.1/src/cpp/include/amps/DefaultServerChooser.hpp +162 -0
  471. amps-python-client-5.3.4.1/src/cpp/include/amps/Field.hpp +719 -0
  472. amps-python-client-5.3.4.1/src/cpp/include/amps/HAClient.hpp +370 -0
  473. amps-python-client-5.3.4.1/src/cpp/include/amps/HAClientImpl.hpp +460 -0
  474. amps-python-client-5.3.4.1/src/cpp/include/amps/HybridPublishStore.hpp +481 -0
  475. amps-python-client-5.3.4.1/src/cpp/include/amps/LoggedBookmarkStore.hpp +1255 -0
  476. amps-python-client-5.3.4.1/src/cpp/include/amps/MMapBookmarkStore.hpp +1283 -0
  477. amps-python-client-5.3.4.1/src/cpp/include/amps/MMapStoreBuffer.hpp +290 -0
  478. amps-python-client-5.3.4.1/src/cpp/include/amps/MemoryBookmarkStore.hpp +1622 -0
  479. amps-python-client-5.3.4.1/src/cpp/include/amps/MemoryPublishStore.hpp +66 -0
  480. amps-python-client-5.3.4.1/src/cpp/include/amps/MemoryStoreBuffer.hpp +244 -0
  481. amps-python-client-5.3.4.1/src/cpp/include/amps/MemorySubscriptionManager.hpp +850 -0
  482. amps-python-client-5.3.4.1/src/cpp/include/amps/Message.hpp +1819 -0
  483. amps-python-client-5.3.4.1/src/cpp/include/amps/MessageRouter.hpp +618 -0
  484. amps-python-client-5.3.4.1/src/cpp/include/amps/PublishStore.hpp +158 -0
  485. amps-python-client-5.3.4.1/src/cpp/include/amps/ReconnectDelayStrategy.hpp +106 -0
  486. amps-python-client-5.3.4.1/src/cpp/include/amps/ReconnectDelayStrategyImpl.hpp +317 -0
  487. amps-python-client-5.3.4.1/src/cpp/include/amps/RecoveryPoint.hpp +323 -0
  488. amps-python-client-5.3.4.1/src/cpp/include/amps/RecoveryPointAdapter.hpp +501 -0
  489. amps-python-client-5.3.4.1/src/cpp/include/amps/RingBookmarkStore.hpp +669 -0
  490. amps-python-client-5.3.4.1/src/cpp/include/amps/SOWRecoveryPointAdapter.hpp +490 -0
  491. amps-python-client-5.3.4.1/src/cpp/include/amps/ServerChooser.hpp +145 -0
  492. amps-python-client-5.3.4.1/src/cpp/include/amps/ServerChooserImpl.hpp +95 -0
  493. amps-python-client-5.3.4.1/src/cpp/include/amps/amps.h +775 -0
  494. amps-python-client-5.3.4.1/src/cpp/include/amps/amps_generated.h +46 -0
  495. amps-python-client-5.3.4.1/src/cpp/include/amps/amps_impl.h +204 -0
  496. amps-python-client-5.3.4.1/src/cpp/include/amps/amps_ssl.h +78 -0
  497. amps-python-client-5.3.4.1/src/cpp/include/amps/ampscrc.hpp +210 -0
  498. amps-python-client-5.3.4.1/src/cpp/include/amps/ampsplusplus.hpp +8817 -0
  499. amps-python-client-5.3.4.1/src/cpp/include/amps/ampsuri.h +84 -0
  500. amps-python-client-5.3.4.1/src/cpp/include/amps/ampsver.h +41 -0
  501. amps-python-client-5.3.4.1/src/cpp/include/amps/ampsver.h.in +41 -0
  502. amps-python-client-5.3.4.1/src/cpp/include/amps/constants.hpp +194 -0
  503. amps-python-client-5.3.4.1/src/cpp/include/amps/util.hpp +1692 -0
  504. amps-python-client-5.3.4.1/src/cpp/src/amps_protocol.c +688 -0
  505. amps-python-client-5.3.4.1/src/cpp/src/amps_protocol_generated.h +80 -0
  506. amps-python-client-5.3.4.1/src/cpp/src/amps_ssl.c +489 -0
  507. amps-python-client-5.3.4.1/src/cpp/src/atfork.c +446 -0
  508. amps-python-client-5.3.4.1/src/cpp/src/client.c +483 -0
  509. amps-python-client-5.3.4.1/src/cpp/src/makefile +92 -0
  510. amps-python-client-5.3.4.1/src/cpp/src/message.c +837 -0
  511. amps-python-client-5.3.4.1/src/cpp/src/message_generated.h +611 -0
  512. amps-python-client-5.3.4.1/src/cpp/src/tcp.c +1489 -0
  513. amps-python-client-5.3.4.1/src/cpp/src/tcps.c +1894 -0
  514. amps-python-client-5.3.4.1/src/cpp/src/transports.c +123 -0
  515. amps-python-client-5.3.4.1/src/cpp/src/unix.c +984 -0
  516. amps-python-client-5.3.4.1/src/cpp/src/uri.c +301 -0
  517. amps-python-client-5.3.4.1/src/exponentialdelaystrategy.cpp +137 -0
  518. amps-python-client-5.3.4.1/src/failedwritehandler.cpp +116 -0
  519. amps-python-client-5.3.4.1/src/fixbuilder.cpp +146 -0
  520. amps-python-client-5.3.4.1/src/fixeddelaystrategy.cpp +114 -0
  521. amps-python-client-5.3.4.1/src/fixshredder.cpp +105 -0
  522. amps-python-client-5.3.4.1/src/fixshredder_docs.h +38 -0
  523. amps-python-client-5.3.4.1/src/haclient.cpp +691 -0
  524. amps-python-client-5.3.4.1/src/haclient_docs.h +132 -0
  525. amps-python-client-5.3.4.1/src/hybridpublishstore.cpp +137 -0
  526. amps-python-client-5.3.4.1/src/hybridpublishstore_docs.h +31 -0
  527. amps-python-client-5.3.4.1/src/memorybookmarkstore.cpp +373 -0
  528. amps-python-client-5.3.4.1/src/memorybookmarkstore_docs.h +39 -0
  529. amps-python-client-5.3.4.1/src/memorypublishstore.cpp +160 -0
  530. amps-python-client-5.3.4.1/src/memorypublishstore_docs.h +32 -0
  531. amps-python-client-5.3.4.1/src/message.cpp +765 -0
  532. amps-python-client-5.3.4.1/src/message_docs.h +306 -0
  533. amps-python-client-5.3.4.1/src/messagestream.cpp +623 -0
  534. amps-python-client-5.3.4.1/src/messagestream_docs.h +45 -0
  535. amps-python-client-5.3.4.1/src/mmapbookmarkstore.cpp +422 -0
  536. amps-python-client-5.3.4.1/src/nvfixbuilder.cpp +160 -0
  537. amps-python-client-5.3.4.1/src/nvfixbuilder_docs.h +33 -0
  538. amps-python-client-5.3.4.1/src/nvfixshredder.cpp +99 -0
  539. amps-python-client-5.3.4.1/src/nvfixshredder_docs.h +39 -0
  540. amps-python-client-5.3.4.1/src/publishstore.cpp +183 -0
  541. amps-python-client-5.3.4.1/src/raw_wrapper.cpp +756 -0
  542. amps-python-client-5.3.4.1/src/reason.cpp +71 -0
  543. amps-python-client-5.3.4.1/src/recoverypoint.cpp +135 -0
  544. amps-python-client-5.3.4.1/src/recoverypointadapter.cpp +171 -0
  545. amps-python-client-5.3.4.1/src/ringbookmarkstore.cpp +360 -0
  546. amps-python-client-5.3.4.1/src/serverchooser.cpp +245 -0
  547. amps-python-client-5.3.4.1/src/serverchooser_docs.h +39 -0
  548. amps-python-client-5.3.4.1/src/sowrecoverypointadapter.cpp +248 -0
  549. amps-python-client-5.3.4.1/src/store.cpp +62 -0
  550. amps-python-client-5.3.4.1/src/versioninfo.cpp +175 -0
@@ -0,0 +1,79 @@
1
+ 8. Delta Publish and Subscribe
2
+ ==============================
3
+
4
+ Introduction
5
+ ------------
6
+
7
+ Delta messaging in AMPS has two independent aspects:
8
+
9
+ - delta subscribe allows subscribers to receive just the fields that
10
+ are updated within a message.
11
+
12
+ - delta publish allows publishers to update and add fields within a
13
+ message by publishing only the updates into the SOW.
14
+
15
+ This chapter describes how to create delta publish and delta subscribe
16
+ commands using the AMPS Python client. For a discussion of this
17
+ capability, how it works, and how message types support this capability
18
+ see the *AMPS User Guide*.
19
+
20
+ Delta Subscribe
21
+ ---------------
22
+
23
+ To delta subscribe, you simply use the ``delta_subscribe`` command as
24
+ follows:
25
+
26
+ .. code:: python
27
+
28
+ # assumes that client is connected and logged on
29
+
30
+ cmd = AMPS.Command("delta_subscribe")
31
+ cmd.set_topic("delta_topic")
32
+ cmd.set_filter("/thingIWant = 'true'")
33
+
34
+ for m in client.execute(cmd):
35
+ # Delta messages arrive here
36
+
37
+ As described in the *AMPS User Guide*, messages provided to a delta
38
+ subscription will contain the fields used to generate the SOW key and
39
+ any changed fields in the message. Your application is responsible for
40
+ choosing how to handle the changed fields.
41
+
42
+ Delta Publish
43
+ -------------
44
+
45
+ To delta publish, you use the ``delta_publish`` command as follows:
46
+
47
+ .. code:: python
48
+
49
+ # assumes that client is connected and logged on
50
+
51
+ msg = ... # obtain changed fields here
52
+
53
+ client.delta_publish("myTopic", msg)
54
+
55
+
56
+ .. index:: SowKey, delta_publish
57
+
58
+ The message that you provide to AMPS must include the fields that the
59
+ topic uses to generate the SOW key. Otherwise, AMPS will not be able to
60
+ identify the message to update. For SOW topics that use a User-Generated
61
+ SOW Key, use the ``Command`` form of ``delta_publish`` to set the
62
+ ``SowKey``.
63
+
64
+ .. code:: python
65
+
66
+ # assumes that client is connected and logged on
67
+
68
+ msg = ... # obtain changed fields here
69
+ key = ... # obtain user-generated SOW key
70
+
71
+ cmd = AMPS.Command("delta_publish")
72
+ cmd.set_topic("delta_topic")
73
+ cmd.set_sow_key(key)
74
+ cmd.set_data(msg)
75
+
76
+ # Execute the delta publish. Use None for
77
+ # a message handler since any failure acks will
78
+ # be routed to the FailedWriteHandler
79
+ client.execute_async(cmd,None)
@@ -0,0 +1,482 @@
1
+
2
+ .. |tip| image:: ../../common/svg/tip.svg
3
+
4
+ 5. Error Handling
5
+ =================
6
+
7
+ In every distributed system, the robustness of your application depends
8
+ on its ability to recover gracefully from unexpected events. The AMPS
9
+ client provides the building blocks necessary to ensure your application
10
+ can recover from the kinds of errors and special events that may occur
11
+ when using AMPS.
12
+
13
+ Exceptions
14
+ ----------
15
+
16
+ Generally speaking, when an error occurs that prohibits an operation
17
+ from succeeding, AMPS will throw an exception. AMPS exceptions
18
+ universally derive from ``AMPS.AMPSException``, so by catching
19
+ ``AMPSException``, you will be sure to catch anything AMPS throws, for
20
+ example:
21
+
22
+ .. code:: python
23
+
24
+ def read_and_evaluate(client):
25
+ # read a new payload from the user
26
+ payload = input("Please enter a message")
27
+
28
+ # write a new message to AMPS
29
+ if payload:
30
+ try:
31
+ client.publish(
32
+ "UserMessage",
33
+ "{ \"message\" : \"%s\" }" % payload
34
+ )
35
+ except AMPS.AMPSException as e:
36
+ sys.stderr.write("An AMPS exception" + "occurred: %s" % str(e))
37
+
38
+ **Example 5.1:** *Catching an AMPS Exception*
39
+
40
+ In this example, if an error occurs, the program writes the error to
41
+ ``stderr`` and the ``publish()`` command fails. However, ``client`` is
42
+ still usable for continued publishing and subscribing. When the error
43
+ occurs, the exception is written to the console. As with most Python
44
+ exceptions, ``str()`` will convert the exception into a string that
45
+ includes a descriptive message.
46
+
47
+ AMPS exception types vary based on the nature of the error that occurs.
48
+ In your program, if you would like to handle certain kinds of errors
49
+ differently than others, you can handle the appropriate subclass of
50
+ ``AMPSException`` to detect those specific errors and do something
51
+ different.
52
+
53
+ .. _#exceptions-subclass-handling:
54
+
55
+ .. code:: python
56
+
57
+ def create_new_subscription(client):
58
+ messageStream = None
59
+ topicName = None
60
+
61
+ while messageStream is None:
62
+
63
+ # attempts to retrieve a topic name (or regular expression) from the user.
64
+ topicName = input("Please enter a topic name")
65
+ try:
66
+
67
+ # If an error occurs when setting up the subscription, the program decides whether
68
+ # or not to try again based on the subclass of AMPSException that is thrown. In
69
+ # this case, if the exception is a BadRegexTopicError, the exception indicates
70
+ # that the user provided a bad regular expression. We would like to give the user
71
+ # a chance to correct, so we ask the user for a new topic name.
72
+ messageStream = client.subscribe(
73
+ topicName,
74
+ None
75
+ )
76
+
77
+ # This line indicates that the program catches the BadRegexTopicError exception
78
+ # and displays a specific error to the user indicating the topic name or
79
+ # expression was invalid. By not returning from the function in this except block,
80
+ # the while loop runs again and the user is asked for another topic name.
81
+ except BadRegexTopicError as e:
82
+ print(
83
+ "Error: bad topic name or regular expression " +
84
+ topicName +
85
+ ". The exception was " +
86
+ str(e) +
87
+ "."
88
+ )
89
+ # we'll ask the user for another topic
90
+
91
+ # If an AMPS exception of a type other than BadRegexTopicError is thrown by AMPS,
92
+ # it is caught here. In that case, the program emits a different error message to
93
+ # the user.
94
+ except AMPSException as e:
95
+ print (
96
+ "Error: error setting up subscription to topic" +
97
+ topicName +
98
+ ". The exception was " +
99
+ str(e) +
100
+ "."
101
+ )
102
+
103
+ # At this point the code stops attempting to subscribe to the client by the return
104
+ # None statement.
105
+ return None
106
+ return messageStream
107
+
108
+ **Example 5.2:** *Handling AMPSException Subclasses*
109
+
110
+ Exception Types
111
+ ^^^^^^^^^^^^^^^^
112
+
113
+ Each method in AMPS documents the kinds of exceptions that are thrown
114
+ from it. For reference, :ref:`Table 1A: Exceptions <#command-publish-headers>`
115
+ contains a list of all of the exception types you may encounter while
116
+ using AMPS, when they occur, and what they mean.
117
+
118
+ Exception Handling and Asynchronous Message Processing
119
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
120
+
121
+ When using asynchronous message processing, exceptions thrown from the
122
+ message handler are silently absorbed by the AMPS Python client by
123
+ default. The AMPS Python client allows you to register an exception
124
+ listener to detect and respond to these exceptions. When an exception
125
+ listener is registered, AMPS will call the exception listener with the
126
+ exception. See
127
+ :ref:`Example 5.5 <#error-handling-exception-listener>`
128
+ for details.
129
+
130
+
131
+ Controlling Blocking with Command Timeout
132
+ -------------------------------------------
133
+
134
+ The named convenience methods and the ``Command`` class provide a
135
+ ``timeout`` setting that specifies how long the command should wait
136
+ to receive a ``processed`` acknowledgment from AMPS. This can be helpful
137
+ in cases where it is important for the caller to limit the amount of time
138
+ to block waiting for AMPS to acknowledge the command. If the AMPS client
139
+ does not receive the processed acknowledgment within the specified
140
+ time, the client sends an ``unsubscribe`` command to the server to
141
+ cancel the command and throws an exception.
142
+
143
+ Acknowledgments from AMPS are processed by the client receive thread
144
+ on the same socket as data from AMPS. This means that any other data
145
+ previously returned (such as the results of a large query) must be
146
+ consumed before the acknowledgment can be processed. An application
147
+ that submits a set of SOW queries in rapid succession should set a
148
+ timeout that takes into account the amount of time required to
149
+ process the results of the previous query.
150
+
151
+ Disconnect Handling
152
+ -------------------
153
+
154
+ Every distributed system will experience occasional disconnections
155
+ between one or more nodes. The reliability of the overall system depends
156
+ on an application's ability to efficiently detect and recover from these
157
+ disconnections. Using the AMPS Python client's disconnect handling, you
158
+ can build powerful applications that are resilient in the face of
159
+ connection failures and spurious disconnects. For additional
160
+ reliability, you can also use the high availability client (discussed in
161
+ the following sections), which provides both disconnect handling and
162
+ features to help ensure that messages are reliably delivered.
163
+
164
+ .. include:: ./heartbeat.inc
165
+ Managing Disconnection
166
+ ^^^^^^^^^^^^^^^^^^^^^^
167
+
168
+ The ``HAClient`` class, included with the AMPS Python client, contains a
169
+ disconnect handler and other features for building highly-available
170
+ applications. The ``HAClient`` includes features for managing a list of
171
+ failover servers, resuming subscriptions, republishing in-flight
172
+ messages, and other functionality that is commonly needed for high
173
+ availability. 60East recommends using the ``HAClient`` for automatic
174
+ reconnection wherever possible, as the HAClient disconnect handler has
175
+ been carefully crafted to handle a wide variety of edge cases and
176
+ potential failures.
177
+
178
+ If an application needs to reconnect or fail over, use an
179
+ ``HAClient``, and the AMPS client library will automatically
180
+ handle failover and reconnection. You control which servers
181
+ the client fails over to using an implementation of the
182
+ ``ServerChooser`` interface, and you can control the timing of
183
+ the failover using an implementation of the ``ReconnectDelayStrategy``
184
+ interface.
185
+
186
+ .. tip::
187
+
188
+ For most applications, the combination of the ``HAClient``
189
+ disconnect handler and a ``ConnectionStateListener`` gives
190
+ you the ability to monitor disconnections and add custom
191
+ behavior at the appropriate point in the reconnection
192
+ process.
193
+
194
+ If you need to add custom behavior to the failover (such as logging,
195
+ resetting an internal cache, refreshing credentials and so on), the
196
+ ``ConnectionStateListener`` class allows your application to
197
+ be notified and take action when disconnection is detected and at
198
+ each stage of the reconnection process.
199
+
200
+ To extend the behavior of the AMPS client during reconnection, implement
201
+ a ``ConnectionStateListener``.
202
+
203
+
204
+ Replacing Disconnect Handling
205
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
206
+
207
+ In some cases, an application does not want the AMPS client to
208
+ reconnect, but instead wants to take a different action if
209
+ disconnection occurs. For example, a stateless publisher
210
+ that sends ephemeral data (such as telemetry or prices) may want
211
+ to exit with an error if the connection is lost rather than
212
+ risk falling behind and providing outdated messages. Often,
213
+ in this case, a monitoring process will start another publisher
214
+ if a publisher fails, and it is better for a message to be
215
+ lost than to arrive late.
216
+
217
+ To cover cases where the application has unusual needs, the
218
+ AMPS client library allows an application to provide custom
219
+ disconnect handling.
220
+
221
+ Your application gets to specify exactly what happens when a
222
+ disconnect occurs by supplying a function to
223
+ ``client.set_disconnect_handler()``, which is invoked whenever
224
+ a disconnect occurs. This may be helpful for situations
225
+ where a particular connection needs to do something completely
226
+ different than reconnecting or failing over to another AMPS server.
227
+
228
+ .. caution::
229
+
230
+ Setting the disconnect handler completely replaces the disconnection
231
+ and failover behavior for an ``HAClient`` and provides the *only* disconnection
232
+ and failover behavior for a ``Client``.
233
+
234
+ The handler runs on the thread that detects the disconnect. This may
235
+ be the client receive thread (for example, if the disconnect is detected
236
+ due to heartbeating) or an application thread (for example, if the disconnect
237
+ is detected when sending a command to AMPS).
238
+
239
+ The example below shows the basics:
240
+
241
+ .. _#error-handling-disconnect-handler:
242
+
243
+ .. code:: python
244
+
245
+ class MyApp:
246
+ def __init__(self, _uri):
247
+ self.uri = _uri
248
+ self.client = None
249
+ self.client = AMPS.Client(...)
250
+
251
+ # set_disconnect_handler() method is called to supply a function for use when AMPS
252
+ # detects a disconnect. At any time, this function may be called by AMPS to
253
+ # indicate that the client has disconnected from the server, and to allow your
254
+ # application to choose what to do about it. The application continues on to
255
+ # connect and subscribe to the orders topic.
256
+ self.client.set_disconnect_handler(self.exit_on_disconnection)
257
+ self.client.connect(self.uri)
258
+ self.client.logon()
259
+
260
+ # display order data to the user
261
+ def showMessage(self,m):
262
+
263
+ # Our disconnect handler’s implementation begins here.
264
+ #
265
+ # In this example, we exit the application if the
266
+ # connection fails.
267
+
268
+ def exit_on_disconnection(self, client):
269
+ sys.exit(1)
270
+
271
+ **Example 5.3:** *Supplying a Disconnect Handler*
272
+
273
+
274
+ .. _#unexpected-messages:
275
+
276
+ Unexpected Messages
277
+ -------------------
278
+
279
+ The AMPS Python client handles most incoming messages and takes
280
+ appropriate action. Some messages are unexpected or occur only in very
281
+ rare circumstances. The AMPS Python client provides a way for clients to
282
+ process these messages. Rather than providing handlers for all of these
283
+ unusual events, AMPS provides a single handler function for messages
284
+ that can't be handled during normal processing.
285
+
286
+ Your application registers this handler by setting the
287
+ ``last_chance_message_handler`` for the client. This handler is called
288
+ when the client receives a message that can't be processed by any other
289
+ handler. This is a rare event, and typically indicates an unexpected
290
+ condition.
291
+
292
+ For example, if a client publishes a message that AMPS cannot parse,
293
+ AMPS returns a failure acknowledgment. This is an unexpected event, so
294
+ AMPS does not include an explicit handler for this event, and failure
295
+ acknowledgments are received in the method registered as the
296
+ ``last_chance_message_handler``.
297
+
298
+ Your application is responsible for taking any corrective action needed.
299
+ For example, if a message publication fails, your application can decide
300
+ to republish the message, publish a compensating message, log the error,
301
+ stop publication altogether, or any other action that is appropriate.
302
+
303
+ Unhandled Exceptions
304
+ --------------------
305
+
306
+ When using the asynchronous interface, exceptions can occur that are not
307
+ thrown to the user. For example, when an exception occurs in the process
308
+ of reading subscription data from the AMPS server, the exception occurs
309
+ on a thread inside of the AMPS Python client. Consider the following
310
+ example using the asynchronous interface:
311
+
312
+ .. code:: python
313
+
314
+ class MyApp:
315
+ def on_message_handler(self,message):
316
+ print(message.get_data())
317
+
318
+ def wait_to_be_poked(self,client):
319
+ client.subscribe(
320
+ self.on_message_handler,
321
+ "pokes",
322
+ "/Pokee LIKE %s" % getpass.getuser(),
323
+ timeout=5000)
324
+ f = input("Press a key to exit")
325
+
326
+ **Example 5.4:** *Where do Exceptions go?*
327
+
328
+ In this example, we set up a subscription to wait for messages on the
329
+ pokes topic, whose Pokee tag begins with our user name. When messages
330
+ arrive, we print a message out to the console, but otherwise our
331
+ application waits for a key to be pressed.
332
+
333
+ Inside of the AMPS client, the client creates a new thread of execution
334
+ that reads data from the server, and invokes message handlers and
335
+ disconnect handlers when those events occur. When exceptions occur
336
+ inside this thread, however, there is no caller for them to be thrown
337
+ to and by default they are ignored.
338
+
339
+ In applications that use the asynchronous interface, and where it is
340
+ important to deal with every issue that occurs in using AMPS, you can
341
+ set an ``ExceptionHandler`` via ``Client.set_exception_listener()`` that
342
+ receives these otherwise unhandled exceptions. Making the modifications
343
+ shown in
344
+ :ref:`Example 5.5 <#error-handling-exception-listener>`
345
+ to our previous example will allow those exceptions to be caught and handled.
346
+ In this case we are simply printing those caught exceptions out to the
347
+ console.
348
+
349
+ .. tip::
350
+
351
+ In some cases, the AMPS Python client may wrap exceptions of unknown type into
352
+ an ``AMPSException``. Your application should always include an except block
353
+ for ``AMPSException``.
354
+
355
+ If your application will attempt to recover from an exception
356
+ thrown on the background processing thread, your application should
357
+ set a flag and attempt recovery on a *different* thread than the
358
+ thread that called the exception listener.
359
+
360
+ .. tip::
361
+
362
+ At the point that the AMPS client calls the exception listener,
363
+ it has handled the exception. Your exception listener must
364
+ not rethrow the exception (or wrap the exception and throw
365
+ a different exception type).
366
+
367
+ .. _#error-handling-exception-listener:
368
+
369
+ .. code:: python
370
+
371
+ class MyApp:
372
+ def on_exception(self, e):
373
+ print ("Exception occurred: %s" % str(e))
374
+
375
+ def on_message_handler(self,message):
376
+ print (message.get_data())
377
+
378
+ def wait_to_be_poked(self, client):
379
+ client.set_exception_listener(self.on_exception)
380
+
381
+ # Use the advanced interface to be able to
382
+ # accept input while processing messages.
383
+
384
+ client.subscribe(
385
+ self.on_message_handler,
386
+ "pokes",
387
+ "/Pokee LIKE %s" % getpass.getuser(),
388
+ timeout=5000)
389
+ f = input("Press a key to exit")
390
+
391
+ **Example 5.5:** *Exception Listener*
392
+
393
+ In this example we have added a call to
394
+ ``client.set_exception_listener()``, registering a simple function that
395
+ writes the text of the exception out to the console. If exceptions are
396
+ thrown in the message handler, those exceptions are written to the
397
+ console.
398
+
399
+ AMPS records the stack trace and provides it to the exception handler,
400
+ if the provided method includes a parameter for the stack trace. The
401
+ sample below demonstrates one way to do this. (For sample purposes, the
402
+ message handler always throws an exception.)
403
+
404
+ .. code:: python
405
+
406
+ import AMPS
407
+ import time
408
+ import traceback
409
+
410
+ def handler(message):
411
+ print (message)
412
+ raise RuntimeError, "in my handler"
413
+
414
+ def exception_listener(exception, tb):
415
+ print ("EXCEPTION RECEIVED", exception)
416
+ if tb is not None:
417
+ traceback.print_tb(tb)
418
+
419
+ client = AMPS.Client("client")
420
+
421
+ client.set_exception_listener(exception_listener)
422
+
423
+ client.connect("tcp://localhost:9007/amps")
424
+
425
+ client.logon()
426
+ client.subscribe(handler,"topic")
427
+ client.publish("topic","data")
428
+ time.sleep(1)
429
+ client.close()
430
+
431
+ **Example 5.6:** *AMPS stack trace*
432
+
433
+ Detecting Write Failures
434
+ ------------------------
435
+
436
+ .. index:: publish failures,
437
+
438
+ The ``publish`` methods in the Python client deliver the
439
+ message to be published to AMPS then return immediately, without waiting
440
+ for AMPS to return an acknowledgment. Likewise, the ``sow_delete``
441
+ methods request deletion of SOW messages, and return before AMPS
442
+ processes the message and performs the deletion. This approach provides
443
+ high performance for operations that are unlikely to fail in production.
444
+ However, this means that the methods return before AMPS has processed
445
+ the command, without the ability to return an error in the event the
446
+ command fails.
447
+
448
+ The AMPS Python client provides a ``failed_write_handler`` that is
449
+ called when the client receives an acknowledgment that indicates a
450
+ failure to persist data within AMPS. As with the
451
+ ``last_chance_message_handler`` described in the
452
+ :ref:`Unexpected Messages <#unexpected-messages>` section,
453
+ your application registers a handler for this function. When an acknowledgment returns that
454
+ indicates a failed write, AMPS calls the registered handler method with
455
+ information from the acknowledgment message, supplemented with
456
+ information from the client publish store if one is available. Your
457
+ client can log this information, present an error to the user or take
458
+ whatever action is appropriate for the failure.
459
+
460
+
461
+ If your application needs to know whether publishes succeeded and
462
+ are durably persisted, the following approach is recommended:
463
+
464
+ * Set a ``PublishStore`` on the client. This will ensure that messages
465
+ are retransmitted if the client becomes disconnected before the
466
+ message is acknowledged *and* request ``persisted`` acknowledgments
467
+ for messages.
468
+
469
+ * Install a ``failed_write_handler``. In the event that AMPS reports
470
+ an error for a given message, that event will be reported to
471
+ the ``failed_write_handler``.
472
+
473
+ * Call ``publish_flush()`` and verify that all messages are
474
+ persisted before the application exits.
475
+
476
+ When no ``failed_write_handler`` is registered, acknowledgments that
477
+ indicate errors in persisting data are treated as unexpected messages
478
+ and routed to the ``last_chance_message_handler``. In this case, AMPS
479
+ provides only the acknowledgment message and does not provide the
480
+ additional information from the client publish store.
481
+
482
+ .. include:: ./connection-state.inc
@@ -0,0 +1,128 @@
1
+ .. _#command-publish-headers:
2
+
3
+ Table 1A: Exceptions
4
+ =====================
5
+
6
+ The following table details each of the exception types thrown by AMPS.
7
+
8
+ +------------------------------+---------------+------------------------------+
9
+ | **Exception** | **When** | **Notes** |
10
+ +==============================+===============+==============================+
11
+ | AlreadyConnectedError | Connecting | Thrown when ``connect()`` is |
12
+ | | | called on a Client that is |
13
+ | | | already connected. |
14
+ +------------------------------+---------------+------------------------------+
15
+ | AMPSError | Anytime | Base class for all AMPS |
16
+ | | | exceptions. |
17
+ +------------------------------+---------------+------------------------------+
18
+ | AuthenticationError | Anytime | Indicates an authentication |
19
+ | | | failure occurred on the |
20
+ | | | server. |
21
+ +------------------------------+---------------+------------------------------+
22
+ | BadFilterError | Subscribing | This typically indicates a |
23
+ | | | syntax error in a filter |
24
+ | | | expression. |
25
+ +------------------------------+---------------+------------------------------+
26
+ | BadRegexTopicError | Subscribing | Indicates a malformed |
27
+ | | | regular expression was found |
28
+ | | | in the topic name. |
29
+ +------------------------------+---------------+------------------------------+
30
+ | CommandError | Anytime | Base class for all |
31
+ | | | exceptions relating to |
32
+ | | | commands sent to AMPS. |
33
+ +------------------------------+---------------+------------------------------+
34
+ | ConnectionError | Anytime | Base class for all |
35
+ | | | exceptions relating to the |
36
+ | | | state of the AMPS |
37
+ | | | connection. |
38
+ +------------------------------+---------------+------------------------------+
39
+ | ConnectionRefusedError | Connecting | The connection was actively |
40
+ | | | refused by the server. |
41
+ | | | Validate that the server is |
42
+ | | | running, that network |
43
+ | | | connectivity is available, |
44
+ | | | and the settings on the |
45
+ | | | client match those on the |
46
+ | | | server. |
47
+ +------------------------------+---------------+------------------------------+
48
+ | DisconnectedError | Anytime | No connection is available |
49
+ | | | when AMPS needed to send |
50
+ | | | data to the server *or* the |
51
+ | | | user's disconnect handler |
52
+ | | | threw an exception. |
53
+ +------------------------------+---------------+------------------------------+
54
+ | InvalidTopicError | SOW query | The topic is not configured |
55
+ | | | for the requested operation. |
56
+ | | | For example, a ``sow`` |
57
+ | | | command was issued for a |
58
+ | | | topic that is not in the SOW |
59
+ | | | or a bookmark subscribe was |
60
+ | | | issued for a topic that is |
61
+ | | | not recorded in the |
62
+ | | | transaction log. |
63
+ +------------------------------+---------------+------------------------------+
64
+ | InvalidTransportOptionsError | Connecting | An invalid option or option |
65
+ | | | value was specified in the |
66
+ | | | URI. |
67
+ +------------------------------+---------------+------------------------------+
68
+ | InvalidURIError | Connecting | The URI string provided to |
69
+ | | | ``connect()`` was formatted |
70
+ | | | improperly. |
71
+ +------------------------------+---------------+------------------------------+
72
+ | MessageTypeError | Connecting | The class for a given |
73
+ | | | transport's message type was |
74
+ | | | not found in AMPS. |
75
+ +------------------------------+---------------+------------------------------+
76
+ | MessageTypeNotFoundError | Connecting | The message type specified |
77
+ | | | in the URI was not found in |
78
+ | | | AMPS. |
79
+ +------------------------------+---------------+------------------------------+
80
+ | NameInUseError | Connecting | The client name (specified |
81
+ | | | when instantiating |
82
+ | | | ``Client``) is already in |
83
+ | | | use on the server. |
84
+ +------------------------------+---------------+------------------------------+
85
+ | RetryOperationError | Anytime | An error occurred that |
86
+ | | | caused processing of the |
87
+ | | | last command to be aborted. |
88
+ | | | Try issuing the command |
89
+ | | | again. |
90
+ +------------------------------+---------------+------------------------------+
91
+ | StreamError | Anytime | Indicates that data |
92
+ | | | corruption has occurred on |
93
+ | | | the connection between the |
94
+ | | | client and server. This |
95
+ | | | usually indicates an |
96
+ | | | internal error inside of |
97
+ | | | AMPS -- contact AMPS |
98
+ | | | support. |
99
+ +------------------------------+---------------+------------------------------+
100
+ | SubscriptionAlreadyExistsExc | Subscribing | A subscription has been |
101
+ | eption | | requested using the same |
102
+ | | | command ID string as another |
103
+ | | | subscription. Create a |
104
+ | | | unique command ID string for |
105
+ | | | every subscription. |
106
+ +------------------------------+---------------+------------------------------+
107
+ | TimedOutError | Anytime | A timeout occurred waiting |
108
+ | | | for a response to a command. |
109
+ +------------------------------+---------------+------------------------------+
110
+ | TransportTypeError | Connecting | Thrown when a transport type |
111
+ | | | is selected in the URI that |
112
+ | | | is unknown to AMPS. |
113
+ +------------------------------+---------------+------------------------------+
114
+ | UnknownError | Anytime | Thrown when an internal |
115
+ | | | error occurs. Contact AMPS |
116
+ | | | support immediately. |
117
+ +------------------------------+---------------+------------------------------+
118
+ | UsageException | Changing the | Thrown when the object is |
119
+ | | properties of | not in a valid state for |
120
+ | | an object | setting the properties. For |
121
+ | | | example, some properties of |
122
+ | | | a Client (such as the |
123
+ | | | BookmarkStore used) cannot |
124
+ | | | be changed while that client |
125
+ | | | is connected to AMPS. |
126
+ +------------------------------+---------------+------------------------------+
127
+
128
+ **Table 1A:** *Exceptions supported in Client and HAClient*