rq 0.1.7 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (723) hide show
  1. data/INSTALL +21 -0
  2. data/README +752 -190
  3. data/TODO +18 -11
  4. data/TUTORIAL +230 -0
  5. data/all/install.rb +127 -0
  6. data/all/install.sh +165 -0
  7. data/all/packages/INSTALL +5 -0
  8. data/all/packages/arrayfields-3.6.0.tgz +0 -0
  9. data/all/packages/lockfile-1.4.1.tgz +0 -0
  10. data/all/packages/posixlock-0.0.1.tgz +0 -0
  11. data/all/packages/ruby-1.8.6.tgz +0 -0
  12. data/all/packages/rubygems-0.9.2.tgz +0 -0
  13. data/all/packages/sqlite-2.8.15.tar.gz +0 -0
  14. data/all/packages/sqlite-ruby-1.3.1.tar.gz +0 -0
  15. data/bin/rq +830 -361
  16. data/bin/rq-3.0.0 +860 -0
  17. data/doc/classes/ARGV.html +134 -0
  18. data/doc/classes/ARGV.src/M000036.html +36 -0
  19. data/doc/classes/ARGV.src/M000037.html +25 -0
  20. data/doc/classes/OrderedHash.html +1043 -0
  21. data/doc/classes/OrderedHash.src/M000003.html +26 -0
  22. data/doc/classes/OrderedHash.src/M000004.html +31 -0
  23. data/doc/classes/OrderedHash.src/M000005.html +23 -0
  24. data/doc/classes/OrderedHash.src/M000006.html +23 -0
  25. data/doc/classes/OrderedHash.src/M000007.html +24 -0
  26. data/doc/classes/OrderedHash.src/M000009.html +24 -0
  27. data/doc/classes/OrderedHash.src/M000010.html +24 -0
  28. data/doc/classes/OrderedHash.src/M000011.html +24 -0
  29. data/doc/classes/OrderedHash.src/M000012.html +24 -0
  30. data/doc/classes/OrderedHash.src/M000013.html +24 -0
  31. data/doc/classes/OrderedHash.src/M000014.html +24 -0
  32. data/doc/classes/OrderedHash.src/M000016.html +26 -0
  33. data/doc/classes/OrderedHash.src/M000017.html +25 -0
  34. data/doc/classes/OrderedHash.src/M000018.html +23 -0
  35. data/doc/classes/OrderedHash.src/M000019.html +25 -0
  36. data/doc/classes/OrderedHash.src/M000020.html +23 -0
  37. data/doc/classes/OrderedHash.src/M000021.html +24 -0
  38. data/doc/classes/OrderedHash.src/M000022.html +24 -0
  39. data/doc/classes/OrderedHash.src/M000023.html +24 -0
  40. data/doc/classes/OrderedHash.src/M000024.html +29 -0
  41. data/doc/classes/OrderedHash.src/M000025.html +29 -0
  42. data/doc/classes/OrderedHash.src/M000026.html +24 -0
  43. data/doc/classes/OrderedHash.src/M000027.html +25 -0
  44. data/doc/classes/OrderedHash.src/M000028.html +23 -0
  45. data/doc/classes/OrderedHash.src/M000029.html +25 -0
  46. data/doc/classes/OrderedHash.src/M000030.html +24 -0
  47. data/doc/classes/OrderedHash.src/M000032.html +23 -0
  48. data/doc/classes/OrderedHash.src/M000033.html +25 -0
  49. data/doc/classes/OrderedHash.src/M000034.html +36 -0
  50. data/doc/classes/OrderedHash.src/M000035.html +23 -0
  51. data/doc/classes/RQ.html +647 -0
  52. data/doc/classes/RQ/Backer.html +240 -0
  53. data/doc/classes/RQ/Backer.src/M000121.html +31 -0
  54. data/doc/classes/RQ/ConfigFile.html +416 -0
  55. data/doc/classes/RQ/ConfigFile.src/M000100.html +34 -0
  56. data/doc/classes/RQ/ConfigFile.src/M000101.html +26 -0
  57. data/doc/classes/RQ/ConfigFile.src/M000102.html +33 -0
  58. data/doc/classes/RQ/ConfigFile.src/M000103.html +25 -0
  59. data/doc/classes/RQ/ConfigFile.src/M000104.html +34 -0
  60. data/doc/classes/RQ/ConfigFile.src/M000105.html +25 -0
  61. data/doc/classes/RQ/Configurator.html +249 -0
  62. data/doc/classes/RQ/Configurator.src/M000122.html +40 -0
  63. data/doc/classes/RQ/Creator.html +264 -0
  64. data/doc/classes/RQ/Creator.src/M000157.html +32 -0
  65. data/doc/classes/RQ/Cron.html +461 -0
  66. data/doc/classes/RQ/Deleter.html +259 -0
  67. data/doc/classes/RQ/Deleter.src/M000078.html +52 -0
  68. data/doc/classes/RQ/Executor.html +249 -0
  69. data/doc/classes/RQ/Executor.src/M000099.html +45 -0
  70. data/doc/classes/RQ/Feeder.html +1131 -0
  71. data/doc/classes/RQ/Feeder.src/M000079.html +67 -0
  72. data/doc/classes/RQ/Feeder.src/M000080.html +47 -0
  73. data/doc/classes/RQ/Feeder.src/M000081.html +98 -0
  74. data/doc/classes/RQ/Feeder.src/M000082.html +25 -0
  75. data/doc/classes/RQ/Feeder.src/M000083.html +30 -0
  76. data/doc/classes/RQ/Feeder.src/M000084.html +58 -0
  77. data/doc/classes/RQ/Feeder.src/M000085.html +37 -0
  78. data/doc/classes/RQ/Feeder.src/M000086.html +40 -0
  79. data/doc/classes/RQ/Feeder.src/M000087.html +37 -0
  80. data/doc/classes/RQ/Feeder.src/M000088.html +35 -0
  81. data/doc/classes/RQ/Feeder.src/M000089.html +47 -0
  82. data/doc/classes/RQ/Feeder.src/M000090.html +25 -0
  83. data/doc/classes/RQ/Feeder.src/M000091.html +78 -0
  84. data/doc/classes/RQ/Feeder.src/M000092.html +34 -0
  85. data/doc/classes/RQ/Feeder.src/M000093.html +36 -0
  86. data/doc/classes/RQ/Feeder.src/M000094.html +25 -0
  87. data/doc/classes/RQ/Feeder.src/M000095.html +27 -0
  88. data/doc/classes/RQ/IOViewer.html +256 -0
  89. data/doc/classes/RQ/Job.html +304 -0
  90. data/doc/classes/RQ/Job.src/M000168.html +26 -0
  91. data/doc/classes/RQ/Job.src/M000169.html +37 -0
  92. data/doc/classes/RQ/Job.src/M000170.html +23 -0
  93. data/doc/classes/RQ/Job/Methods.html +210 -0
  94. data/doc/classes/RQ/JobQueue.html +1780 -0
  95. data/doc/classes/RQ/JobQueue.src/M000176.html +31 -0
  96. data/doc/classes/RQ/JobQueue.src/M000177.html +34 -0
  97. data/doc/classes/RQ/JobQueue.src/M000178.html +60 -0
  98. data/doc/classes/RQ/JobQueue.src/M000179.html +63 -0
  99. data/doc/classes/RQ/JobQueue.src/M000180.html +73 -0
  100. data/doc/classes/RQ/JobQueue.src/M000181.html +217 -0
  101. data/doc/classes/RQ/JobQueue.src/M000182.html +50 -0
  102. data/doc/classes/RQ/JobQueue.src/M000183.html +83 -0
  103. data/doc/classes/RQ/JobQueue.src/M000184.html +25 -0
  104. data/doc/classes/RQ/JobQueue.src/M000185.html +83 -0
  105. data/doc/classes/RQ/JobQueue.src/M000186.html +28 -0
  106. data/doc/classes/RQ/JobQueue.src/M000187.html +26 -0
  107. data/doc/classes/RQ/JobQueue.src/M000188.html +26 -0
  108. data/doc/classes/RQ/JobQueue.src/M000189.html +32 -0
  109. data/doc/classes/RQ/JobQueue.src/M000190.html +30 -0
  110. data/doc/classes/RQ/JobQueue.src/M000191.html +37 -0
  111. data/doc/classes/RQ/JobQueue.src/M000192.html +36 -0
  112. data/doc/classes/RQ/JobQueue.src/M000193.html +25 -0
  113. data/doc/classes/RQ/JobQueue.src/M000194.html +25 -0
  114. data/doc/classes/RQ/JobQueue.src/M000195.html +25 -0
  115. data/doc/classes/RQ/JobQueue.src/M000196.html +25 -0
  116. data/doc/classes/RQ/JobQueue.src/M000197.html +25 -0
  117. data/doc/classes/RQ/JobQueue.src/M000198.html +73 -0
  118. data/doc/classes/RQ/JobQueue.src/M000199.html +25 -0
  119. data/doc/classes/RQ/JobQueue.src/M000200.html +38 -0
  120. data/doc/classes/RQ/JobQueue.src/M000201.html +28 -0
  121. data/doc/classes/RQ/JobQueue/Error.html +187 -0
  122. data/doc/classes/RQ/JobRunner.html +386 -0
  123. data/doc/classes/RQ/JobRunner.src/M000117.html +53 -0
  124. data/doc/classes/RQ/JobRunner.src/M000118.html +26 -0
  125. data/doc/classes/RQ/JobRunnerDaemon.html +590 -0
  126. data/doc/classes/RQ/JobRunnerDaemon.src/M000159.html +94 -0
  127. data/doc/classes/RQ/JobRunnerDaemon.src/M000160.html +27 -0
  128. data/doc/classes/RQ/JobRunnerDaemon.src/M000161.html +39 -0
  129. data/doc/classes/RQ/JobRunnerDaemon.src/M000162.html +27 -0
  130. data/doc/classes/RQ/JobRunnerDaemon.src/M000163.html +27 -0
  131. data/doc/classes/RQ/JobRunnerDaemon.src/M000164.html +28 -0
  132. data/doc/classes/RQ/JobRunnerDaemon.src/M000165.html +28 -0
  133. data/doc/classes/RQ/JobRunnerDaemon.src/M000166.html +37 -0
  134. data/doc/classes/RQ/JobRunnerDaemon.src/M000167.html +25 -0
  135. data/doc/classes/RQ/Lister.html +256 -0
  136. data/doc/classes/RQ/Lister.src/M000156.html +52 -0
  137. data/doc/classes/RQ/Locker.html +250 -0
  138. data/doc/classes/RQ/Locker.src/M000120.html +40 -0
  139. data/doc/classes/RQ/Logging.html +296 -0
  140. data/doc/classes/RQ/Logging.src/M000067.html +28 -0
  141. data/doc/classes/RQ/Logging/LogClassMethods.html +254 -0
  142. data/doc/classes/RQ/Logging/LogClassMethods.src/M000068.html +32 -0
  143. data/doc/classes/RQ/Logging/LogClassMethods.src/M000069.html +28 -0
  144. data/doc/classes/RQ/Logging/LogMethods.html +404 -0
  145. data/doc/classes/RQ/Logging/LogMethods.src/M000070.html +35 -0
  146. data/doc/classes/RQ/Logging/LogMethods.src/M000071.html +28 -0
  147. data/doc/classes/RQ/Logging/LogMethods.src/M000072.html +21 -0
  148. data/doc/classes/RQ/Logging/LogMethods.src/M000073.html +21 -0
  149. data/doc/classes/RQ/Logging/LogMethods.src/M000074.html +21 -0
  150. data/doc/classes/RQ/Logging/LogMethods.src/M000075.html +21 -0
  151. data/doc/classes/RQ/Logging/LogMethods.src/M000076.html +21 -0
  152. data/doc/classes/RQ/Logging/LogMethods.src/M000077.html +29 -0
  153. data/doc/classes/RQ/Logging/LoggerExt.html +194 -0
  154. data/doc/classes/RQ/Main.html +2110 -0
  155. data/doc/classes/RQ/MainHelper.html +607 -0
  156. data/doc/classes/RQ/MainHelper.src/M000171.html +33 -0
  157. data/doc/classes/RQ/MainHelper.src/M000172.html +32 -0
  158. data/doc/classes/RQ/MainHelper.src/M000173.html +44 -0
  159. data/doc/classes/RQ/OrderedAutoHash.html +258 -0
  160. data/doc/classes/RQ/OrderedAutoHash.src/M000205.html +25 -0
  161. data/doc/classes/RQ/OrderedAutoHash.src/M000206.html +25 -0
  162. data/doc/classes/RQ/QDB.html +1653 -0
  163. data/doc/classes/RQ/QDB.src/M000126.html +25 -0
  164. data/doc/classes/RQ/QDB.src/M000127.html +37 -0
  165. data/doc/classes/RQ/QDB.src/M000128.html +27 -0
  166. data/doc/classes/RQ/QDB.src/M000129.html +27 -0
  167. data/doc/classes/RQ/QDB.src/M000130.html +27 -0
  168. data/doc/classes/RQ/QDB.src/M000131.html +31 -0
  169. data/doc/classes/RQ/QDB.src/M000132.html +32 -0
  170. data/doc/classes/RQ/QDB.src/M000133.html +30 -0
  171. data/doc/classes/RQ/QDB.src/M000134.html +91 -0
  172. data/doc/classes/RQ/QDB.src/M000135.html +26 -0
  173. data/doc/classes/RQ/QDB.src/M000136.html +46 -0
  174. data/doc/classes/RQ/QDB.src/M000137.html +26 -0
  175. data/doc/classes/RQ/QDB.src/M000138.html +51 -0
  176. data/doc/classes/RQ/QDB.src/M000139.html +61 -0
  177. data/doc/classes/RQ/QDB.src/M000140.html +57 -0
  178. data/doc/classes/RQ/QDB.src/M000141.html +25 -0
  179. data/doc/classes/RQ/QDB.src/M000142.html +25 -0
  180. data/doc/classes/RQ/QDB.src/M000143.html +37 -0
  181. data/doc/classes/RQ/QDB.src/M000144.html +107 -0
  182. data/doc/classes/RQ/QDB.src/M000145.html +40 -0
  183. data/doc/classes/RQ/QDB.src/M000146.html +34 -0
  184. data/doc/classes/RQ/QDB.src/M000147.html +33 -0
  185. data/doc/classes/RQ/QDB.src/M000148.html +32 -0
  186. data/doc/classes/RQ/QDB.src/M000149.html +98 -0
  187. data/doc/classes/RQ/QDB.src/M000150.html +26 -0
  188. data/doc/classes/RQ/QDB.src/M000151.html +31 -0
  189. data/doc/classes/RQ/QDB.src/M000154.html +26 -0
  190. data/doc/classes/RQ/QDB/AbortedTransactionError.html +187 -0
  191. data/doc/classes/RQ/QDB/RollbackTransactionError.html +187 -0
  192. data/doc/classes/RQ/Querier.html +328 -0
  193. data/doc/classes/RQ/Querier.src/M000203.html +45 -0
  194. data/doc/classes/RQ/Querier.src/M000204.html +78 -0
  195. data/doc/classes/RQ/ReSubmitter.html +307 -0
  196. data/doc/classes/RQ/ReSubmitter.src/M000098.html +111 -0
  197. data/doc/classes/RQ/Recoverer.html +247 -0
  198. data/doc/classes/RQ/Refresher.html +346 -0
  199. data/doc/classes/RQ/Refresher.src/M000174.html +51 -0
  200. data/doc/classes/RQ/Refresher.src/M000175.html +44 -0
  201. data/doc/classes/RQ/Relayer.html +723 -0
  202. data/doc/classes/RQ/Relayer.src/M000106.html +91 -0
  203. data/doc/classes/RQ/Relayer.src/M000107.html +47 -0
  204. data/doc/classes/RQ/Relayer.src/M000108.html +46 -0
  205. data/doc/classes/RQ/Relayer.src/M000109.html +26 -0
  206. data/doc/classes/RQ/Relayer.src/M000110.html +46 -0
  207. data/doc/classes/RQ/Relayer.src/M000111.html +40 -0
  208. data/doc/classes/RQ/Relayer.src/M000112.html +37 -0
  209. data/doc/classes/RQ/Relayer.src/M000113.html +40 -0
  210. data/doc/classes/RQ/Relayer.src/M000114.html +27 -0
  211. data/doc/classes/RQ/Relayer.src/M000115.html +25 -0
  212. data/doc/classes/RQ/Relayer.src/M000116.html +38 -0
  213. data/doc/classes/RQ/Resource.html +187 -0
  214. data/doc/classes/RQ/ResourceManager.html +276 -0
  215. data/doc/classes/RQ/Rotater.html +324 -0
  216. data/doc/classes/RQ/Rotater.src/M000158.html +71 -0
  217. data/doc/classes/RQ/SleepCycle.html +322 -0
  218. data/doc/classes/RQ/SleepCycle.src/M000123.html +32 -0
  219. data/doc/classes/RQ/SleepCycle.src/M000124.html +27 -0
  220. data/doc/classes/RQ/SleepCycle.src/M000125.html +25 -0
  221. data/doc/classes/RQ/Snapshotter.html +250 -0
  222. data/doc/classes/RQ/Snapshotter.src/M000097.html +35 -0
  223. data/doc/classes/RQ/StatusLister.html +289 -0
  224. data/doc/classes/RQ/StatusLister.src/M000096.html +26 -0
  225. data/doc/classes/RQ/Submitter.html +319 -0
  226. data/doc/classes/RQ/Submitter.src/M000119.html +92 -0
  227. data/doc/classes/RQ/Toucher.html +384 -0
  228. data/doc/classes/RQ/Updater.html +304 -0
  229. data/doc/classes/RQ/Updater.src/M000202.html +97 -0
  230. data/doc/classes/RQ/Usage.html +346 -0
  231. data/doc/classes/RQ/Usage.src/M000038.html +29 -0
  232. data/doc/classes/RQ/Usage.src/M000039.html +72 -0
  233. data/doc/classes/RQ/Util.html +1043 -0
  234. data/doc/classes/RQ/Util.src/M000040.html +27 -0
  235. data/doc/classes/RQ/Util.src/M000041.html +26 -0
  236. data/doc/classes/RQ/Util.src/M000042.html +25 -0
  237. data/doc/classes/RQ/Util.src/M000043.html +25 -0
  238. data/doc/classes/RQ/Util.src/M000044.html +30 -0
  239. data/doc/classes/RQ/Util.src/M000045.html +25 -0
  240. data/doc/classes/RQ/Util.src/M000046.html +34 -0
  241. data/doc/classes/RQ/Util.src/M000047.html +31 -0
  242. data/doc/classes/RQ/Util.src/M000048.html +41 -0
  243. data/doc/classes/RQ/Util.src/M000049.html +27 -0
  244. data/doc/classes/RQ/Util.src/M000050.html +34 -0
  245. data/doc/classes/RQ/Util.src/M000051.html +28 -0
  246. data/doc/classes/RQ/Util.src/M000052.html +27 -0
  247. data/doc/classes/RQ/Util.src/M000053.html +31 -0
  248. data/doc/classes/RQ/Util.src/M000054.html +31 -0
  249. data/doc/classes/RQ/Util.src/M000055.html +31 -0
  250. data/doc/classes/RQ/Util.src/M000056.html +25 -0
  251. data/doc/classes/RQ/Util.src/M000057.html +25 -0
  252. data/doc/classes/RQ/Util.src/M000058.html +25 -0
  253. data/doc/classes/RQ/Util.src/M000059.html +25 -0
  254. data/doc/classes/RQ/Util.src/M000060.html +25 -0
  255. data/doc/classes/RQ/Util.src/M000061.html +27 -0
  256. data/doc/classes/RQ/Util.src/M000062.html +28 -0
  257. data/doc/classes/RQ/Util.src/M000063.html +39 -0
  258. data/doc/classes/RQ/Util.src/M000064.html +39 -0
  259. data/doc/classes/RQ/Util.src/M000065.html +31 -0
  260. data/doc/classes/RQ/Util.src/M000066.html +29 -0
  261. data/doc/classes/SQLite.html +120 -0
  262. data/doc/classes/SQLite/Database.html +546 -0
  263. data/doc/classes/SQLite/TypeTranslator.html +221 -0
  264. data/doc/created.rid +1 -0
  265. data/doc/dot/f_0.dot +14 -0
  266. data/doc/dot/f_0.jpg +0 -0
  267. data/doc/dot/f_1.dot +14 -0
  268. data/doc/dot/f_1.jpg +0 -0
  269. data/doc/dot/f_10.dot +802 -0
  270. data/doc/dot/f_10.jpg +0 -0
  271. data/doc/dot/f_11.dot +14 -0
  272. data/doc/dot/f_11.jpg +0 -0
  273. data/doc/dot/f_12.dot +802 -0
  274. data/doc/dot/f_12.jpg +0 -0
  275. data/doc/dot/f_13.dot +802 -0
  276. data/doc/dot/f_13.jpg +0 -0
  277. data/doc/dot/f_14.dot +802 -0
  278. data/doc/dot/f_14.jpg +0 -0
  279. data/doc/dot/f_15.dot +802 -0
  280. data/doc/dot/f_15.jpg +0 -0
  281. data/doc/dot/f_16.dot +802 -0
  282. data/doc/dot/f_16.jpg +0 -0
  283. data/doc/dot/f_17.dot +802 -0
  284. data/doc/dot/f_17.jpg +0 -0
  285. data/doc/dot/f_18.dot +14 -0
  286. data/doc/dot/f_18.jpg +0 -0
  287. data/doc/dot/f_19.dot +802 -0
  288. data/doc/dot/f_19.jpg +0 -0
  289. data/doc/dot/f_2.dot +14 -0
  290. data/doc/dot/f_2.jpg +0 -0
  291. data/doc/dot/f_20.dot +802 -0
  292. data/doc/dot/f_20.jpg +0 -0
  293. data/doc/dot/f_21.dot +802 -0
  294. data/doc/dot/f_21.jpg +0 -0
  295. data/doc/dot/f_22.dot +802 -0
  296. data/doc/dot/f_22.jpg +0 -0
  297. data/doc/dot/f_23.dot +802 -0
  298. data/doc/dot/f_23.jpg +0 -0
  299. data/doc/dot/f_24.dot +802 -0
  300. data/doc/dot/f_24.jpg +0 -0
  301. data/doc/dot/f_25.dot +817 -0
  302. data/doc/dot/f_25.jpg +0 -0
  303. data/doc/dot/f_26.dot +29 -0
  304. data/doc/dot/f_26.jpg +0 -0
  305. data/doc/dot/f_27.dot +802 -0
  306. data/doc/dot/f_27.jpg +0 -0
  307. data/doc/dot/f_28.dot +802 -0
  308. data/doc/dot/f_28.jpg +0 -0
  309. data/doc/dot/f_29.dot +802 -0
  310. data/doc/dot/f_29.jpg +0 -0
  311. data/doc/dot/f_3.dot +14 -0
  312. data/doc/dot/f_3.jpg +0 -0
  313. data/doc/dot/f_30.dot +802 -0
  314. data/doc/dot/f_30.jpg +0 -0
  315. data/doc/dot/f_31.dot +802 -0
  316. data/doc/dot/f_31.jpg +0 -0
  317. data/doc/dot/f_32.dot +802 -0
  318. data/doc/dot/f_32.jpg +0 -0
  319. data/doc/dot/f_33.dot +802 -0
  320. data/doc/dot/f_33.jpg +0 -0
  321. data/doc/dot/f_34.dot +802 -0
  322. data/doc/dot/f_34.jpg +0 -0
  323. data/doc/dot/f_35.dot +802 -0
  324. data/doc/dot/f_35.jpg +0 -0
  325. data/doc/dot/f_36.dot +802 -0
  326. data/doc/dot/f_36.jpg +0 -0
  327. data/doc/dot/f_37.dot +802 -0
  328. data/doc/dot/f_37.jpg +0 -0
  329. data/doc/dot/f_38.dot +54 -0
  330. data/doc/dot/f_38.jpg +0 -0
  331. data/doc/dot/f_39.dot +802 -0
  332. data/doc/dot/f_39.jpg +0 -0
  333. data/doc/dot/f_4.dot +802 -0
  334. data/doc/dot/f_4.jpg +0 -0
  335. data/doc/dot/f_40.dot +802 -0
  336. data/doc/dot/f_40.jpg +0 -0
  337. data/doc/dot/f_41.dot +802 -0
  338. data/doc/dot/f_41.jpg +0 -0
  339. data/doc/dot/f_42.dot +802 -0
  340. data/doc/dot/f_42.jpg +0 -0
  341. data/doc/dot/f_43.dot +802 -0
  342. data/doc/dot/f_43.jpg +0 -0
  343. data/doc/dot/f_44.dot +802 -0
  344. data/doc/dot/f_44.jpg +0 -0
  345. data/doc/dot/f_5.dot +802 -0
  346. data/doc/dot/f_5.jpg +0 -0
  347. data/doc/dot/f_6.dot +802 -0
  348. data/doc/dot/f_6.jpg +0 -0
  349. data/doc/dot/f_7.dot +802 -0
  350. data/doc/dot/f_7.jpg +0 -0
  351. data/doc/dot/f_8.dot +802 -0
  352. data/doc/dot/f_8.jpg +0 -0
  353. data/doc/dot/f_9.dot +802 -0
  354. data/doc/dot/f_9.jpg +0 -0
  355. data/doc/dot/m_10_0.dot +802 -0
  356. data/doc/dot/m_10_0.jpg +0 -0
  357. data/doc/dot/m_11_0.dot +734 -0
  358. data/doc/dot/m_11_0.jpg +0 -0
  359. data/doc/dot/m_12_0.dot +802 -0
  360. data/doc/dot/m_12_0.jpg +0 -0
  361. data/doc/dot/m_13_0.dot +802 -0
  362. data/doc/dot/m_13_0.jpg +0 -0
  363. data/doc/dot/m_14_0.dot +802 -0
  364. data/doc/dot/m_14_0.jpg +0 -0
  365. data/doc/dot/m_15_0.dot +802 -0
  366. data/doc/dot/m_15_0.jpg +0 -0
  367. data/doc/dot/m_16_0.dot +802 -0
  368. data/doc/dot/m_16_0.jpg +0 -0
  369. data/doc/dot/m_17_0.dot +802 -0
  370. data/doc/dot/m_17_0.jpg +0 -0
  371. data/doc/dot/m_18_0.dot +734 -0
  372. data/doc/dot/m_18_0.jpg +0 -0
  373. data/doc/dot/m_19_0.dot +802 -0
  374. data/doc/dot/m_19_0.jpg +0 -0
  375. data/doc/dot/m_20_0.dot +802 -0
  376. data/doc/dot/m_20_0.jpg +0 -0
  377. data/doc/dot/m_21_0.dot +802 -0
  378. data/doc/dot/m_21_0.jpg +0 -0
  379. data/doc/dot/m_22_0.dot +802 -0
  380. data/doc/dot/m_22_0.jpg +0 -0
  381. data/doc/dot/m_23_0.dot +802 -0
  382. data/doc/dot/m_23_0.jpg +0 -0
  383. data/doc/dot/m_24_0.dot +802 -0
  384. data/doc/dot/m_24_0.jpg +0 -0
  385. data/doc/dot/m_25_0.dot +802 -0
  386. data/doc/dot/m_25_0.jpg +0 -0
  387. data/doc/dot/m_26_0.dot +734 -0
  388. data/doc/dot/m_26_0.jpg +0 -0
  389. data/doc/dot/m_27_0.dot +802 -0
  390. data/doc/dot/m_27_0.jpg +0 -0
  391. data/doc/dot/m_28_0.dot +802 -0
  392. data/doc/dot/m_28_0.jpg +0 -0
  393. data/doc/dot/m_29_0.dot +802 -0
  394. data/doc/dot/m_29_0.jpg +0 -0
  395. data/doc/dot/m_30_0.dot +802 -0
  396. data/doc/dot/m_30_0.jpg +0 -0
  397. data/doc/dot/m_31_0.dot +802 -0
  398. data/doc/dot/m_31_0.jpg +0 -0
  399. data/doc/dot/m_32_0.dot +802 -0
  400. data/doc/dot/m_32_0.jpg +0 -0
  401. data/doc/dot/m_33_0.dot +802 -0
  402. data/doc/dot/m_33_0.jpg +0 -0
  403. data/doc/dot/m_34_0.dot +802 -0
  404. data/doc/dot/m_34_0.jpg +0 -0
  405. data/doc/dot/m_35_0.dot +802 -0
  406. data/doc/dot/m_35_0.jpg +0 -0
  407. data/doc/dot/m_36_0.dot +802 -0
  408. data/doc/dot/m_36_0.jpg +0 -0
  409. data/doc/dot/m_37_0.dot +802 -0
  410. data/doc/dot/m_37_0.jpg +0 -0
  411. data/doc/dot/m_38_0.dot +54 -0
  412. data/doc/dot/m_38_0.jpg +0 -0
  413. data/doc/dot/m_39_0.dot +802 -0
  414. data/doc/dot/m_39_0.jpg +0 -0
  415. data/doc/dot/m_40_0.dot +802 -0
  416. data/doc/dot/m_40_0.jpg +0 -0
  417. data/doc/dot/m_41_0.dot +802 -0
  418. data/doc/dot/m_41_0.jpg +0 -0
  419. data/doc/dot/m_42_0.dot +802 -0
  420. data/doc/dot/m_42_0.jpg +0 -0
  421. data/doc/dot/m_43_0.dot +802 -0
  422. data/doc/dot/m_43_0.jpg +0 -0
  423. data/doc/dot/m_44_0.dot +802 -0
  424. data/doc/dot/m_44_0.jpg +0 -0
  425. data/doc/dot/m_4_0.dot +802 -0
  426. data/doc/dot/m_4_0.jpg +0 -0
  427. data/doc/dot/m_5_0.dot +802 -0
  428. data/doc/dot/m_5_0.jpg +0 -0
  429. data/doc/dot/m_6_0.dot +802 -0
  430. data/doc/dot/m_6_0.jpg +0 -0
  431. data/doc/dot/m_7_0.dot +802 -0
  432. data/doc/dot/m_7_0.jpg +0 -0
  433. data/doc/dot/m_8_0.dot +802 -0
  434. data/doc/dot/m_8_0.jpg +0 -0
  435. data/doc/dot/m_9_0.dot +802 -0
  436. data/doc/dot/m_9_0.jpg +0 -0
  437. data/doc/files/DEPENDS.html +107 -0
  438. data/doc/files/HISTORY.html +316 -0
  439. data/doc/files/INSTALL.html +126 -0
  440. data/doc/files/README.html +1223 -0
  441. data/doc/files/TODO.html +148 -0
  442. data/doc/files/TUTORIAL.html +392 -0
  443. data/doc/files/VERSION.html +107 -0
  444. data/doc/files/bin/rq_rb.html +231 -0
  445. data/doc/files/install_rb.html +188 -0
  446. data/doc/files/install_rb.src/M000001.html +53 -0
  447. data/doc/files/install_rb.src/M000002.html +43 -0
  448. data/doc/files/lib/rq-1_0_0/backer_rb.html +174 -0
  449. data/doc/files/lib/rq-1_0_0/configfile_rb.html +174 -0
  450. data/doc/files/lib/rq-1_0_0/configurator_rb.html +174 -0
  451. data/doc/files/lib/rq-1_0_0/creator_rb.html +174 -0
  452. data/doc/files/lib/rq-1_0_0/defaultconfig_txt.html +110 -0
  453. data/doc/files/lib/rq-1_0_0/deleter_rb.html +174 -0
  454. data/doc/files/lib/rq-1_0_0/executor_rb.html +174 -0
  455. data/doc/files/lib/rq-1_0_0/feeder_rb.html +178 -0
  456. data/doc/files/lib/rq-1_0_0/job_rb.html +176 -0
  457. data/doc/files/lib/rq-1_0_0/jobqueue_rb.html +177 -0
  458. data/doc/files/lib/rq-1_0_0/jobrunner_rb.html +175 -0
  459. data/doc/files/lib/rq-1_0_0/jobrunnerdaemon_rb.html +179 -0
  460. data/doc/files/lib/rq-1_0_0/lister_rb.html +174 -0
  461. data/doc/files/lib/rq-1_0_0/locker_rb.html +175 -0
  462. data/doc/files/lib/rq-1_0_0/logging_rb.html +178 -0
  463. data/doc/files/lib/rq-1_0_0/mainhelper_rb.html +175 -0
  464. data/doc/files/lib/rq-1_0_0/qdb_rb.html +177 -0
  465. data/doc/files/lib/rq-1_0_0/querier_rb.html +174 -0
  466. data/doc/files/lib/rq-1_0_0/refresher_rb.html +167 -0
  467. data/doc/files/lib/rq-1_0_0/relayer_rb.html +178 -0
  468. data/doc/files/lib/rq-1_0_0/sleepcycle_rb.html +167 -0
  469. data/doc/files/lib/rq-1_0_0/snapshotter_rb.html +174 -0
  470. data/doc/files/lib/rq-1_0_0/statuslister_rb.html +174 -0
  471. data/doc/files/lib/rq-1_0_0/submitter_rb.html +174 -0
  472. data/doc/files/lib/rq-1_0_0/updater_rb.html +174 -0
  473. data/doc/files/lib/rq-1_0_0/usage_rb.html +174 -0
  474. data/doc/files/lib/rq-1_0_0/util_rb.html +176 -0
  475. data/doc/files/lib/rq-2_0_0/backer_rb.html +180 -0
  476. data/doc/files/lib/rq-2_0_0/configfile_rb.html +180 -0
  477. data/doc/files/lib/rq-2_0_0/configurator_rb.html +180 -0
  478. data/doc/files/lib/rq-2_0_0/creator_rb.html +180 -0
  479. data/doc/files/lib/rq-2_0_0/defaultconfig_txt.html +110 -0
  480. data/doc/files/lib/rq-2_0_0/deleter_rb.html +180 -0
  481. data/doc/files/lib/rq-2_0_0/executor_rb.html +180 -0
  482. data/doc/files/lib/rq-2_0_0/feeder_rb.html +184 -0
  483. data/doc/files/lib/rq-2_0_0/job_rb.html +182 -0
  484. data/doc/files/lib/rq-2_0_0/jobqueue_rb.html +185 -0
  485. data/doc/files/lib/rq-2_0_0/jobrunner_rb.html +181 -0
  486. data/doc/files/lib/rq-2_0_0/jobrunnerdaemon_rb.html +185 -0
  487. data/doc/files/lib/rq-2_0_0/lister_rb.html +180 -0
  488. data/doc/files/lib/rq-2_0_0/locker_rb.html +181 -0
  489. data/doc/files/lib/rq-2_0_0/logging_rb.html +184 -0
  490. data/doc/files/lib/rq-2_0_0/mainhelper_rb.html +181 -0
  491. data/doc/files/lib/rq-2_0_0/orderedautohash_rb.html +182 -0
  492. data/doc/files/lib/rq-2_0_0/orderedhash_rb.html +138 -0
  493. data/doc/files/lib/rq-2_0_0/qdb_rb.html +184 -0
  494. data/doc/files/lib/rq-2_0_0/querier_rb.html +180 -0
  495. data/doc/files/lib/rq-2_0_0/refresher_rb.html +173 -0
  496. data/doc/files/lib/rq-2_0_0/relayer_rb.html +184 -0
  497. data/doc/files/lib/rq-2_0_0/rotater_rb.html +180 -0
  498. data/doc/files/lib/rq-2_0_0/sleepcycle_rb.html +173 -0
  499. data/doc/files/lib/rq-2_0_0/snapshotter_rb.html +180 -0
  500. data/doc/files/lib/rq-2_0_0/statuslister_rb.html +180 -0
  501. data/doc/files/lib/rq-2_0_0/submitter_rb.html +181 -0
  502. data/doc/files/lib/rq-2_0_0/updater_rb.html +180 -0
  503. data/doc/files/lib/rq-2_0_0/usage_rb.html +180 -0
  504. data/doc/files/lib/rq-2_0_0/util_rb.html +182 -0
  505. data/doc/files/lib/rq-2_3_1/backer_rb.html +182 -0
  506. data/doc/files/lib/rq-2_3_1/configfile_rb.html +182 -0
  507. data/doc/files/lib/rq-2_3_1/configurator_rb.html +182 -0
  508. data/doc/files/lib/rq-2_3_1/creator_rb.html +182 -0
  509. data/doc/files/lib/rq-2_3_1/defaultconfig_txt.html +110 -0
  510. data/doc/files/lib/rq-2_3_1/deleter_rb.html +182 -0
  511. data/doc/files/lib/rq-2_3_1/executor_rb.html +182 -0
  512. data/doc/files/lib/rq-2_3_1/feeder_rb.html +187 -0
  513. data/doc/files/lib/rq-2_3_1/job_rb.html +185 -0
  514. data/doc/files/lib/rq-2_3_1/jobqueue_rb.html +187 -0
  515. data/doc/files/lib/rq-2_3_1/jobrunner_rb.html +184 -0
  516. data/doc/files/lib/rq-2_3_1/jobrunnerdaemon_rb.html +187 -0
  517. data/doc/files/lib/rq-2_3_1/lister_rb.html +182 -0
  518. data/doc/files/lib/rq-2_3_1/locker_rb.html +183 -0
  519. data/doc/files/lib/rq-2_3_1/logging_rb.html +186 -0
  520. data/doc/files/lib/rq-2_3_1/mainhelper_rb.html +183 -0
  521. data/doc/files/lib/rq-2_3_1/orderedautohash_rb.html +184 -0
  522. data/doc/files/lib/rq-2_3_1/orderedhash_rb.html +138 -0
  523. data/doc/files/lib/rq-2_3_1/qdb_rb.html +188 -0
  524. data/doc/files/lib/rq-2_3_1/querier_rb.html +182 -0
  525. data/doc/files/lib/rq-2_3_1/refresher_rb.html +175 -0
  526. data/doc/files/lib/rq-2_3_1/relayer_rb.html +186 -0
  527. data/doc/files/lib/rq-2_3_1/resubmitter_rb.html +183 -0
  528. data/doc/files/lib/rq-2_3_1/rotater_rb.html +182 -0
  529. data/doc/files/lib/rq-2_3_1/sleepcycle_rb.html +175 -0
  530. data/doc/files/lib/rq-2_3_1/snapshotter_rb.html +182 -0
  531. data/doc/files/lib/rq-2_3_1/statuslister_rb.html +182 -0
  532. data/doc/files/lib/rq-2_3_1/submitter_rb.html +183 -0
  533. data/doc/files/lib/rq-2_3_1/updater_rb.html +182 -0
  534. data/doc/files/lib/rq-2_3_1/usage_rb.html +182 -0
  535. data/doc/files/lib/rq-2_3_1/util_rb.html +184 -0
  536. data/doc/files/lib/rq-2_3_1_rb.html +153 -0
  537. data/doc/files/lib/rq-2_3_2/backer_rb.html +186 -0
  538. data/doc/files/lib/rq-2_3_2/configfile_rb.html +186 -0
  539. data/doc/files/lib/rq-2_3_2/configurator_rb.html +186 -0
  540. data/doc/files/lib/rq-2_3_2/creator_rb.html +186 -0
  541. data/doc/files/lib/rq-2_3_2/defaultconfig_txt.html +110 -0
  542. data/doc/files/lib/rq-2_3_2/deleter_rb.html +186 -0
  543. data/doc/files/lib/rq-2_3_2/executor_rb.html +186 -0
  544. data/doc/files/lib/rq-2_3_2/feeder_rb.html +191 -0
  545. data/doc/files/lib/rq-2_3_2/ioviewer_rb.html +186 -0
  546. data/doc/files/lib/rq-2_3_2/job_rb.html +189 -0
  547. data/doc/files/lib/rq-2_3_2/jobqueue_rb.html +192 -0
  548. data/doc/files/lib/rq-2_3_2/jobrunner_rb.html +188 -0
  549. data/doc/files/lib/rq-2_3_2/jobrunnerdaemon_rb.html +191 -0
  550. data/doc/files/lib/rq-2_3_2/lister_rb.html +186 -0
  551. data/doc/files/lib/rq-2_3_2/locker_rb.html +187 -0
  552. data/doc/files/lib/rq-2_3_2/logging_rb.html +190 -0
  553. data/doc/files/lib/rq-2_3_2/mainhelper_rb.html +188 -0
  554. data/doc/files/lib/rq-2_3_2/orderedautohash_rb.html +188 -0
  555. data/doc/files/lib/rq-2_3_2/orderedhash_rb.html +138 -0
  556. data/doc/files/lib/rq-2_3_2/qdb_rb.html +193 -0
  557. data/doc/files/lib/rq-2_3_2/querier_rb.html +186 -0
  558. data/doc/files/lib/rq-2_3_2/recoverer_rb.html +186 -0
  559. data/doc/files/lib/rq-2_3_2/refresher_rb.html +179 -0
  560. data/doc/files/lib/rq-2_3_2/relayer_rb.html +190 -0
  561. data/doc/files/lib/rq-2_3_2/resubmitter_rb.html +187 -0
  562. data/doc/files/lib/rq-2_3_2/rotater_rb.html +186 -0
  563. data/doc/files/lib/rq-2_3_2/sleepcycle_rb.html +179 -0
  564. data/doc/files/lib/rq-2_3_2/snapshotter_rb.html +186 -0
  565. data/doc/files/lib/rq-2_3_2/statuslister_rb.html +186 -0
  566. data/doc/files/lib/rq-2_3_2/submitter_rb.html +187 -0
  567. data/doc/files/lib/rq-2_3_2/updater_rb.html +186 -0
  568. data/doc/files/lib/rq-2_3_2/usage_rb.html +186 -0
  569. data/doc/files/lib/rq-2_3_2/util_rb.html +188 -0
  570. data/doc/files/lib/rq-2_3_3/backer_rb.html +186 -0
  571. data/doc/files/lib/rq-2_3_3/configfile_rb.html +186 -0
  572. data/doc/files/lib/rq-2_3_3/configurator_rb.html +186 -0
  573. data/doc/files/lib/rq-2_3_3/creator_rb.html +186 -0
  574. data/doc/files/lib/rq-2_3_3/defaultconfig_txt.html +110 -0
  575. data/doc/files/lib/rq-2_3_3/deleter_rb.html +186 -0
  576. data/doc/files/lib/rq-2_3_3/executor_rb.html +186 -0
  577. data/doc/files/lib/rq-2_3_3/feeder_rb.html +191 -0
  578. data/doc/files/lib/rq-2_3_3/ioviewer_rb.html +186 -0
  579. data/doc/files/lib/rq-2_3_3/job_rb.html +189 -0
  580. data/doc/files/lib/rq-2_3_3/jobqueue_rb.html +192 -0
  581. data/doc/files/lib/rq-2_3_3/jobrunner_rb.html +188 -0
  582. data/doc/files/lib/rq-2_3_3/jobrunnerdaemon_rb.html +191 -0
  583. data/doc/files/lib/rq-2_3_3/lister_rb.html +186 -0
  584. data/doc/files/lib/rq-2_3_3/locker_rb.html +187 -0
  585. data/doc/files/lib/rq-2_3_3/logging_rb.html +190 -0
  586. data/doc/files/lib/rq-2_3_3/mainhelper_rb.html +188 -0
  587. data/doc/files/lib/rq-2_3_3/orderedautohash_rb.html +188 -0
  588. data/doc/files/lib/rq-2_3_3/orderedhash_rb.html +138 -0
  589. data/doc/files/lib/rq-2_3_3/qdb_rb.html +193 -0
  590. data/doc/files/lib/rq-2_3_3/querier_rb.html +186 -0
  591. data/doc/files/lib/rq-2_3_3/recoverer_rb.html +186 -0
  592. data/doc/files/lib/rq-2_3_3/refresher_rb.html +179 -0
  593. data/doc/files/lib/rq-2_3_3/relayer_rb.html +190 -0
  594. data/doc/files/lib/rq-2_3_3/resubmitter_rb.html +187 -0
  595. data/doc/files/lib/rq-2_3_3/rotater_rb.html +187 -0
  596. data/doc/files/lib/rq-2_3_3/sleepcycle_rb.html +179 -0
  597. data/doc/files/lib/rq-2_3_3/snapshotter_rb.html +186 -0
  598. data/doc/files/lib/rq-2_3_3/statuslister_rb.html +186 -0
  599. data/doc/files/lib/rq-2_3_3/submitter_rb.html +187 -0
  600. data/doc/files/lib/rq-2_3_3/updater_rb.html +186 -0
  601. data/doc/files/lib/rq-2_3_3/usage_rb.html +186 -0
  602. data/doc/files/lib/rq-2_3_3/util_rb.html +188 -0
  603. data/doc/files/lib/rq-3_0_0/backer_rb.html +194 -0
  604. data/doc/files/lib/rq-3_0_0/configfile_rb.html +194 -0
  605. data/doc/files/lib/rq-3_0_0/configurator_rb.html +194 -0
  606. data/doc/files/lib/rq-3_0_0/creator_rb.html +194 -0
  607. data/doc/files/lib/rq-3_0_0/cron_rb.html +194 -0
  608. data/doc/files/lib/rq-3_0_0/defaultconfig_txt.html +110 -0
  609. data/doc/files/lib/rq-3_0_0/deleter_rb.html +194 -0
  610. data/doc/files/lib/rq-3_0_0/executor_rb.html +194 -0
  611. data/doc/files/lib/rq-3_0_0/feeder_rb.html +199 -0
  612. data/doc/files/lib/rq-3_0_0/ioviewer_rb.html +194 -0
  613. data/doc/files/lib/rq-3_0_0/job_rb.html +197 -0
  614. data/doc/files/lib/rq-3_0_0/jobqueue_rb.html +200 -0
  615. data/doc/files/lib/rq-3_0_0/jobrunner_rb.html +196 -0
  616. data/doc/files/lib/rq-3_0_0/jobrunnerdaemon_rb.html +199 -0
  617. data/doc/files/lib/rq-3_0_0/lister_rb.html +194 -0
  618. data/doc/files/lib/rq-3_0_0/locker_rb.html +195 -0
  619. data/doc/files/lib/rq-3_0_0/logging_rb.html +198 -0
  620. data/doc/files/lib/rq-3_0_0/mainhelper_rb.html +196 -0
  621. data/doc/files/lib/rq-3_0_0/orderedautohash_rb.html +196 -0
  622. data/doc/files/lib/rq-3_0_0/orderedhash_rb.html +138 -0
  623. data/doc/files/lib/rq-3_0_0/qdb_rb.html +201 -0
  624. data/doc/files/lib/rq-3_0_0/querier_rb.html +194 -0
  625. data/doc/files/lib/rq-3_0_0/recoverer_rb.html +194 -0
  626. data/doc/files/lib/rq-3_0_0/refresher_rb.html +187 -0
  627. data/doc/files/lib/rq-3_0_0/relayer_rb.html +198 -0
  628. data/doc/files/lib/rq-3_0_0/resource_rb.html +194 -0
  629. data/doc/files/lib/rq-3_0_0/resourcemanager_rb.html +187 -0
  630. data/doc/files/lib/rq-3_0_0/resubmitter_rb.html +195 -0
  631. data/doc/files/lib/rq-3_0_0/rotater_rb.html +195 -0
  632. data/doc/files/lib/rq-3_0_0/sleepcycle_rb.html +187 -0
  633. data/doc/files/lib/rq-3_0_0/snapshotter_rb.html +194 -0
  634. data/doc/files/lib/rq-3_0_0/sqlite_rb.html +160 -0
  635. data/doc/files/lib/rq-3_0_0/statuslister_rb.html +194 -0
  636. data/doc/files/lib/rq-3_0_0/submitter_rb.html +195 -0
  637. data/doc/files/lib/rq-3_0_0/toucher_rb.html +195 -0
  638. data/doc/files/lib/rq-3_0_0/updater_rb.html +194 -0
  639. data/doc/files/lib/rq-3_0_0/usage_rb.html +194 -0
  640. data/doc/files/lib/rq-3_0_0/util_rb.html +196 -0
  641. data/doc/files/lib/rq_rb.html +244 -0
  642. data/doc/fr_class_index.html +73 -0
  643. data/doc/fr_file_index.html +71 -0
  644. data/doc/fr_method_index.html +323 -0
  645. data/doc/index.html +24 -0
  646. data/doc/rdoc-style.css +172 -0
  647. data/extconf.rb +150 -0
  648. data/gemspec.rb +32 -0
  649. data/install.rb +75 -8
  650. data/lib/{rq-0.1.7.rb → rq-3.0.0.rb} +52 -10
  651. data/lib/{rq-0.1.7 → rq-3.0.0}/backer.rb +11 -7
  652. data/lib/{rq-0.1.7 → rq-3.0.0}/configfile.rb +21 -17
  653. data/lib/{rq-0.1.7 → rq-3.0.0}/configurator.rb +10 -6
  654. data/lib/rq-3.0.0/creator.rb +46 -0
  655. data/lib/rq-3.0.0/cron.rb +125 -0
  656. data/lib/{rq-0.1.7 → rq-3.0.0}/defaultconfig.txt +0 -0
  657. data/lib/rq-3.0.0/deleter.rb +51 -0
  658. data/lib/rq-3.0.0/executor.rb +40 -0
  659. data/lib/{rq-0.1.7 → rq-3.0.0}/feeder.rb +245 -91
  660. data/lib/rq-3.0.0/i686-linux/_sqlite.so +0 -0
  661. data/lib/rq-3.0.0/ioviewer.rb +48 -0
  662. data/lib/rq-3.0.0/job.rb +51 -0
  663. data/lib/rq-3.0.0/jobqueue.rb +899 -0
  664. data/lib/rq-3.0.0/jobrunner.rb +104 -0
  665. data/lib/{rq-0.1.7 → rq-3.0.0}/jobrunnerdaemon.rb +41 -27
  666. data/lib/rq-3.0.0/lister.rb +47 -0
  667. data/lib/rq-3.0.0/local/bin/sqlite +0 -0
  668. data/lib/rq-3.0.0/local/include/sqlite.h +868 -0
  669. data/lib/rq-3.0.0/local/lib/libsqlite.a +0 -0
  670. data/lib/rq-3.0.0/local/lib/libsqlite.la +35 -0
  671. data/lib/rq-3.0.0/local/lib/libsqlite.so +0 -0
  672. data/lib/rq-3.0.0/local/lib/libsqlite.so.0 +0 -0
  673. data/lib/rq-3.0.0/local/lib/libsqlite.so.0.8.6 +0 -0
  674. data/lib/rq-3.0.0/local/lib/pkgconfig/sqlite.pc +12 -0
  675. data/lib/{rq-0.1.7 → rq-3.0.0}/locker.rb +12 -6
  676. data/lib/{rq-0.1.7 → rq-3.0.0}/logging.rb +49 -42
  677. data/lib/rq-3.0.0/mainhelper.rb +184 -0
  678. data/lib/rq-3.0.0/orderedautohash.rb +39 -0
  679. data/lib/rq-3.0.0/orderedhash.rb +240 -0
  680. data/lib/{rq-0.1.7 → rq-3.0.0}/qdb.rb +183 -84
  681. data/lib/rq-3.0.0/querier.rb +98 -0
  682. data/lib/rq-3.0.0/recoverer.rb +28 -0
  683. data/lib/{rq-0.1.7 → rq-3.0.0}/refresher.rb +16 -8
  684. data/lib/rq-3.0.0/relayer.rb +283 -0
  685. data/lib/rq-3.0.0/resource.rb +22 -0
  686. data/lib/rq-3.0.0/resourcemanager.rb +40 -0
  687. data/lib/rq-3.0.0/resubmitter.rb +96 -0
  688. data/lib/rq-3.0.0/rotater.rb +98 -0
  689. data/lib/{rq-0.1.7 → rq-3.0.0}/sleepcycle.rb +14 -14
  690. data/lib/rq-3.0.0/snapshotter.rb +40 -0
  691. data/lib/rq-3.0.0/sqlite.rb +293 -0
  692. data/lib/rq-3.0.0/statuslister.rb +48 -0
  693. data/lib/rq-3.0.0/submitter.rb +109 -0
  694. data/lib/rq-3.0.0/toucher.rb +177 -0
  695. data/lib/rq-3.0.0/updater.rb +95 -0
  696. data/lib/rq-3.0.0/usage.rb +1157 -0
  697. data/lib/{rq-0.1.7 → rq-3.0.0}/util.rb +74 -56
  698. data/lib/rq.rb +52 -12
  699. data/rdoc.sh +17 -0
  700. data/rq +3 -1
  701. data/white_box/joblist +8 -0
  702. metadata +779 -96
  703. data/DEPENDS +0 -5
  704. data/HISTORY +0 -26
  705. data/VERSION +0 -1
  706. data/bin/rq-0.1.7 +0 -410
  707. data/lib/rq-0.1.7/creator.rb +0 -23
  708. data/lib/rq-0.1.7/deleter.rb +0 -39
  709. data/lib/rq-0.1.7/executor.rb +0 -41
  710. data/lib/rq-0.1.7/job.rb +0 -51
  711. data/lib/rq-0.1.7/jobqueue.rb +0 -432
  712. data/lib/rq-0.1.7/jobrunner.rb +0 -63
  713. data/lib/rq-0.1.7/lister.rb +0 -22
  714. data/lib/rq-0.1.7/mainhelper.rb +0 -53
  715. data/lib/rq-0.1.7/querier.rb +0 -33
  716. data/lib/rq-0.1.7/snapshotter.rb +0 -25
  717. data/lib/rq-0.1.7/statuslister.rb +0 -22
  718. data/lib/rq-0.1.7/submitter.rb +0 -90
  719. data/lib/rq-0.1.7/updater.rb +0 -95
  720. data/lib/rq-0.1.7/usage.rb +0 -609
  721. data/rdoc.cmd +0 -2
  722. data/rq.gemspec +0 -36
  723. data/rq.help +0 -552
@@ -0,0 +1,35 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "DTD/xhtml1-transitional.dtd">
5
+
6
+ <!--
7
+
8
+ logger (RQ::Logging::LogMethods)
9
+
10
+ -->
11
+ <html>
12
+ <head>
13
+ <title>logger (RQ::Logging::LogMethods)</title>
14
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
15
+ <link rel="stylesheet" href="http://www.FaerieMUD.org/stylesheets/rdoc.css" type="text/css" />
16
+ </head>
17
+ <body>
18
+ <pre><span class="ruby-comment cmt"># File lib/rq-2.3.1/logging.rb, line 31</span>
19
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">logger</span>
20
+ <span class="ruby-comment cmt">#--{{{</span>
21
+ <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">defined?</span>(<span class="ruby-ivar">@logger</span>) <span class="ruby-keyword kw">and</span> <span class="ruby-ivar">@logger</span>
22
+ <span class="ruby-ivar">@logger</span>
23
+ <span class="ruby-keyword kw">else</span>
24
+ <span class="ruby-keyword kw">if</span> <span class="ruby-constant">Class</span> <span class="ruby-operator">===</span> <span class="ruby-keyword kw">self</span>
25
+ <span class="ruby-ivar">@logger</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">default_logger</span>
26
+ <span class="ruby-keyword kw">else</span>
27
+ <span class="ruby-ivar">@logger</span> = <span class="ruby-keyword kw">self</span><span class="ruby-operator">::</span><span class="ruby-identifier">class</span><span class="ruby-operator">::</span><span class="ruby-identifier">logger</span>
28
+ <span class="ruby-keyword kw">end</span>
29
+ <span class="ruby-identifier">raise</span> <span class="ruby-value str">&quot;@logger is undefined!&quot;</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-keyword kw">defined?</span>(<span class="ruby-ivar">@logger</span>) <span class="ruby-keyword kw">and</span> <span class="ruby-ivar">@logger</span>
30
+ <span class="ruby-ivar">@logger</span>
31
+ <span class="ruby-keyword kw">end</span>
32
+ <span class="ruby-comment cmt">#--}}}</span>
33
+ <span class="ruby-keyword kw">end</span></pre>
34
+ </body>
35
+ </html>
@@ -0,0 +1,28 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "DTD/xhtml1-transitional.dtd">
5
+
6
+ <!--
7
+
8
+ logger= (RQ::Logging::LogMethods)
9
+
10
+ -->
11
+ <html>
12
+ <head>
13
+ <title>logger= (RQ::Logging::LogMethods)</title>
14
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
15
+ <link rel="stylesheet" href="http://www.FaerieMUD.org/stylesheets/rdoc.css" type="text/css" />
16
+ </head>
17
+ <body>
18
+ <pre><span class="ruby-comment cmt"># File lib/rq-2.3.1/logging.rb, line 46</span>
19
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">logger=</span> <span class="ruby-identifier">log</span>
20
+ <span class="ruby-comment cmt">#--{{{</span>
21
+ <span class="ruby-ivar">@logger</span> = <span class="ruby-identifier">log</span>
22
+ <span class="ruby-ivar">@logger</span>.<span class="ruby-identifier">extend</span> <span class="ruby-constant">LoggerExt</span>
23
+ <span class="ruby-ivar">@logger</span>.<span class="ruby-identifier">logdev</span>.<span class="ruby-identifier">dev</span>.<span class="ruby-identifier">sync</span> = <span class="ruby-keyword kw">true</span>
24
+ <span class="ruby-ivar">@logger</span>
25
+ <span class="ruby-comment cmt">#--}}}</span>
26
+ <span class="ruby-keyword kw">end</span></pre>
27
+ </body>
28
+ </html>
@@ -0,0 +1,21 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "DTD/xhtml1-transitional.dtd">
5
+
6
+ <!--
7
+
8
+ debug (RQ::Logging::LogMethods)
9
+
10
+ -->
11
+ <html>
12
+ <head>
13
+ <title>debug (RQ::Logging::LogMethods)</title>
14
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
15
+ <link rel="stylesheet" href="http://www.FaerieMUD.org/stylesheets/rdoc.css" type="text/css" />
16
+ </head>
17
+ <body>
18
+ <pre><span class="ruby-comment cmt"># File lib/rq-2.3.1/logging.rb, line 54</span>
19
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">debug</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>); <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">debug</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>); <span class="ruby-keyword kw">end</span></pre>
20
+ </body>
21
+ </html>
@@ -0,0 +1,21 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "DTD/xhtml1-transitional.dtd">
5
+
6
+ <!--
7
+
8
+ info (RQ::Logging::LogMethods)
9
+
10
+ -->
11
+ <html>
12
+ <head>
13
+ <title>info (RQ::Logging::LogMethods)</title>
14
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
15
+ <link rel="stylesheet" href="http://www.FaerieMUD.org/stylesheets/rdoc.css" type="text/css" />
16
+ </head>
17
+ <body>
18
+ <pre><span class="ruby-comment cmt"># File lib/rq-2.3.1/logging.rb, line 55</span>
19
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">info</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>); <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">info</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>) ; <span class="ruby-keyword kw">end</span></pre>
20
+ </body>
21
+ </html>
@@ -0,0 +1,21 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "DTD/xhtml1-transitional.dtd">
5
+
6
+ <!--
7
+
8
+ warn (RQ::Logging::LogMethods)
9
+
10
+ -->
11
+ <html>
12
+ <head>
13
+ <title>warn (RQ::Logging::LogMethods)</title>
14
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
15
+ <link rel="stylesheet" href="http://www.FaerieMUD.org/stylesheets/rdoc.css" type="text/css" />
16
+ </head>
17
+ <body>
18
+ <pre><span class="ruby-comment cmt"># File lib/rq-2.3.1/logging.rb, line 56</span>
19
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">warn</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>); <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">warn</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>) ; <span class="ruby-keyword kw">end</span></pre>
20
+ </body>
21
+ </html>
@@ -0,0 +1,21 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "DTD/xhtml1-transitional.dtd">
5
+
6
+ <!--
7
+
8
+ error (RQ::Logging::LogMethods)
9
+
10
+ -->
11
+ <html>
12
+ <head>
13
+ <title>error (RQ::Logging::LogMethods)</title>
14
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
15
+ <link rel="stylesheet" href="http://www.FaerieMUD.org/stylesheets/rdoc.css" type="text/css" />
16
+ </head>
17
+ <body>
18
+ <pre><span class="ruby-comment cmt"># File lib/rq-2.3.1/logging.rb, line 57</span>
19
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">error</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>); <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">error</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>); <span class="ruby-keyword kw">end</span></pre>
20
+ </body>
21
+ </html>
@@ -0,0 +1,21 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "DTD/xhtml1-transitional.dtd">
5
+
6
+ <!--
7
+
8
+ fatal (RQ::Logging::LogMethods)
9
+
10
+ -->
11
+ <html>
12
+ <head>
13
+ <title>fatal (RQ::Logging::LogMethods)</title>
14
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
15
+ <link rel="stylesheet" href="http://www.FaerieMUD.org/stylesheets/rdoc.css" type="text/css" />
16
+ </head>
17
+ <body>
18
+ <pre><span class="ruby-comment cmt"># File lib/rq-2.3.1/logging.rb, line 58</span>
19
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">fatal</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>); <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">fatal</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>); <span class="ruby-keyword kw">end</span></pre>
20
+ </body>
21
+ </html>
@@ -0,0 +1,29 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "DTD/xhtml1-transitional.dtd">
5
+
6
+ <!--
7
+
8
+ logerr (RQ::Logging::LogMethods)
9
+
10
+ -->
11
+ <html>
12
+ <head>
13
+ <title>logerr (RQ::Logging::LogMethods)</title>
14
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
15
+ <link rel="stylesheet" href="http://www.FaerieMUD.org/stylesheets/rdoc.css" type="text/css" />
16
+ </head>
17
+ <body>
18
+ <pre><span class="ruby-comment cmt"># File lib/rq-2.3.1/logging.rb, line 59</span>
19
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">logerr</span> <span class="ruby-identifier">e</span>
20
+ <span class="ruby-comment cmt">#--{{{</span>
21
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">debug?</span>
22
+ <span class="ruby-identifier">error</span>{ <span class="ruby-constant">Util</span><span class="ruby-operator">::</span><span class="ruby-identifier">errmsg</span> <span class="ruby-identifier">e</span> }
23
+ <span class="ruby-keyword kw">else</span>
24
+ <span class="ruby-identifier">error</span>{ <span class="ruby-constant">Util</span><span class="ruby-operator">::</span><span class="ruby-identifier">emsg</span> <span class="ruby-identifier">e</span> }
25
+ <span class="ruby-keyword kw">end</span>
26
+ <span class="ruby-comment cmt">#--}}}</span>
27
+ <span class="ruby-keyword kw">end</span></pre>
28
+ </body>
29
+ </html>
@@ -0,0 +1,194 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Module: RQ::Logging::LoggerExt</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <h1>RQ::Logging::LoggerExt <sup class="type-note">(Module)</sup></h1>
51
+ <table class="header-table">
52
+ <tr class="top-aligned-row">
53
+ <td><strong>In:</strong></td>
54
+ <td>
55
+ <a href="../../../files/lib/rq-3_0_0/logging_rb.html">
56
+ lib/rq-3.0.0/logging.rb
57
+ </a>
58
+ <br />
59
+ </td>
60
+ </tr>
61
+
62
+ </table>
63
+ </div>
64
+ <!-- banner header -->
65
+
66
+ <div id="bodyContent">
67
+
68
+
69
+ <div id="contextContent">
70
+ <div id="diagram">
71
+ <map name="map">
72
+ <area shape="RECT" coords="1093,335,1176,287" href="../MainHelper.html" alt="MainHelper">
73
+ <area shape="RECT" coords="67,453,152,405" href="../StatusLister.html" alt="StatusLister">
74
+ <area shape="RECT" coords="215,453,303,405" href="../Snapshotter.html" alt="Snapshotter">
75
+ <area shape="RECT" coords="363,453,451,405" href="../ReSubmitter.html" alt="ReSubmitter">
76
+ <area shape="RECT" coords="504,453,576,405" href="../Feeder.html" alt="Feeder">
77
+ <area shape="RECT" coords="632,453,704,405" href="../Deleter.html" alt="Deleter">
78
+ <area shape="RECT" coords="763,453,835,405" href="../Toucher.html" alt="Toucher">
79
+ <area shape="RECT" coords="891,453,963,405" href="../Relayer.html" alt="Relayer">
80
+ <area shape="RECT" coords="1027,453,1099,405" href="../Executor.html" alt="Executor">
81
+ <area shape="RECT" coords="1131,453,1205,405" href="../Submitter.html" alt="Submitter">
82
+ <area shape="RECT" coords="1269,453,1341,405" href="../Locker.html" alt="Locker">
83
+ <area shape="RECT" coords="1393,453,1468,405" href="../IOViewer.html" alt="IOViewer">
84
+ <area shape="RECT" coords="1528,453,1600,405" href="../Backer.html" alt="Backer">
85
+ <area shape="RECT" coords="1656,453,1728,405" href="../Cron.html" alt="Cron">
86
+ <area shape="RECT" coords="1773,453,1861,405" href="../Configurator.html" alt="Configurator">
87
+ <area shape="RECT" coords="1924,453,1996,405" href="../Lister.html" alt="Lister">
88
+ <area shape="RECT" coords="2043,453,2115,405" href="../Rotater.html" alt="Rotater">
89
+ <area shape="RECT" coords="2169,453,2241,405" href="../Creator.html" alt="Creator">
90
+ <area shape="RECT" coords="2299,453,2379,405" href="../Recoverer.html" alt="Recoverer">
91
+ <area shape="RECT" coords="2439,453,2511,405" href="../Updater.html" alt="Updater">
92
+ <area shape="RECT" coords="2571,453,2643,405" href="../Querier.html" alt="Querier">
93
+ <area shape="RECT" coords="1868,53,1940,5" href="../../Hash.html" alt="::Hash">
94
+ <area shape="RECT" coords="1865,216,1943,168" href="../ConfigFile.html" alt="ConfigFile">
95
+ <area shape="RECT" coords="1996,53,2089,5" href="../../DRbUndumped.html" alt="DRbUndumped">
96
+ <area shape="RECT" coords="2001,216,2084,168" href="../JobRunner.html" alt="JobRunner">
97
+ <area shape="RECT" coords="1463,335,1535,287" href="../Main.html" alt="Main">
98
+ <area shape="RECT" coords="1213,335,1285,287" href="../QDB.html" alt="QDB">
99
+ <area shape="RECT" coords="1323,335,1403,287" href="../JobQueue.html" alt="JobQueue">
100
+ <area shape="RECT" coords="904,335,1027,287" href="../JobRunnerDaemon.html" alt="JobRunnerDaemon">
101
+ <area shape="RECT" coords="2173,53,2245,5" href="../../Array.html" alt="Array">
102
+ <area shape="RECT" coords="2159,216,2241,168" href="../SleepCycle.html" alt="SleepCycle">
103
+ <area shape="RECT" coords="2273,216,2345,168" href="../Job.html" alt="Job">
104
+ <area shape="RECT" coords="2272,53,2347,5" href="../../ArrayFields.html" alt="ArrayFields">
105
+ <area shape="RECT" coords="2407,53,2505,5" href="../../OrderedHash.html" alt="::OrderedHash">
106
+ <area shape="RECT" coords="2399,216,2513,168" href="../OrderedAutoHash.html" alt="OrderedAutoHash">
107
+ <area shape="RECT" coords="925,53,1005,5" href="../../LogMethods.html" alt="LogMethods">
108
+ <area shape="RECT" coords="2575,216,2652,168" href="../Refresher.html" alt="Refresher">
109
+ <area shape="RECT" coords="1687,216,1804,168" href="../ResourceManager.html" alt="ResourceManager">
110
+ <area shape="RECT" coords="1549,216,1624,168" href="../Resource.html" alt="Resource">
111
+ <area shape="RECT" coords="2549,227,2677,135" href="../../RQ.html" alt="lib/rq-3.0.0/refresher.rb">
112
+ <area shape="RECT" coords="173,464,313,372" href="../../RQ.html" alt="lib/rq-3.0.0/snapshotter.rb">
113
+ <area shape="RECT" coords="597,464,715,372" href="../../RQ.html" alt="lib/rq-3.0.0/deleter.rb">
114
+ <area shape="RECT" coords="472,464,587,372" href="../../RQ.html" alt="lib/rq-3.0.0/feeder.rb">
115
+ <area shape="RECT" coords="1763,464,1903,372" href="../../RQ.html" alt="lib/rq-3.0.0/configurator.rb">
116
+ <area shape="RECT" coords="1645,464,1752,372" href="../../RQ.html" alt="lib/rq-3.0.0/cron.rb">
117
+ <area shape="RECT" coords="1312,345,1441,253" href="../../RQ.html" alt="lib/rq-3.0.0/jobqueue.rb">
118
+ <area shape="RECT" coords="2032,464,2148,372" href="../../RQ.html" alt="lib/rq-3.0.0/rotater.rb">
119
+ <area shape="RECT" coords="1517,464,1635,372" href="../../RQ.html" alt="lib/rq-3.0.0/backer.rb">
120
+ <area shape="RECT" coords="725,464,845,372" href="../../RQ.html" alt="lib/rq-3.0.0/toucher.rb">
121
+ <area shape="RECT" coords="1197,345,1301,253" href="../../RQ.html" alt="lib/rq-3.0.0/qdb.rb">
122
+ <area shape="RECT" coords="1840,227,1967,135" href="../../RQ.html" alt="lib/rq-3.0.0/configfile.rb">
123
+ <area shape="RECT" coords="1049,345,1187,253" href="../../RQ.html" alt="lib/rq-3.0.0/mainhelper.rb">
124
+ <area shape="RECT" coords="1913,464,2021,372" href="../../RQ.html" alt="lib/rq-3.0.0/lister.rb">
125
+ <area shape="RECT" coords="1452,345,1545,253" href="../../RQ.html" alt="bin/rq.rb">
126
+ <area shape="RECT" coords="27,464,163,372" href="../../RQ.html" alt="lib/rq-3.0.0/statuslister.rb">
127
+ <area shape="RECT" coords="2428,464,2549,372" href="../../RQ.html" alt="lib/rq-3.0.0/updater.rb">
128
+ <area shape="RECT" coords="1977,227,2107,135" href="../../RQ.html" alt="lib/rq-3.0.0/jobrunner.rb">
129
+ <area shape="RECT" coords="2263,227,2363,135" href="../../RQ.html" alt="lib/rq-3.0.0/job.rb">
130
+ <area shape="RECT" coords="2159,464,2277,372" href="../../RQ.html" alt="lib/rq-3.0.0/creator.rb">
131
+ <area shape="RECT" coords="2117,227,2252,135" href="../../RQ.html" alt="lib/rq-3.0.0/sleepcycle.rb">
132
+ <area shape="RECT" coords="984,464,1109,372" href="../../RQ.html" alt="lib/rq-3.0.0/executor.rb">
133
+ <area shape="RECT" coords="324,464,461,372" href="../../RQ.html" alt="lib/rq-3.0.0/resubmitter.rb">
134
+ <area shape="RECT" coords="2373,227,2539,135" href="../../RQ.html" alt="lib/rq-3.0.0/orderedautohash.rb">
135
+ <area shape="RECT" coords="1661,227,1829,135" href="../../RQ.html" alt="lib/rq-3.0.0/resourcemanager.rb">
136
+ <area shape="RECT" coords="1524,227,1651,135" href="../../RQ.html" alt="lib/rq-3.0.0/resource.rb">
137
+ <area shape="RECT" coords="869,345,1037,253" href="../../RQ.html" alt="lib/rq-3.0.0/jobrunnerdaemon.rb">
138
+ <area shape="RECT" coords="2288,464,2417,372" href="../../RQ.html" alt="lib/rq-3.0.0/recoverer.rb">
139
+ <area shape="RECT" coords="2560,464,2677,372" href="../../RQ.html" alt="lib/rq-3.0.0/querier.rb">
140
+ <area shape="RECT" coords="1383,464,1507,372" href="../../RQ.html" alt="lib/rq-3.0.0/ioviewer.rb">
141
+ <area shape="RECT" coords="1259,464,1372,372" href="../../RQ.html" alt="lib/rq-3.0.0/locker.rb">
142
+ <area shape="RECT" coords="1120,464,1248,372" href="../../RQ.html" alt="lib/rq-3.0.0/submitter.rb">
143
+ <area shape="RECT" coords="856,464,973,372" href="../../RQ.html" alt="lib/rq-3.0.0/relayer.rb">
144
+ <area shape="RECT" coords="1420,204,1513,157" href="../Usage.html" alt="Usage">
145
+ <area shape="RECT" coords="1316,204,1409,157" href="../Util.html" alt="Util">
146
+ <area shape="RECT" coords="1188,204,1295,157" href="LogClassMethods.html" alt="LogClassMethods">
147
+ <area shape="RECT" coords="1084,204,1177,157" href="LoggerExt.html" alt="LoggerExt">
148
+ <area shape="RECT" coords="980,204,1073,157" href="LogMethods.html" alt="LogMethods">
149
+ <area shape="RECT" coords="953,215,1305,124" href="../Logging.html" alt="Logging">
150
+ <area shape="RECT" coords="16,475,2688,91" href="../../RQ.html" alt="RQ">
151
+ </map>
152
+ <img src="../../../dot/m_44_0.jpg" usemap="#map" border=0 alt="Module: RQ">
153
+ </div>
154
+
155
+
156
+
157
+
158
+
159
+
160
+
161
+ <div id="attribute-list">
162
+ <h2 class="section-bar">Attributes</h2>
163
+
164
+ <div class="name-list">
165
+ <table>
166
+ <tr class="top-aligned-row context-row">
167
+ <td class="context-item-name">logdev</td>
168
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
169
+ <td class="context-item-desc"></td>
170
+ </tr>
171
+ </table>
172
+ </div>
173
+ </div>
174
+
175
+
176
+ </div>
177
+
178
+
179
+
180
+ <!-- if includes -->
181
+
182
+
183
+ <!-- if method_list -->
184
+
185
+
186
+ </div>
187
+
188
+
189
+ <div id="validator-badges">
190
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
191
+ </div>
192
+
193
+ </body>
194
+ </html>
@@ -0,0 +1,2110 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: RQ::Main</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <h1>RQ::Main <sup class="type-note">(Class)</sup></h1>
51
+ <table class="header-table">
52
+ <tr class="top-aligned-row">
53
+ <td><strong>In:</strong></td>
54
+ <td>
55
+ <a href="../../files/bin/rq_rb.html">
56
+ bin/rq.rb
57
+ </a>
58
+ <br />
59
+ </td>
60
+ </tr>
61
+
62
+ <tr class="top-aligned-row">
63
+ <td><strong>Parent:</strong></td>
64
+ <td>
65
+ Object
66
+ </td>
67
+ </tr>
68
+ </table>
69
+ </div>
70
+ <!-- banner header -->
71
+
72
+ <div id="bodyContent">
73
+
74
+
75
+ <div id="contextContent">
76
+ <div id="diagram">
77
+ <map name="map">
78
+ <area shape="RECT" coords="1093,335,1176,287" href="MainHelper.html" alt="MainHelper">
79
+ <area shape="RECT" coords="67,453,152,405" href="StatusLister.html" alt="StatusLister">
80
+ <area shape="RECT" coords="215,453,303,405" href="Snapshotter.html" alt="Snapshotter">
81
+ <area shape="RECT" coords="363,453,451,405" href="ReSubmitter.html" alt="ReSubmitter">
82
+ <area shape="RECT" coords="504,453,576,405" href="Feeder.html" alt="Feeder">
83
+ <area shape="RECT" coords="632,453,704,405" href="Deleter.html" alt="Deleter">
84
+ <area shape="RECT" coords="763,453,835,405" href="Toucher.html" alt="Toucher">
85
+ <area shape="RECT" coords="891,453,963,405" href="Relayer.html" alt="Relayer">
86
+ <area shape="RECT" coords="1027,453,1099,405" href="Executor.html" alt="Executor">
87
+ <area shape="RECT" coords="1131,453,1205,405" href="Submitter.html" alt="Submitter">
88
+ <area shape="RECT" coords="1269,453,1341,405" href="Locker.html" alt="Locker">
89
+ <area shape="RECT" coords="1393,453,1468,405" href="IOViewer.html" alt="IOViewer">
90
+ <area shape="RECT" coords="1528,453,1600,405" href="Backer.html" alt="Backer">
91
+ <area shape="RECT" coords="1656,453,1728,405" href="Cron.html" alt="Cron">
92
+ <area shape="RECT" coords="1773,453,1861,405" href="Configurator.html" alt="Configurator">
93
+ <area shape="RECT" coords="1924,453,1996,405" href="Lister.html" alt="Lister">
94
+ <area shape="RECT" coords="2043,453,2115,405" href="Rotater.html" alt="Rotater">
95
+ <area shape="RECT" coords="2169,453,2241,405" href="Creator.html" alt="Creator">
96
+ <area shape="RECT" coords="2299,453,2379,405" href="Recoverer.html" alt="Recoverer">
97
+ <area shape="RECT" coords="2439,453,2511,405" href="Updater.html" alt="Updater">
98
+ <area shape="RECT" coords="2571,453,2643,405" href="Querier.html" alt="Querier">
99
+ <area shape="RECT" coords="1868,53,1940,5" href="../Hash.html" alt="::Hash">
100
+ <area shape="RECT" coords="1865,216,1943,168" href="ConfigFile.html" alt="ConfigFile">
101
+ <area shape="RECT" coords="1996,53,2089,5" href="../DRbUndumped.html" alt="DRbUndumped">
102
+ <area shape="RECT" coords="2001,216,2084,168" href="JobRunner.html" alt="JobRunner">
103
+ <area shape="RECT" coords="1463,335,1535,287" href="Main.html" alt="Main">
104
+ <area shape="RECT" coords="1213,335,1285,287" href="QDB.html" alt="QDB">
105
+ <area shape="RECT" coords="1323,335,1403,287" href="JobQueue.html" alt="JobQueue">
106
+ <area shape="RECT" coords="904,335,1027,287" href="JobRunnerDaemon.html" alt="JobRunnerDaemon">
107
+ <area shape="RECT" coords="2173,53,2245,5" href="../Array.html" alt="Array">
108
+ <area shape="RECT" coords="2159,216,2241,168" href="SleepCycle.html" alt="SleepCycle">
109
+ <area shape="RECT" coords="2273,216,2345,168" href="Job.html" alt="Job">
110
+ <area shape="RECT" coords="2272,53,2347,5" href="../ArrayFields.html" alt="ArrayFields">
111
+ <area shape="RECT" coords="2407,53,2505,5" href="../OrderedHash.html" alt="::OrderedHash">
112
+ <area shape="RECT" coords="2399,216,2513,168" href="OrderedAutoHash.html" alt="OrderedAutoHash">
113
+ <area shape="RECT" coords="925,53,1005,5" href="../LogMethods.html" alt="LogMethods">
114
+ <area shape="RECT" coords="2575,216,2652,168" href="Refresher.html" alt="Refresher">
115
+ <area shape="RECT" coords="1687,216,1804,168" href="ResourceManager.html" alt="ResourceManager">
116
+ <area shape="RECT" coords="1549,216,1624,168" href="Resource.html" alt="Resource">
117
+ <area shape="RECT" coords="2549,227,2677,135" href="../RQ.html" alt="lib/rq-3.0.0/refresher.rb">
118
+ <area shape="RECT" coords="173,464,313,372" href="../RQ.html" alt="lib/rq-3.0.0/snapshotter.rb">
119
+ <area shape="RECT" coords="597,464,715,372" href="../RQ.html" alt="lib/rq-3.0.0/deleter.rb">
120
+ <area shape="RECT" coords="472,464,587,372" href="../RQ.html" alt="lib/rq-3.0.0/feeder.rb">
121
+ <area shape="RECT" coords="1763,464,1903,372" href="../RQ.html" alt="lib/rq-3.0.0/configurator.rb">
122
+ <area shape="RECT" coords="1645,464,1752,372" href="../RQ.html" alt="lib/rq-3.0.0/cron.rb">
123
+ <area shape="RECT" coords="1312,345,1441,253" href="../RQ.html" alt="lib/rq-3.0.0/jobqueue.rb">
124
+ <area shape="RECT" coords="2032,464,2148,372" href="../RQ.html" alt="lib/rq-3.0.0/rotater.rb">
125
+ <area shape="RECT" coords="1517,464,1635,372" href="../RQ.html" alt="lib/rq-3.0.0/backer.rb">
126
+ <area shape="RECT" coords="725,464,845,372" href="../RQ.html" alt="lib/rq-3.0.0/toucher.rb">
127
+ <area shape="RECT" coords="1197,345,1301,253" href="../RQ.html" alt="lib/rq-3.0.0/qdb.rb">
128
+ <area shape="RECT" coords="1840,227,1967,135" href="../RQ.html" alt="lib/rq-3.0.0/configfile.rb">
129
+ <area shape="RECT" coords="1049,345,1187,253" href="../RQ.html" alt="lib/rq-3.0.0/mainhelper.rb">
130
+ <area shape="RECT" coords="1913,464,2021,372" href="../RQ.html" alt="lib/rq-3.0.0/lister.rb">
131
+ <area shape="RECT" coords="1452,345,1545,253" href="../RQ.html" alt="bin/rq.rb">
132
+ <area shape="RECT" coords="27,464,163,372" href="../RQ.html" alt="lib/rq-3.0.0/statuslister.rb">
133
+ <area shape="RECT" coords="2428,464,2549,372" href="../RQ.html" alt="lib/rq-3.0.0/updater.rb">
134
+ <area shape="RECT" coords="1977,227,2107,135" href="../RQ.html" alt="lib/rq-3.0.0/jobrunner.rb">
135
+ <area shape="RECT" coords="2263,227,2363,135" href="../RQ.html" alt="lib/rq-3.0.0/job.rb">
136
+ <area shape="RECT" coords="2159,464,2277,372" href="../RQ.html" alt="lib/rq-3.0.0/creator.rb">
137
+ <area shape="RECT" coords="2117,227,2252,135" href="../RQ.html" alt="lib/rq-3.0.0/sleepcycle.rb">
138
+ <area shape="RECT" coords="984,464,1109,372" href="../RQ.html" alt="lib/rq-3.0.0/executor.rb">
139
+ <area shape="RECT" coords="324,464,461,372" href="../RQ.html" alt="lib/rq-3.0.0/resubmitter.rb">
140
+ <area shape="RECT" coords="2373,227,2539,135" href="../RQ.html" alt="lib/rq-3.0.0/orderedautohash.rb">
141
+ <area shape="RECT" coords="1661,227,1829,135" href="../RQ.html" alt="lib/rq-3.0.0/resourcemanager.rb">
142
+ <area shape="RECT" coords="1524,227,1651,135" href="../RQ.html" alt="lib/rq-3.0.0/resource.rb">
143
+ <area shape="RECT" coords="869,345,1037,253" href="../RQ.html" alt="lib/rq-3.0.0/jobrunnerdaemon.rb">
144
+ <area shape="RECT" coords="2288,464,2417,372" href="../RQ.html" alt="lib/rq-3.0.0/recoverer.rb">
145
+ <area shape="RECT" coords="2560,464,2677,372" href="../RQ.html" alt="lib/rq-3.0.0/querier.rb">
146
+ <area shape="RECT" coords="1383,464,1507,372" href="../RQ.html" alt="lib/rq-3.0.0/ioviewer.rb">
147
+ <area shape="RECT" coords="1259,464,1372,372" href="../RQ.html" alt="lib/rq-3.0.0/locker.rb">
148
+ <area shape="RECT" coords="1120,464,1248,372" href="../RQ.html" alt="lib/rq-3.0.0/submitter.rb">
149
+ <area shape="RECT" coords="856,464,973,372" href="../RQ.html" alt="lib/rq-3.0.0/relayer.rb">
150
+ <area shape="RECT" coords="1420,204,1513,157" href="Usage.html" alt="Usage">
151
+ <area shape="RECT" coords="1316,204,1409,157" href="Util.html" alt="Util">
152
+ <area shape="RECT" coords="1188,204,1295,157" href="Logging/LogClassMethods.html" alt="LogClassMethods">
153
+ <area shape="RECT" coords="1084,204,1177,157" href="Logging/LoggerExt.html" alt="LoggerExt">
154
+ <area shape="RECT" coords="980,204,1073,157" href="Logging/LogMethods.html" alt="LogMethods">
155
+ <area shape="RECT" coords="953,215,1305,124" href="Logging.html" alt="Logging">
156
+ <area shape="RECT" coords="16,475,2688,91" href="../RQ.html" alt="RQ">
157
+ </map>
158
+ <img src="../../dot/m_44_0.jpg" usemap="#map" border=0 alt="Module: RQ">
159
+ </div>
160
+
161
+ <div id="description">
162
+ <p>
163
+ the <a href="Main.html">Main</a> class is responsible for parsing command
164
+ line paramters and switches, doing some validation, initializing logging,
165
+ and, ultimately, delegating the bulk of the work to a <a
166
+ href="MainHelper.html">MainHelper</a> based on the <em>mode</em> given. the
167
+ relationship between <a href="Main.html">Main</a> and <a
168
+ href="MainHelper.html">MainHelper</a> is a tight one by design - the
169
+ primary purpose of it being to prevent the <a href="Main.html">Main</a>
170
+ class from becoming 10000 lines long. the delegators used include:
171
+ </p>
172
+ <ul>
173
+ <li><a href="Creator.html">Creator</a>
174
+
175
+ </li>
176
+ <li><a href="Submitter.html">Submitter</a>
177
+
178
+ </li>
179
+ <li><a href="Lister.html">Lister</a>
180
+
181
+ </li>
182
+ <li><a href="StatusLister.html">StatusLister</a>
183
+
184
+ </li>
185
+ <li><a href="Deleter.html">Deleter</a>
186
+
187
+ </li>
188
+ <li><a href="Updater.html">Updater</a>
189
+
190
+ </li>
191
+ <li><a href="Querier.html">Querier</a>
192
+
193
+ </li>
194
+ <li><a href="Executor.html">Executor</a>
195
+
196
+ </li>
197
+ <li><a href="Configurator.html">Configurator</a>
198
+
199
+ </li>
200
+ <li><a href="Snapshotter.html">Snapshotter</a>
201
+
202
+ </li>
203
+ <li><a href="Locker.html">Locker</a>
204
+
205
+ </li>
206
+ <li><a href="Backer.html">Backer</a>
207
+
208
+ </li>
209
+ <li><a href="Rotater.html">Rotater</a>
210
+
211
+ </li>
212
+ <li><a href="Feeder.html">Feeder</a>
213
+
214
+ </li>
215
+ <li><a href="IOViewer.html">IOViewer</a>
216
+
217
+ </li>
218
+ </ul>
219
+
220
+ </div>
221
+
222
+
223
+ <div id="method-list">
224
+ <h2 class="section-bar">Methods</h2>
225
+
226
+ <div class="name-list">
227
+ <a href="#M000165">backup</a>&nbsp;&nbsp;
228
+ <a href="#M000186">cat</a>&nbsp;&nbsp;
229
+ <a href="#M000162">configure</a>&nbsp;&nbsp;
230
+ <a href="#M000153">create</a>&nbsp;&nbsp;
231
+ <a href="#M000184">cron</a>&nbsp;&nbsp;
232
+ <a href="#M000158">delete</a>&nbsp;&nbsp;
233
+ <a href="#M000185">dump_ios</a>&nbsp;&nbsp;
234
+ <a href="#M000178">dump_stderr</a>&nbsp;&nbsp;
235
+ <a href="#M000176">dump_stdin</a>&nbsp;&nbsp;
236
+ <a href="#M000177">dump_stdout</a>&nbsp;&nbsp;
237
+ <a href="#M000161">execute</a>&nbsp;&nbsp;
238
+ <a href="#M000188">exists</a>&nbsp;&nbsp;
239
+ <a href="#M000167">feed</a>&nbsp;&nbsp;
240
+ <a href="#M000172">feeder</a>&nbsp;&nbsp;
241
+ <a href="#M000194">gen_template</a>&nbsp;&nbsp;
242
+ <a href="#M000193">init_config</a>&nbsp;&nbsp;
243
+ <a href="#M000192">init_logging</a>&nbsp;&nbsp;
244
+ <a href="#M000175">ioview</a>&nbsp;&nbsp;
245
+ <a href="#M000187">jids4</a>&nbsp;&nbsp;
246
+ <a href="#M000156">list</a>&nbsp;&nbsp;
247
+ <a href="#M000164">lock</a>&nbsp;&nbsp;
248
+ <a href="#M000149">new</a>&nbsp;&nbsp;
249
+ <a href="#M000150">parse_argv</a>&nbsp;&nbsp;
250
+ <a href="#M000191">parse_options</a>&nbsp;&nbsp;
251
+ <a href="#M000190">parse_stdin</a>&nbsp;&nbsp;
252
+ <a href="#M000173">pid</a>&nbsp;&nbsp;
253
+ <a href="#M000160">query</a>&nbsp;&nbsp;
254
+ <a href="#M000174">recover</a>&nbsp;&nbsp;
255
+ <a href="#M000171">restart</a>&nbsp;&nbsp;
256
+ <a href="#M000155">resubmit</a>&nbsp;&nbsp;
257
+ <a href="#M000166">rotate</a>&nbsp;&nbsp;
258
+ <a href="#M000152">run</a>&nbsp;&nbsp;
259
+ <a href="#M000151">setup_dot_rq_dir</a>&nbsp;&nbsp;
260
+ <a href="#M000169">shutdown</a>&nbsp;&nbsp;
261
+ <a href="#M000189">signal_feeder</a>&nbsp;&nbsp;
262
+ <a href="#M000163">snapshot</a>&nbsp;&nbsp;
263
+ <a href="#M000168">start</a>&nbsp;&nbsp;
264
+ <a href="#M000157">status</a>&nbsp;&nbsp;
265
+ <a href="#M000181">stderr4</a>&nbsp;&nbsp;
266
+ <a href="#M000179">stdin4</a>&nbsp;&nbsp;
267
+ <a href="#M000180">stdout4</a>&nbsp;&nbsp;
268
+ <a href="#M000170">stop</a>&nbsp;&nbsp;
269
+ <a href="#M000154">submit</a>&nbsp;&nbsp;
270
+ <a href="#M000183">tail</a>&nbsp;&nbsp;
271
+ <a href="#M000182">touch</a>&nbsp;&nbsp;
272
+ <a href="#M000159">update</a>&nbsp;&nbsp;
273
+ </div>
274
+ </div>
275
+
276
+ <div id="constants-list">
277
+ <h2 class="section-bar">Constants</h2>
278
+
279
+ <div class="name-list">
280
+ <table summary="Constants">
281
+ <tr class="top-aligned-row context-row">
282
+ <td class="context-item-name">OPTSPEC</td>
283
+ <td>=</td>
284
+ <td class="context-item-value">#--{{{ [ [ '--priority=priority', '-p', 'modes <submit, resubmit> : set the job(s) priority - lowest(0) .. highest(n) - (default 0)'</td>
285
+ </tr>
286
+ <tr class="top-aligned-row context-row">
287
+ <td>&nbsp;</td>
288
+ <td colspan="2" class="context-item-desc">
289
+ an enumeration of option specifications used to parse command line
290
+
291
+ </td>
292
+ </tr>
293
+ <tr class="top-aligned-row context-row">
294
+ <td class="context-item-name">CONFIG_DEFAULT_PATH</td>
295
+ <td>=</td>
296
+ <td class="context-item-value">'rq.conf'</td>
297
+ </tr>
298
+ <tr class="top-aligned-row context-row">
299
+ <td>&nbsp;</td>
300
+ <td colspan="2" class="context-item-desc">
301
+ the default config file searched for has this basename
302
+
303
+ </td>
304
+ </tr>
305
+ <tr class="top-aligned-row context-row">
306
+ <td class="context-item-name">CONFIG_SEARCH_PATH</td>
307
+ <td>=</td>
308
+ <td class="context-item-value">%w( . ~ /dmsp/reference/etc /usr/local/etc /usr/etc /etc )</td>
309
+ </tr>
310
+ <tr class="top-aligned-row context-row">
311
+ <td>&nbsp;</td>
312
+ <td colspan="2" class="context-item-desc">
313
+ config files are searched for using this list of locations
314
+
315
+ </td>
316
+ </tr>
317
+ <tr class="top-aligned-row context-row">
318
+ <td class="context-item-name">Q</td>
319
+ <td>=</td>
320
+ <td class="context-item-value">ENV['RQ_Q'] || ENV['RQ_QUEUE']</td>
321
+ </tr>
322
+ <tr class="top-aligned-row context-row">
323
+ <td>&nbsp;</td>
324
+ <td colspan="2" class="context-item-desc">
325
+ the queue can be specified in the environment
326
+
327
+ </td>
328
+ </tr>
329
+ </table>
330
+ </div>
331
+ </div>
332
+
333
+ <div id="aliases-list">
334
+ <h2 class="section-bar">External Aliases</h2>
335
+
336
+ <div class="name-list">
337
+ 'stdin' -> 'stdin?' <br />
338
+ 'job_stdin' -> 'job_stdin?' <br />
339
+ 'quiet' -> 'quiet?' <br />
340
+ </div>
341
+ </div>
342
+
343
+
344
+ <div id="attribute-list">
345
+ <h2 class="section-bar">Attributes</h2>
346
+
347
+ <div class="name-list">
348
+ <table>
349
+ <tr class="top-aligned-row context-row">
350
+ <td class="context-item-name">argv</td>
351
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
352
+ <td class="context-item-desc"></td>
353
+ </tr>
354
+ <tr class="top-aligned-row context-row">
355
+ <td class="context-item-name">cmd</td>
356
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
357
+ <td class="context-item-desc"></td>
358
+ </tr>
359
+ <tr class="top-aligned-row context-row">
360
+ <td class="context-item-name">daemon</td>
361
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
362
+ <td class="context-item-desc"></td>
363
+ </tr>
364
+ <tr class="top-aligned-row context-row">
365
+ <td class="context-item-name">dot_rq_dir</td>
366
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
367
+ <td class="context-item-desc"></td>
368
+ </tr>
369
+ <tr class="top-aligned-row context-row">
370
+ <td class="context-item-name">env</td>
371
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
372
+ <td class="context-item-desc"></td>
373
+ </tr>
374
+ <tr class="top-aligned-row context-row">
375
+ <td class="context-item-name">fields</td>
376
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
377
+ <td class="context-item-desc"></td>
378
+ </tr>
379
+ <tr class="top-aligned-row context-row">
380
+ <td class="context-item-name">job_stdin</td>
381
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
382
+ <td class="context-item-desc"></td>
383
+ </tr>
384
+ <tr class="top-aligned-row context-row">
385
+ <td class="context-item-name">logger</td>
386
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
387
+ <td class="context-item-desc"></td>
388
+ </tr>
389
+ <tr class="top-aligned-row context-row">
390
+ <td class="context-item-name">mode</td>
391
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
392
+ <td class="context-item-desc"></td>
393
+ </tr>
394
+ <tr class="top-aligned-row context-row">
395
+ <td class="context-item-name">options</td>
396
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
397
+ <td class="context-item-desc"></td>
398
+ </tr>
399
+ <tr class="top-aligned-row context-row">
400
+ <td class="context-item-name">q</td>
401
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
402
+ <td class="context-item-desc"></td>
403
+ </tr>
404
+ <tr class="top-aligned-row context-row">
405
+ <td class="context-item-name">qpath</td>
406
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
407
+ <td class="context-item-desc"></td>
408
+ </tr>
409
+ <tr class="top-aligned-row context-row">
410
+ <td class="context-item-name">quiet</td>
411
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
412
+ <td class="context-item-desc"></td>
413
+ </tr>
414
+ <tr class="top-aligned-row context-row">
415
+ <td class="context-item-name">stdin</td>
416
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
417
+ <td class="context-item-desc"></td>
418
+ </tr>
419
+ </table>
420
+ </div>
421
+ </div>
422
+
423
+
424
+ </div>
425
+
426
+
427
+
428
+ <!-- if includes -->
429
+ <div id="includes">
430
+ <h2 class="section-bar">Included Modules</h2>
431
+
432
+ <div id="includes-list">
433
+ <span class="include-name">Util</span>
434
+ <span class="include-name">Logging</span>
435
+ <span class="include-name">Usage</span>
436
+ </div>
437
+ </div>
438
+
439
+
440
+ <!-- if method_list -->
441
+ <div id="methods">
442
+ <h2 class="section-bar">Public Class methods</h2>
443
+
444
+ <div id="method-M000149" class="method-detail">
445
+ <a name="M000149"></a>
446
+
447
+ <div class="method-heading">
448
+ <a href="#M000149" class="method-signature">
449
+ <span class="method-name">new</span><span class="method-args">argv = ARGV, env = ENV</span>
450
+ </a>
451
+ </div>
452
+
453
+ <div class="method-description">
454
+ <p>
455
+ given a command line and environment run the rq program
456
+ </p>
457
+ <p><a class="source-toggle" href="#"
458
+ onclick="toggleCode('M000149-source');return false;">[Source]</a></p>
459
+ <div class="method-source-code" id="M000149-source">
460
+ <pre>
461
+ <span class="ruby-comment cmt"># File bin/rq.rb, line 204</span>
462
+ 204: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> <span class="ruby-identifier">argv</span> = <span class="ruby-constant">ARGV</span>, <span class="ruby-identifier">env</span> = <span class="ruby-constant">ENV</span>
463
+ 205: <span class="ruby-comment cmt">#--{{{</span>
464
+ 206: <span class="ruby-keyword kw">begin</span>
465
+ 207: <span class="ruby-ivar">@logger</span> = <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-identifier">new</span> <span class="ruby-constant">STDERR</span>
466
+ 208: <span class="ruby-ivar">@argv</span> = <span class="ruby-constant">Util</span><span class="ruby-operator">::</span><span class="ruby-identifier">mcp</span>(<span class="ruby-identifier">argv</span>.<span class="ruby-identifier">to_a</span>)
467
+ 209: <span class="ruby-ivar">@env</span> = <span class="ruby-constant">Util</span><span class="ruby-operator">::</span><span class="ruby-identifier">mcp</span>(<span class="ruby-identifier">env</span>.<span class="ruby-identifier">to_hash</span>)
468
+ 210: <span class="ruby-ivar">@cmd</span> = ([<span class="ruby-constant">File</span><span class="ruby-operator">::</span><span class="ruby-identifier">expand_path</span>(<span class="ruby-identifier">$0</span>)] <span class="ruby-operator">+</span> <span class="ruby-constant">ARGV</span>).<span class="ruby-identifier">join</span>(<span class="ruby-value str">' '</span>)
469
+ 211: <span class="ruby-ivar">@stdin</span> = <span class="ruby-identifier">parse_stdin</span>
470
+ 212:
471
+ 213: <span class="ruby-identifier">parse_options</span>
472
+ 214:
473
+ 215: <span class="ruby-keyword kw">if</span>(<span class="ruby-ivar">@options</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-value str">'name'</span>))
474
+ 216: <span class="ruby-identifier">$0</span> = ([<span class="ruby-ivar">@options</span>[<span class="ruby-value str">'name'</span>]] <span class="ruby-operator">+</span> <span class="ruby-constant">ARGV</span>).<span class="ruby-identifier">join</span>(<span class="ruby-value str">' '</span>)
475
+ 217: <span class="ruby-keyword kw">end</span>
476
+ 218:
477
+ 219: <span class="ruby-keyword kw">if</span>(<span class="ruby-ivar">@options</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-value str">'help'</span>) <span class="ruby-keyword kw">or</span> <span class="ruby-ivar">@argv</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-value str">'help'</span>))
478
+ 220: <span class="ruby-identifier">usage</span>(<span class="ruby-value str">'port'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-constant">STDOUT</span>, <span class="ruby-value str">'long'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">true</span>)
479
+ 221: <span class="ruby-identifier">exit</span> <span class="ruby-constant">EXIT_SUCCESS</span>
480
+ 222: <span class="ruby-keyword kw">end</span>
481
+ 223:
482
+ 224: <span class="ruby-keyword kw">if</span>(<span class="ruby-ivar">@options</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-value str">'template'</span>) <span class="ruby-keyword kw">or</span> (<span class="ruby-identifier">idx</span> = <span class="ruby-ivar">@argv</span>.<span class="ruby-identifier">index</span>(<span class="ruby-value str">'template'</span>)))
483
+ 225: <span class="ruby-identifier">gen_template</span>(<span class="ruby-ivar">@options</span>[<span class="ruby-value str">'template'</span>] <span class="ruby-operator">||</span> <span class="ruby-ivar">@argv</span>[<span class="ruby-identifier">idx</span> <span class="ruby-operator">+</span> <span class="ruby-value">1</span>])
484
+ 226: <span class="ruby-identifier">exit</span> <span class="ruby-constant">EXIT_SUCCESS</span>
485
+ 227: <span class="ruby-keyword kw">end</span>
486
+ 228:
487
+ 229: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@options</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-value str">'version'</span>)
488
+ 230: <span class="ruby-identifier">puts</span> <span class="ruby-constant">RQ</span><span class="ruby-operator">::</span><span class="ruby-constant">VERSION</span>
489
+ 231: <span class="ruby-identifier">exit</span> <span class="ruby-constant">EXIT_SUCCESS</span>
490
+ 232: <span class="ruby-keyword kw">end</span>
491
+ 233:
492
+ 234: <span class="ruby-keyword kw">if</span>(<span class="ruby-ivar">@options</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-value str">'stdin'</span>))
493
+ 235: <span class="ruby-ivar">@options</span>[<span class="ruby-value str">'stdin'</span>] <span class="ruby-operator">||=</span> <span class="ruby-value str">'-'</span>
494
+ 236: <span class="ruby-ivar">@job_stdin</span> = <span class="ruby-ivar">@options</span>[<span class="ruby-value str">'stdin'</span>]
495
+ 237: <span class="ruby-keyword kw">end</span>
496
+ 238:
497
+ 239: <span class="ruby-keyword kw">if</span>(<span class="ruby-ivar">@options</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-value str">'quiet'</span>))
498
+ 240: <span class="ruby-ivar">@quiet</span> = <span class="ruby-keyword kw">true</span>
499
+ 241: <span class="ruby-keyword kw">end</span>
500
+ 242:
501
+ 243: <span class="ruby-keyword kw">if</span>(<span class="ruby-ivar">@options</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-value str">'fields'</span>))
502
+ 244: <span class="ruby-ivar">@fields</span> = <span class="ruby-ivar">@options</span>[<span class="ruby-value str">'fields'</span>].<span class="ruby-identifier">split</span>(<span class="ruby-regexp re">%/,/</span>).<span class="ruby-identifier">map</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">strip</span>}
503
+ 245: <span class="ruby-ivar">@fields</span>.<span class="ruby-identifier">uniq!</span>
504
+ 246: <span class="ruby-keyword kw">end</span>
505
+ 247:
506
+ 248: <span class="ruby-identifier">parse_argv</span>
507
+ 249:
508
+ 250: <span class="ruby-identifier">setup_dot_rq_dir</span>
509
+ 251:
510
+ 252: <span class="ruby-identifier">status</span> = <span class="ruby-identifier">run</span>
511
+ 253:
512
+ 254: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">status</span>
513
+ 255: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">Integer</span>
514
+ 256: <span class="ruby-identifier">exit</span> <span class="ruby-identifier">status</span>
515
+ 257: <span class="ruby-keyword kw">else</span>
516
+ 258: <span class="ruby-identifier">exit</span>(<span class="ruby-identifier">status</span> <span class="ruby-value">? </span><span class="ruby-constant">EXIT_SUCCESS</span> <span class="ruby-operator">:</span> <span class="ruby-constant">EXIT_FAILURE</span>)
517
+ 259: <span class="ruby-keyword kw">end</span>
518
+ 260: <span class="ruby-keyword kw">rescue</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">e</span>
519
+ 261: <span class="ruby-keyword kw">unless</span> <span class="ruby-constant">SystemExit</span> <span class="ruby-operator">===</span> <span class="ruby-identifier">e</span>
520
+ 262: <span class="ruby-identifier">logerr</span> <span class="ruby-identifier">e</span>
521
+ 263: <span class="ruby-identifier">exit</span> <span class="ruby-constant">EXIT_FAILURE</span>
522
+ 264: <span class="ruby-keyword kw">else</span>
523
+ 265: <span class="ruby-identifier">exit</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">status</span>
524
+ 266: <span class="ruby-keyword kw">end</span>
525
+ 267: <span class="ruby-keyword kw">end</span>
526
+ 268: <span class="ruby-comment cmt">#--}}}</span>
527
+ 269: <span class="ruby-keyword kw">end</span>
528
+ </pre>
529
+ </div>
530
+ </div>
531
+ </div>
532
+
533
+ <h2 class="section-bar">Public Instance methods</h2>
534
+
535
+ <div id="method-M000165" class="method-detail">
536
+ <a name="M000165"></a>
537
+
538
+ <div class="method-heading">
539
+ <a href="#M000165" class="method-signature">
540
+ <span class="method-name">backup</span><span class="method-args">()</span>
541
+ </a>
542
+ </div>
543
+
544
+ <div class="method-description">
545
+ <p>
546
+ delegated to a <a href="Backer.html">Backer</a>
547
+ </p>
548
+ <p><a class="source-toggle" href="#"
549
+ onclick="toggleCode('M000165-source');return false;">[Source]</a></p>
550
+ <div class="method-source-code" id="M000165-source">
551
+ <pre>
552
+ <span class="ruby-comment cmt"># File bin/rq.rb, line 513</span>
553
+ 513: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">backup</span>
554
+ 514: <span class="ruby-comment cmt">#--{{{</span>
555
+ 515: <span class="ruby-identifier">init_logging</span>
556
+ 516: <span class="ruby-identifier">backer</span> = <span class="ruby-constant">Backer</span><span class="ruby-operator">::</span><span class="ruby-identifier">new</span> <span class="ruby-keyword kw">self</span>
557
+ 517: <span class="ruby-identifier">backer</span>.<span class="ruby-identifier">backup</span>
558
+ 518: <span class="ruby-comment cmt">#--}}}</span>
559
+ 519: <span class="ruby-keyword kw">end</span>
560
+ </pre>
561
+ </div>
562
+ </div>
563
+ </div>
564
+
565
+ <div id="method-M000186" class="method-detail">
566
+ <a name="M000186"></a>
567
+
568
+ <div class="method-heading">
569
+ <a href="#M000186" class="method-signature">
570
+ <span class="method-name">cat</span><span class="method-args">path</span>
571
+ </a>
572
+ </div>
573
+
574
+ <div class="method-description">
575
+ <p><a class="source-toggle" href="#"
576
+ onclick="toggleCode('M000186-source');return false;">[Source]</a></p>
577
+ <div class="method-source-code" id="M000186-source">
578
+ <pre>
579
+ <span class="ruby-comment cmt"># File bin/rq.rb, line 709</span>
580
+ 709: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cat</span> <span class="ruby-identifier">path</span>
581
+ 710: <span class="ruby-comment cmt">#--{{{</span>
582
+ 711: <span class="ruby-identifier">system</span>(<span class="ruby-node">&quot;cat #{ path } 2&gt;/dev/null&quot;</span>) <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">open</span>(<span class="ruby-identifier">path</span>){<span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">each</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">line</span><span class="ruby-operator">|</span> <span class="ruby-identifier">print</span> <span class="ruby-identifier">line</span>}}
583
+ 712: <span class="ruby-comment cmt">#--}}}</span>
584
+ 713: <span class="ruby-keyword kw">end</span>
585
+ </pre>
586
+ </div>
587
+ </div>
588
+ </div>
589
+
590
+ <div id="method-M000162" class="method-detail">
591
+ <a name="M000162"></a>
592
+
593
+ <div class="method-heading">
594
+ <a href="#M000162" class="method-signature">
595
+ <span class="method-name">configure</span><span class="method-args">()</span>
596
+ </a>
597
+ </div>
598
+
599
+ <div class="method-description">
600
+ <p>
601
+ delegated to a <a href="Configurator.html">Configurator</a>
602
+ </p>
603
+ <p><a class="source-toggle" href="#"
604
+ onclick="toggleCode('M000162-source');return false;">[Source]</a></p>
605
+ <div class="method-source-code" id="M000162-source">
606
+ <pre>
607
+ <span class="ruby-comment cmt"># File bin/rq.rb, line 489</span>
608
+ 489: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">configure</span>
609
+ 490: <span class="ruby-comment cmt">#--{{{</span>
610
+ 491: <span class="ruby-identifier">init_logging</span>
611
+ 492: <span class="ruby-identifier">configurator</span> = <span class="ruby-constant">Configurator</span><span class="ruby-operator">::</span><span class="ruby-identifier">new</span> <span class="ruby-keyword kw">self</span>
612
+ 493: <span class="ruby-identifier">configurator</span>.<span class="ruby-identifier">configure</span>
613
+ 494: <span class="ruby-comment cmt">#--}}}</span>
614
+ 495: <span class="ruby-keyword kw">end</span>
615
+ </pre>
616
+ </div>
617
+ </div>
618
+ </div>
619
+
620
+ <div id="method-M000153" class="method-detail">
621
+ <a name="M000153"></a>
622
+
623
+ <div class="method-heading">
624
+ <a href="#M000153" class="method-signature">
625
+ <span class="method-name">create</span><span class="method-args">()</span>
626
+ </a>
627
+ </div>
628
+
629
+ <div class="method-description">
630
+ <p>
631
+ delegated to a <a href="Creator.html">Creator</a>
632
+ </p>
633
+ <p><a class="source-toggle" href="#"
634
+ onclick="toggleCode('M000153-source');return false;">[Source]</a></p>
635
+ <div class="method-source-code" id="M000153-source">
636
+ <pre>
637
+ <span class="ruby-comment cmt"># File bin/rq.rb, line 415</span>
638
+ 415: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">create</span>
639
+ 416: <span class="ruby-comment cmt">#--{{{</span>
640
+ 417: <span class="ruby-identifier">init_logging</span>
641
+ 418: <span class="ruby-identifier">creator</span> = <span class="ruby-constant">Creator</span><span class="ruby-operator">::</span><span class="ruby-identifier">new</span> <span class="ruby-keyword kw">self</span>
642
+ 419: <span class="ruby-identifier">creator</span>.<span class="ruby-identifier">create</span>
643
+ 420: <span class="ruby-comment cmt">#--}}}</span>
644
+ 421: <span class="ruby-keyword kw">end</span>
645
+ </pre>
646
+ </div>
647
+ </div>
648
+ </div>
649
+
650
+ <div id="method-M000184" class="method-detail">
651
+ <a name="M000184"></a>
652
+
653
+ <div class="method-heading">
654
+ <a href="#M000184" class="method-signature">
655
+ <span class="method-name">cron</span><span class="method-args">()</span>
656
+ </a>
657
+ </div>
658
+
659
+ <div class="method-description">
660
+ <p>
661
+ add/delete crontab entry
662
+ </p>
663
+ <p><a class="source-toggle" href="#"
664
+ onclick="toggleCode('M000184-source');return false;">[Source]</a></p>
665
+ <div class="method-source-code" id="M000184-source">
666
+ <pre>
667
+ <span class="ruby-comment cmt"># File bin/rq.rb, line 689</span>
668
+ 689: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cron</span>
669
+ 690: <span class="ruby-comment cmt">#--{{{</span>
670
+ 691: <span class="ruby-identifier">init_logging</span>
671
+ 692: <span class="ruby-identifier">cron</span> = <span class="ruby-constant">Cron</span><span class="ruby-operator">::</span><span class="ruby-identifier">new</span> <span class="ruby-keyword kw">self</span>
672
+ 693: <span class="ruby-identifier">cron</span>.<span class="ruby-identifier">cron</span>
673
+ 694: <span class="ruby-comment cmt">#--}}}</span>
674
+ 695: <span class="ruby-keyword kw">end</span>
675
+ </pre>
676
+ </div>
677
+ </div>
678
+ </div>
679
+
680
+ <div id="method-M000158" class="method-detail">
681
+ <a name="M000158"></a>
682
+
683
+ <div class="method-heading">
684
+ <a href="#M000158" class="method-signature">
685
+ <span class="method-name">delete</span><span class="method-args">()</span>
686
+ </a>
687
+ </div>
688
+
689
+ <div class="method-description">
690
+ <p>
691
+ delegated to a <a href="Deleter.html">Deleter</a>
692
+ </p>
693
+ <p><a class="source-toggle" href="#"
694
+ onclick="toggleCode('M000158-source');return false;">[Source]</a></p>
695
+ <div class="method-source-code" id="M000158-source">
696
+ <pre>
697
+ <span class="ruby-comment cmt"># File bin/rq.rb, line 457</span>
698
+ 457: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete</span>
699
+ 458: <span class="ruby-comment cmt">#--{{{</span>
700
+ 459: <span class="ruby-identifier">init_logging</span>
701
+ 460: <span class="ruby-identifier">deleter</span> = <span class="ruby-constant">Deleter</span><span class="ruby-operator">::</span><span class="ruby-identifier">new</span> <span class="ruby-keyword kw">self</span>
702
+ 461: <span class="ruby-identifier">deleter</span>.<span class="ruby-identifier">delete</span>
703
+ 462: <span class="ruby-comment cmt">#--}}}</span>
704
+ 463: <span class="ruby-keyword kw">end</span>
705
+ </pre>
706
+ </div>
707
+ </div>
708
+ </div>
709
+
710
+ <div id="method-M000185" class="method-detail">
711
+ <a name="M000185"></a>
712
+
713
+ <div class="method-heading">
714
+ <a href="#M000185" class="method-signature">
715
+ <span class="method-name">dump_ios</span><span class="method-args">which, jids</span>
716
+ </a>
717
+ </div>
718
+
719
+ <div class="method-description">
720
+ <p><a class="source-toggle" href="#"
721
+ onclick="toggleCode('M000185-source');return false;">[Source]</a></p>
722
+ <div class="method-source-code" id="M000185-source">
723
+ <pre>
724
+ <span class="ruby-comment cmt"># File bin/rq.rb, line 697</span>
725
+ 697: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dump_ios</span> <span class="ruby-identifier">which</span>, <span class="ruby-identifier">jids</span>
726
+ 698: <span class="ruby-comment cmt">#--{{{</span>
727
+ 699: <span class="ruby-identifier">jids</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">jid</span><span class="ruby-operator">|</span>
728
+ 700: <span class="ruby-identifier">iopath</span> = <span class="ruby-identifier">send</span> <span class="ruby-node">&quot;#{ which }4&quot;</span>, <span class="ruby-identifier">jid</span>
729
+ 701: <span class="ruby-keyword kw">begin</span>
730
+ 702: <span class="ruby-identifier">cat</span> <span class="ruby-identifier">iopath</span>
731
+ 703: <span class="ruby-keyword kw">rescue</span>
732
+ 704: <span class="ruby-keyword kw">next</span>
733
+ 705: <span class="ruby-keyword kw">end</span>
734
+ 706: <span class="ruby-keyword kw">end</span>
735
+ 707: <span class="ruby-comment cmt">#--}}}</span>
736
+ 708: <span class="ruby-keyword kw">end</span>
737
+ </pre>
738
+ </div>
739
+ </div>
740
+ </div>
741
+
742
+ <div id="method-M000178" class="method-detail">
743
+ <a name="M000178"></a>
744
+
745
+ <div class="method-heading">
746
+ <a href="#M000178" class="method-signature">
747
+ <span class="method-name">dump_stderr</span><span class="method-args">()</span>
748
+ </a>
749
+ </div>
750
+
751
+ <div class="method-description">
752
+ <p>
753
+ dump stderr for jid
754
+ </p>
755
+ <p><a class="source-toggle" href="#"
756
+ onclick="toggleCode('M000178-source');return false;">[Source]</a></p>
757
+ <div class="method-source-code" id="M000178-source">
758
+ <pre>
759
+ <span class="ruby-comment cmt"># File bin/rq.rb, line 618</span>
760
+ 618: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dump_stderr</span>
761
+ 619: <span class="ruby-comment cmt">#--{{{</span>
762
+ 620: <span class="ruby-identifier">dump_ios</span> <span class="ruby-value str">'stderr'</span>, <span class="ruby-identifier">jids4</span>(<span class="ruby-ivar">@argv</span>)
763
+ 621: <span class="ruby-comment cmt">#--}}}</span>
764
+ 622: <span class="ruby-keyword kw">end</span>
765
+ </pre>
766
+ </div>
767
+ </div>
768
+ </div>
769
+
770
+ <div id="method-M000176" class="method-detail">
771
+ <a name="M000176"></a>
772
+
773
+ <div class="method-heading">
774
+ <a href="#M000176" class="method-signature">
775
+ <span class="method-name">dump_stdin</span><span class="method-args">()</span>
776
+ </a>
777
+ </div>
778
+
779
+ <div class="method-description">
780
+ <p>
781
+ dump stdin for jid
782
+ </p>
783
+ <p><a class="source-toggle" href="#"
784
+ onclick="toggleCode('M000176-source');return false;">[Source]</a></p>
785
+ <div class="method-source-code" id="M000176-source">
786
+ <pre>
787
+ <span class="ruby-comment cmt"># File bin/rq.rb, line 606</span>
788
+ 606: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dump_stdin</span>
789
+ 607: <span class="ruby-comment cmt">#--{{{</span>
790
+ 608: <span class="ruby-identifier">dump_ios</span> <span class="ruby-value str">'stdin'</span>, <span class="ruby-identifier">jids4</span>(<span class="ruby-ivar">@argv</span>)
791
+ 609: <span class="ruby-comment cmt">#--}}}</span>
792
+ 610: <span class="ruby-keyword kw">end</span>
793
+ </pre>
794
+ </div>
795
+ </div>
796
+ </div>
797
+
798
+ <div id="method-M000177" class="method-detail">
799
+ <a name="M000177"></a>
800
+
801
+ <div class="method-heading">
802
+ <a href="#M000177" class="method-signature">
803
+ <span class="method-name">dump_stdout</span><span class="method-args">()</span>
804
+ </a>
805
+ </div>
806
+
807
+ <div class="method-description">
808
+ <p>
809
+ dump stdout for jid
810
+ </p>
811
+ <p><a class="source-toggle" href="#"
812
+ onclick="toggleCode('M000177-source');return false;">[Source]</a></p>
813
+ <div class="method-source-code" id="M000177-source">
814
+ <pre>
815
+ <span class="ruby-comment cmt"># File bin/rq.rb, line 612</span>
816
+ 612: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dump_stdout</span>
817
+ 613: <span class="ruby-comment cmt">#--{{{</span>
818
+ 614: <span class="ruby-identifier">dump_ios</span> <span class="ruby-value str">'stdout'</span>, <span class="ruby-identifier">jids4</span>(<span class="ruby-ivar">@argv</span>)
819
+ 615: <span class="ruby-comment cmt">#--}}}</span>
820
+ 616: <span class="ruby-keyword kw">end</span>
821
+ </pre>
822
+ </div>
823
+ </div>
824
+ </div>
825
+
826
+ <div id="method-M000161" class="method-detail">
827
+ <a name="M000161"></a>
828
+
829
+ <div class="method-heading">
830
+ <a href="#M000161" class="method-signature">
831
+ <span class="method-name">execute</span><span class="method-args">()</span>
832
+ </a>
833
+ </div>
834
+
835
+ <div class="method-description">
836
+ <p>
837
+ delegated to a <a href="Executor.html">Executor</a>
838
+ </p>
839
+ <p><a class="source-toggle" href="#"
840
+ onclick="toggleCode('M000161-source');return false;">[Source]</a></p>
841
+ <div class="method-source-code" id="M000161-source">
842
+ <pre>
843
+ <span class="ruby-comment cmt"># File bin/rq.rb, line 481</span>
844
+ 481: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">execute</span>
845
+ 482: <span class="ruby-comment cmt">#--{{{</span>
846
+ 483: <span class="ruby-identifier">init_logging</span>
847
+ 484: <span class="ruby-identifier">executor</span> = <span class="ruby-constant">Executor</span><span class="ruby-operator">::</span><span class="ruby-identifier">new</span> <span class="ruby-keyword kw">self</span>
848
+ 485: <span class="ruby-identifier">executor</span>.<span class="ruby-identifier">execute</span>
849
+ 486: <span class="ruby-comment cmt">#--}}}</span>
850
+ 487: <span class="ruby-keyword kw">end</span>
851
+ </pre>
852
+ </div>
853
+ </div>
854
+ </div>
855
+
856
+ <div id="method-M000188" class="method-detail">
857
+ <a name="M000188"></a>
858
+
859
+ <div class="method-heading">
860
+ <a href="#M000188" class="method-signature">
861
+ <span class="method-name">exists</span><span class="method-args">()</span>
862
+ </a>
863
+ </div>
864
+
865
+ <div class="method-description">
866
+ <p><a class="source-toggle" href="#"
867
+ onclick="toggleCode('M000188-source');return false;">[Source]</a></p>
868
+ <div class="method-source-code" id="M000188-source">
869
+ <pre>
870
+ <span class="ruby-comment cmt"># File bin/rq.rb, line 729</span>
871
+ 729: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">exists</span>
872
+ 730: <span class="ruby-comment cmt">#--{{{</span>
873
+ 731: <span class="ruby-keyword kw">begin</span>
874
+ 732: <span class="ruby-identifier">signal_feeder</span> <span class="ruby-value">0</span>
875
+ 733: <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">Errno</span><span class="ruby-operator">::</span><span class="ruby-constant">ESRCH</span>
876
+ 734: <span class="ruby-keyword kw">false</span>
877
+ 735: <span class="ruby-keyword kw">end</span>
878
+ 736: <span class="ruby-comment cmt">#--}}}</span>
879
+ 737: <span class="ruby-keyword kw">end</span>
880
+ </pre>
881
+ </div>
882
+ </div>
883
+ </div>
884
+
885
+ <div id="method-M000167" class="method-detail">
886
+ <a name="M000167"></a>
887
+
888
+ <div class="method-heading">
889
+ <a href="#M000167" class="method-signature">
890
+ <span class="method-name">feed</span><span class="method-args">()</span>
891
+ </a>
892
+ </div>
893
+
894
+ <div class="method-description">
895
+ <p>
896
+ delegated to a <a href="Feeder.html">Feeder</a>
897
+ </p>
898
+ <p><a class="source-toggle" href="#"
899
+ onclick="toggleCode('M000167-source');return false;">[Source]</a></p>
900
+ <div class="method-source-code" id="M000167-source">
901
+ <pre>
902
+ <span class="ruby-comment cmt"># File bin/rq.rb, line 529</span>
903
+ 529: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">feed</span>
904
+ 530: <span class="ruby-comment cmt">#--{{{</span>
905
+ 531: <span class="ruby-identifier">feeder</span> = <span class="ruby-constant">Feeder</span><span class="ruby-operator">::</span><span class="ruby-identifier">new</span> <span class="ruby-keyword kw">self</span>
906
+ 532: <span class="ruby-identifier">feeder</span>.<span class="ruby-identifier">feed</span>
907
+ 533: <span class="ruby-comment cmt">#--}}}</span>
908
+ 534: <span class="ruby-keyword kw">end</span>
909
+ </pre>
910
+ </div>
911
+ </div>
912
+ </div>
913
+
914
+ <div id="method-M000172" class="method-detail">
915
+ <a name="M000172"></a>
916
+
917
+ <div class="method-heading">
918
+ <a href="#M000172" class="method-signature">
919
+ <span class="method-name">feeder</span><span class="method-args">()</span>
920
+ </a>
921
+ </div>
922
+
923
+ <div class="method-description">
924
+ <p>
925
+ is a feeder running?
926
+ </p>
927
+ <p><a class="source-toggle" href="#"
928
+ onclick="toggleCode('M000172-source');return false;">[Source]</a></p>
929
+ <div class="method-source-code" id="M000172-source">
930
+ <pre>
931
+ <span class="ruby-comment cmt"># File bin/rq.rb, line 572</span>
932
+ 572: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">feeder</span>
933
+ 573: <span class="ruby-comment cmt">#--{{{</span>
934
+ 574: <span class="ruby-identifier">arg</span> = <span class="ruby-ivar">@argv</span>.<span class="ruby-identifier">shift</span>
935
+ 575: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">arg</span>
936
+ 576: <span class="ruby-keyword kw">when</span> <span class="ruby-regexp re">/pid/</span>
937
+ 577: <span class="ruby-identifier">pid</span>
938
+ 578: <span class="ruby-keyword kw">else</span>
939
+ 579: <span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;---\nfeeder : #{ exists ? true : false }&quot;</span>
940
+ 580: <span class="ruby-keyword kw">end</span>
941
+ 581: <span class="ruby-comment cmt">#--}}}</span>
942
+ 582: <span class="ruby-keyword kw">end</span>
943
+ </pre>
944
+ </div>
945
+ </div>
946
+ </div>
947
+
948
+ <div id="method-M000194" class="method-detail">
949
+ <a name="M000194"></a>
950
+
951
+ <div class="method-heading">
952
+ <a href="#M000194" class="method-signature">
953
+ <span class="method-name">gen_template</span><span class="method-args">template</span>
954
+ </a>
955
+ </div>
956
+
957
+ <div class="method-description">
958
+ <p>
959
+ generate a template/sample config file which can then be edited
960
+ </p>
961
+ <p><a class="source-toggle" href="#"
962
+ onclick="toggleCode('M000194-source');return false;">[Source]</a></p>
963
+ <div class="method-source-code" id="M000194-source">
964
+ <pre>
965
+ <span class="ruby-comment cmt"># File bin/rq.rb, line 847</span>
966
+ 847: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">gen_template</span> <span class="ruby-identifier">template</span>
967
+ 848: <span class="ruby-comment cmt">#--{{{</span>
968
+ 849: <span class="ruby-constant">ConfigFile</span><span class="ruby-operator">::</span><span class="ruby-identifier">gen_template</span>(<span class="ruby-identifier">template</span>)
969
+ 850: <span class="ruby-keyword kw">self</span>
970
+ 851: <span class="ruby-comment cmt">#--}}}</span>
971
+ 852: <span class="ruby-keyword kw">end</span>
972
+ </pre>
973
+ </div>
974
+ </div>
975
+ </div>
976
+
977
+ <div id="method-M000193" class="method-detail">
978
+ <a name="M000193"></a>
979
+
980
+ <div class="method-heading">
981
+ <a href="#M000193" class="method-signature">
982
+ <span class="method-name">init_config</span><span class="method-args">()</span>
983
+ </a>
984
+ </div>
985
+
986
+ <div class="method-description">
987
+ <p>
988
+ initialize configuration file - not currenlty utilized
989
+ </p>
990
+ <p><a class="source-toggle" href="#"
991
+ onclick="toggleCode('M000193-source');return false;">[Source]</a></p>
992
+ <div class="method-source-code" id="M000193-source">
993
+ <pre>
994
+ <span class="ruby-comment cmt"># File bin/rq.rb, line 834</span>
995
+ 834: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">init_config</span>
996
+ 835: <span class="ruby-comment cmt">#--{{{</span>
997
+ 836: <span class="ruby-ivar">@config</span> =
998
+ 837: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@options</span>[<span class="ruby-value str">'config'</span>]
999
+ 838: <span class="ruby-constant">ConfigFile</span><span class="ruby-operator">::</span><span class="ruby-identifier">new</span>(<span class="ruby-ivar">@options</span>[<span class="ruby-value str">'config'</span>])
1000
+ 839: <span class="ruby-keyword kw">else</span>
1001
+ 840: <span class="ruby-constant">ConfigFile</span><span class="ruby-operator">::</span><span class="ruby-identifier">any</span> <span class="ruby-constant">CONFIG_DEFAULT_PATH</span>, <span class="ruby-constant">CONFIG_SEARCH_PATH</span>
1002
+ 841: <span class="ruby-keyword kw">end</span>
1003
+ 842: <span class="ruby-identifier">debug</span> { <span class="ruby-node">&quot;config.path &lt;#{ @config.path }&gt;&quot;</span> }
1004
+ 843: <span class="ruby-ivar">@config</span>
1005
+ 844: <span class="ruby-comment cmt">#--}}}</span>
1006
+ 845: <span class="ruby-keyword kw">end</span>
1007
+ </pre>
1008
+ </div>
1009
+ </div>
1010
+ </div>
1011
+
1012
+ <div id="method-M000192" class="method-detail">
1013
+ <a name="M000192"></a>
1014
+
1015
+ <div class="method-heading">
1016
+ <a href="#M000192" class="method-signature">
1017
+ <span class="method-name">init_logging</span><span class="method-args">()</span>
1018
+ </a>
1019
+ </div>
1020
+
1021
+ <div class="method-description">
1022
+ <p>
1023
+ initialize logging object - all classes then use this object
1024
+ </p>
1025
+ <p><a class="source-toggle" href="#"
1026
+ onclick="toggleCode('M000192-source');return false;">[Source]</a></p>
1027
+ <div class="method-source-code" id="M000192-source">
1028
+ <pre>
1029
+ <span class="ruby-comment cmt"># File bin/rq.rb, line 790</span>
1030
+ 790: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">init_logging</span>
1031
+ 791: <span class="ruby-comment cmt">#--{{{</span>
1032
+ 792: <span class="ruby-identifier">log</span>, <span class="ruby-identifier">log_age</span>, <span class="ruby-identifier">log_size</span>, <span class="ruby-identifier">verbosity</span> =
1033
+ 793: <span class="ruby-ivar">@options</span>.<span class="ruby-identifier">values_at</span> <span class="ruby-value str">'log'</span>, <span class="ruby-value str">'log_age'</span>, <span class="ruby-value str">'log_size'</span>, <span class="ruby-value str">'verbosity'</span>
1034
+ 794: <span class="ruby-identifier">log_age</span> = <span class="ruby-identifier">atoi</span> <span class="ruby-identifier">log_age</span> <span class="ruby-keyword kw">rescue</span> <span class="ruby-keyword kw">nil</span>
1035
+ 795: <span class="ruby-identifier">log_size</span> = <span class="ruby-identifier">atoi</span> <span class="ruby-identifier">log_size</span> <span class="ruby-keyword kw">rescue</span> <span class="ruby-keyword kw">nil</span>
1036
+ 796: <span class="ruby-identifier">$logger</span> = <span class="ruby-ivar">@logger</span> = <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-identifier">new</span>(<span class="ruby-identifier">log</span> <span class="ruby-operator">||</span> <span class="ruby-constant">STDERR</span>, <span class="ruby-identifier">log_age</span>, <span class="ruby-identifier">log_size</span>)
1037
+ 797: <span class="ruby-comment cmt">#</span>
1038
+ 798: <span class="ruby-comment cmt"># hack to fix Logger sync bug</span>
1039
+ 799: <span class="ruby-comment cmt">#</span>
1040
+ 800: <span class="ruby-ivar">@logger</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">instance_eval</span> <span class="ruby-keyword kw">do</span>
1041
+ 801: <span class="ruby-identifier">attr</span> <span class="ruby-identifier">:logdev</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@logger</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">:logdev</span>)
1042
+ 802: <span class="ruby-keyword kw">end</span>
1043
+ 803:
1044
+ 804: <span class="ruby-ivar">@logdev</span> = <span class="ruby-ivar">@logger</span>.<span class="ruby-identifier">logdev</span>.<span class="ruby-identifier">dev</span>
1045
+ 805: <span class="ruby-ivar">@logdev</span>.<span class="ruby-identifier">sync</span> = <span class="ruby-keyword kw">true</span>
1046
+ 806: <span class="ruby-identifier">level</span> = <span class="ruby-keyword kw">nil</span>
1047
+ 807: <span class="ruby-identifier">verbosity</span> <span class="ruby-operator">||=</span> <span class="ruby-value str">'info'</span>
1048
+ 808: <span class="ruby-identifier">verbosity</span> =
1049
+ 809: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">verbosity</span>
1050
+ 810: <span class="ruby-keyword kw">when</span> <span class="ruby-regexp re">/^\s*(?:4|d|debug)\s*$/i</span><span class="ruby-identifier">o</span>
1051
+ 811: <span class="ruby-identifier">level</span> = <span class="ruby-value str">'Logging::DEBUG'</span>
1052
+ 812: <span class="ruby-value">4</span>
1053
+ 813: <span class="ruby-keyword kw">when</span> <span class="ruby-regexp re">/^\s*(?:3|i|info)\s*$/i</span><span class="ruby-identifier">o</span>
1054
+ 814: <span class="ruby-identifier">level</span> = <span class="ruby-value str">'Logging::INFO'</span>
1055
+ 815: <span class="ruby-value">3</span>
1056
+ 816: <span class="ruby-keyword kw">when</span> <span class="ruby-regexp re">/^\s*(?:2|w|warn)\s*$/i</span><span class="ruby-identifier">o</span>
1057
+ 817: <span class="ruby-identifier">level</span> = <span class="ruby-value str">'Logging::WARN'</span>
1058
+ 818: <span class="ruby-value">2</span>
1059
+ 819: <span class="ruby-keyword kw">when</span> <span class="ruby-regexp re">/^\s*(?:1|e|error)\s*$/i</span><span class="ruby-identifier">o</span>
1060
+ 820: <span class="ruby-identifier">level</span> = <span class="ruby-value str">'Logging::ERROR'</span>
1061
+ 821: <span class="ruby-value">1</span>
1062
+ 822: <span class="ruby-keyword kw">when</span> <span class="ruby-regexp re">/^\s*(?:0|f|fatal)\s*$/i</span><span class="ruby-identifier">o</span>
1063
+ 823: <span class="ruby-identifier">level</span> = <span class="ruby-value str">'Logging::FATAL'</span>
1064
+ 824: <span class="ruby-value">0</span>
1065
+ 825: <span class="ruby-keyword kw">else</span>
1066
+ 826: <span class="ruby-identifier">abort</span> <span class="ruby-node">&quot;illegal verbosity setting &lt;#{ verbosity }&gt;&quot;</span>
1067
+ 827: <span class="ruby-keyword kw">end</span>
1068
+ 828: <span class="ruby-ivar">@logger</span>.<span class="ruby-identifier">level</span> = <span class="ruby-value">2</span> <span class="ruby-operator">-</span> ((<span class="ruby-identifier">verbosity</span> <span class="ruby-operator">%</span> <span class="ruby-value">5</span>) <span class="ruby-operator">-</span> <span class="ruby-value">2</span>)
1069
+ 829: <span class="ruby-comment cmt">#debug {&quot;logging level &lt;#{ level }&gt;&quot;}</span>
1070
+ 830: <span class="ruby-ivar">@logger</span>
1071
+ 831: <span class="ruby-comment cmt">#--}}}</span>
1072
+ 832: <span class="ruby-keyword kw">end</span>
1073
+ </pre>
1074
+ </div>
1075
+ </div>
1076
+ </div>
1077
+
1078
+ <div id="method-M000175" class="method-detail">
1079
+ <a name="M000175"></a>
1080
+
1081
+ <div class="method-heading">
1082
+ <a href="#M000175" class="method-signature">
1083
+ <span class="method-name">ioview</span><span class="method-args">()</span>
1084
+ </a>
1085
+ </div>
1086
+
1087
+ <div class="method-description">
1088
+ <p>
1089
+ spawn external process to view stdin/stdout/stderr of jids
1090
+ </p>
1091
+ <p><a class="source-toggle" href="#"
1092
+ onclick="toggleCode('M000175-source');return false;">[Source]</a></p>
1093
+ <div class="method-source-code" id="M000175-source">
1094
+ <pre>
1095
+ <span class="ruby-comment cmt"># File bin/rq.rb, line 598</span>
1096
+ 598: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ioview</span>
1097
+ 599: <span class="ruby-comment cmt">#--{{{</span>
1098
+ 600: <span class="ruby-identifier">init_logging</span>
1099
+ 601: <span class="ruby-identifier">ioviewer</span> = <span class="ruby-constant">IOViewer</span><span class="ruby-operator">::</span><span class="ruby-identifier">new</span> <span class="ruby-keyword kw">self</span>
1100
+ 602: <span class="ruby-identifier">ioviewer</span>.<span class="ruby-identifier">ioview</span>
1101
+ 603: <span class="ruby-comment cmt">#--}}}</span>
1102
+ 604: <span class="ruby-keyword kw">end</span>
1103
+ </pre>
1104
+ </div>
1105
+ </div>
1106
+ </div>
1107
+
1108
+ <div id="method-M000187" class="method-detail">
1109
+ <a name="M000187"></a>
1110
+
1111
+ <div class="method-heading">
1112
+ <a href="#M000187" class="method-signature">
1113
+ <span class="method-name">jids4</span><span class="method-args">(*list)</span>
1114
+ </a>
1115
+ </div>
1116
+
1117
+ <div class="method-description">
1118
+ <p><a class="source-toggle" href="#"
1119
+ onclick="toggleCode('M000187-source');return false;">[Source]</a></p>
1120
+ <div class="method-source-code" id="M000187-source">
1121
+ <pre>
1122
+ <span class="ruby-comment cmt"># File bin/rq.rb, line 714</span>
1123
+ 714: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">jids4</span> <span class="ruby-operator">*</span><span class="ruby-identifier">list</span>
1124
+ 715: <span class="ruby-comment cmt">#--{{{</span>
1125
+ 716: <span class="ruby-identifier">jids</span> = <span class="ruby-identifier">list</span>.<span class="ruby-identifier">flatten</span>.<span class="ruby-identifier">map</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">elem</span><span class="ruby-operator">|</span> <span class="ruby-constant">Integer</span> <span class="ruby-identifier">elem</span>}
1126
+ 717: <span class="ruby-comment cmt">#@stdin.each{|line| line.strip!; next if line.empty?; jids &lt;&lt; line} if @stdin</span>
1127
+ 718: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@stdin</span>
1128
+ 719: <span class="ruby-identifier">mainhelper</span> = <span class="ruby-constant">MainHelper</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">self</span>)
1129
+ 720: <span class="ruby-identifier">jobs</span> = []
1130
+ 721: <span class="ruby-identifier">mainhelper</span>.<span class="ruby-identifier">loadio</span> <span class="ruby-ivar">@stdin</span>, <span class="ruby-value str">'stdin'</span>, <span class="ruby-identifier">jobs</span>
1131
+ 722: <span class="ruby-identifier">jobs</span>.<span class="ruby-identifier">each</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">job</span><span class="ruby-operator">|</span> <span class="ruby-identifier">jids</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">job</span>[<span class="ruby-value str">'jid'</span>]}
1132
+ 723: <span class="ruby-identifier">jids</span>.<span class="ruby-identifier">map!</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">jid</span><span class="ruby-operator">|</span> <span class="ruby-constant">Integer</span>(<span class="ruby-identifier">jid</span>) <span class="ruby-keyword kw">rescue</span> <span class="ruby-identifier">abort</span>(<span class="ruby-node">&quot;bad jid &lt;#{ jid.inspect }&gt;&quot;</span>)}
1133
+ 724: <span class="ruby-keyword kw">end</span>
1134
+ 725: <span class="ruby-identifier">jids</span>
1135
+ 726: <span class="ruby-comment cmt">#--}}}</span>
1136
+ 727: <span class="ruby-keyword kw">end</span>
1137
+ </pre>
1138
+ </div>
1139
+ </div>
1140
+ </div>
1141
+
1142
+ <div id="method-M000156" class="method-detail">
1143
+ <a name="M000156"></a>
1144
+
1145
+ <div class="method-heading">
1146
+ <a href="#M000156" class="method-signature">
1147
+ <span class="method-name">list</span><span class="method-args">()</span>
1148
+ </a>
1149
+ </div>
1150
+
1151
+ <div class="method-description">
1152
+ <p>
1153
+ delegated to a <a href="Lister.html">Lister</a>
1154
+ </p>
1155
+ <p><a class="source-toggle" href="#"
1156
+ onclick="toggleCode('M000156-source');return false;">[Source]</a></p>
1157
+ <div class="method-source-code" id="M000156-source">
1158
+ <pre>
1159
+ <span class="ruby-comment cmt"># File bin/rq.rb, line 439</span>
1160
+ 439: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">list</span>
1161
+ 440: <span class="ruby-comment cmt">#--{{{</span>
1162
+ 441: <span class="ruby-identifier">init_logging</span>
1163
+ 442: <span class="ruby-ivar">@options</span>[<span class="ruby-value str">'snapshot'</span>] = <span class="ruby-keyword kw">true</span>
1164
+ 443: <span class="ruby-identifier">lister</span> = <span class="ruby-constant">Lister</span><span class="ruby-operator">::</span><span class="ruby-identifier">new</span> <span class="ruby-keyword kw">self</span>
1165
+ 444: <span class="ruby-identifier">lister</span>.<span class="ruby-identifier">list</span>
1166
+ 445: <span class="ruby-comment cmt">#--}}}</span>
1167
+ 446: <span class="ruby-keyword kw">end</span>
1168
+ </pre>
1169
+ </div>
1170
+ </div>
1171
+ </div>
1172
+
1173
+ <div id="method-M000164" class="method-detail">
1174
+ <a name="M000164"></a>
1175
+
1176
+ <div class="method-heading">
1177
+ <a href="#M000164" class="method-signature">
1178
+ <span class="method-name">lock</span><span class="method-args">()</span>
1179
+ </a>
1180
+ </div>
1181
+
1182
+ <div class="method-description">
1183
+ <p>
1184
+ delegated to a <a href="Locker.html">Locker</a>
1185
+ </p>
1186
+ <p><a class="source-toggle" href="#"
1187
+ onclick="toggleCode('M000164-source');return false;">[Source]</a></p>
1188
+ <div class="method-source-code" id="M000164-source">
1189
+ <pre>
1190
+ <span class="ruby-comment cmt"># File bin/rq.rb, line 505</span>
1191
+ 505: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">lock</span>
1192
+ 506: <span class="ruby-comment cmt">#--{{{</span>
1193
+ 507: <span class="ruby-identifier">init_logging</span>
1194
+ 508: <span class="ruby-identifier">locker</span> = <span class="ruby-constant">Locker</span><span class="ruby-operator">::</span><span class="ruby-identifier">new</span> <span class="ruby-keyword kw">self</span>
1195
+ 509: <span class="ruby-identifier">locker</span>.<span class="ruby-identifier">lock</span>
1196
+ 510: <span class="ruby-comment cmt">#--}}}</span>
1197
+ 511: <span class="ruby-keyword kw">end</span>
1198
+ </pre>
1199
+ </div>
1200
+ </div>
1201
+ </div>
1202
+
1203
+ <div id="method-M000150" class="method-detail">
1204
+ <a name="M000150"></a>
1205
+
1206
+ <div class="method-heading">
1207
+ <a href="#M000150" class="method-signature">
1208
+ <span class="method-name">parse_argv</span><span class="method-args">()</span>
1209
+ </a>
1210
+ </div>
1211
+
1212
+ <div class="method-description">
1213
+ <p>
1214
+ extract command lines args
1215
+ </p>
1216
+ <p><a class="source-toggle" href="#"
1217
+ onclick="toggleCode('M000150-source');return false;">[Source]</a></p>
1218
+ <div class="method-source-code" id="M000150-source">
1219
+ <pre>
1220
+ <span class="ruby-comment cmt"># File bin/rq.rb, line 271</span>
1221
+ 271: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parse_argv</span>
1222
+ 272: <span class="ruby-comment cmt">#--{{{</span>
1223
+ 273: <span class="ruby-ivar">@qpath</span> = <span class="ruby-constant">Q</span> <span class="ruby-operator">||</span> <span class="ruby-ivar">@argv</span>.<span class="ruby-identifier">shift</span>
1224
+ 274: <span class="ruby-ivar">@mode</span> = <span class="ruby-ivar">@argv</span>.<span class="ruby-identifier">shift</span>
1225
+ 275: <span class="ruby-comment cmt">#--}}}</span>
1226
+ 276: <span class="ruby-keyword kw">end</span>
1227
+ </pre>
1228
+ </div>
1229
+ </div>
1230
+ </div>
1231
+
1232
+ <div id="method-M000191" class="method-detail">
1233
+ <a name="M000191"></a>
1234
+
1235
+ <div class="method-heading">
1236
+ <a href="#M000191" class="method-signature">
1237
+ <span class="method-name">parse_options</span><span class="method-args">()</span>
1238
+ </a>
1239
+ </div>
1240
+
1241
+ <div class="method-description">
1242
+ <p>
1243
+ uses OPTSPEC to parse command line switches
1244
+ </p>
1245
+ <p><a class="source-toggle" href="#"
1246
+ onclick="toggleCode('M000191-source');return false;">[Source]</a></p>
1247
+ <div class="method-source-code" id="M000191-source">
1248
+ <pre>
1249
+ <span class="ruby-comment cmt"># File bin/rq.rb, line 769</span>
1250
+ 769: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parse_options</span>
1251
+ 770: <span class="ruby-comment cmt">#--{{{</span>
1252
+ 771: <span class="ruby-ivar">@op</span> = <span class="ruby-constant">OptionParser</span>.<span class="ruby-identifier">new</span>
1253
+ 772: <span class="ruby-ivar">@options</span> = {}
1254
+ 773: <span class="ruby-constant">OPTSPEC</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">spec</span><span class="ruby-operator">|</span>
1255
+ 774: <span class="ruby-identifier">k</span> = <span class="ruby-identifier">spec</span>.<span class="ruby-identifier">first</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">%/(?:--)|(?:=.*$)|(?:\s+)/o</span>,<span class="ruby-value str">''</span>)
1256
+ 775: <span class="ruby-ivar">@op</span>.<span class="ruby-identifier">def_option</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">spec</span>){<span class="ruby-operator">|</span><span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-identifier">v</span> = <span class="ruby-identifier">v</span>.<span class="ruby-identifier">to_s</span>; <span class="ruby-ivar">@options</span>[<span class="ruby-identifier">k</span>] = <span class="ruby-identifier">v</span>.<span class="ruby-identifier">empty?</span> <span class="ruby-value">? </span><span class="ruby-keyword kw">nil</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">v</span>}
1257
+ 776: <span class="ruby-comment cmt">#@op.def_option(*spec){|v| @options[k] = v}</span>
1258
+ 777: <span class="ruby-keyword kw">end</span>
1259
+ 778:
1260
+ 779: <span class="ruby-keyword kw">if</span>((<span class="ruby-identifier">env_opts</span> = (<span class="ruby-constant">ENV</span>[<span class="ruby-value str">'RQ_OPTS'</span>] <span class="ruby-operator">||</span> <span class="ruby-constant">ENV</span>[<span class="ruby-value str">'RQ_OPTIONS'</span>])))
1261
+ 780: <span class="ruby-identifier">require</span> <span class="ruby-value str">'shellwords'</span>
1262
+ 781: <span class="ruby-ivar">@op</span>.<span class="ruby-identifier">parse!</span> <span class="ruby-constant">Shellwords</span>.<span class="ruby-identifier">shellwords</span>(<span class="ruby-identifier">env_opts</span>)
1263
+ 782: <span class="ruby-keyword kw">end</span>
1264
+ 783:
1265
+ 784: <span class="ruby-ivar">@op</span>.<span class="ruby-identifier">parse!</span> <span class="ruby-ivar">@argv</span>
1266
+ 785:
1267
+ 786: <span class="ruby-ivar">@options</span>
1268
+ 787: <span class="ruby-comment cmt">#--}}}</span>
1269
+ 788: <span class="ruby-keyword kw">end</span>
1270
+ </pre>
1271
+ </div>
1272
+ </div>
1273
+ </div>
1274
+
1275
+ <div id="method-M000190" class="method-detail">
1276
+ <a name="M000190"></a>
1277
+
1278
+ <div class="method-heading">
1279
+ <a href="#M000190" class="method-signature">
1280
+ <span class="method-name">parse_stdin</span><span class="method-args">()</span>
1281
+ </a>
1282
+ </div>
1283
+
1284
+ <div class="method-description">
1285
+ <p>
1286
+ parses &#8217;-&#8217; from cmdline, but not if it&#8217;s after a
1287
+ &#8217;&#8212;&#8217;
1288
+ </p>
1289
+ <p><a class="source-toggle" href="#"
1290
+ onclick="toggleCode('M000190-source');return false;">[Source]</a></p>
1291
+ <div class="method-source-code" id="M000190-source">
1292
+ <pre>
1293
+ <span class="ruby-comment cmt"># File bin/rq.rb, line 752</span>
1294
+ 752: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parse_stdin</span>
1295
+ 753: <span class="ruby-comment cmt">#--{{{</span>
1296
+ 754: <span class="ruby-identifier">dash_dash</span>, <span class="ruby-identifier">dash</span> = <span class="ruby-node">%( -- - )</span>.<span class="ruby-identifier">map</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">d</span><span class="ruby-operator">|</span> <span class="ruby-ivar">@argv</span>.<span class="ruby-identifier">index</span> <span class="ruby-identifier">d</span>}
1297
+ 755: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">dash</span>
1298
+ 756: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">dash_dash</span>
1299
+ 757: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">dash</span> <span class="ruby-operator">&lt;</span> <span class="ruby-identifier">dash_dash</span>
1300
+ 758: <span class="ruby-ivar">@argv</span>.<span class="ruby-identifier">delete</span> <span class="ruby-value str">'-'</span>
1301
+ 759: <span class="ruby-constant">STDIN</span>
1302
+ 760: <span class="ruby-keyword kw">end</span>
1303
+ 761: <span class="ruby-keyword kw">else</span>
1304
+ 762: <span class="ruby-ivar">@argv</span>.<span class="ruby-identifier">delete</span> <span class="ruby-value str">'-'</span>
1305
+ 763: <span class="ruby-constant">STDIN</span>
1306
+ 764: <span class="ruby-keyword kw">end</span>
1307
+ 765: <span class="ruby-keyword kw">end</span>
1308
+ 766: <span class="ruby-comment cmt">#--}}}</span>
1309
+ 767: <span class="ruby-keyword kw">end</span>
1310
+ </pre>
1311
+ </div>
1312
+ </div>
1313
+ </div>
1314
+
1315
+ <div id="method-M000173" class="method-detail">
1316
+ <a name="M000173"></a>
1317
+
1318
+ <div class="method-heading">
1319
+ <a href="#M000173" class="method-signature">
1320
+ <span class="method-name">pid</span><span class="method-args">()</span>
1321
+ </a>
1322
+ </div>
1323
+
1324
+ <div class="method-description">
1325
+ <p>
1326
+ pid of any running feeder
1327
+ </p>
1328
+ <p><a class="source-toggle" href="#"
1329
+ onclick="toggleCode('M000173-source');return false;">[Source]</a></p>
1330
+ <div class="method-source-code" id="M000173-source">
1331
+ <pre>
1332
+ <span class="ruby-comment cmt"># File bin/rq.rb, line 584</span>
1333
+ 584: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pid</span>
1334
+ 585: <span class="ruby-comment cmt">#--{{{</span>
1335
+ 586: <span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;---\npid : #{ exists || '~' }&quot;</span>
1336
+ 587: <span class="ruby-comment cmt">#--}}}</span>
1337
+ 588: <span class="ruby-keyword kw">end</span>
1338
+ </pre>
1339
+ </div>
1340
+ </div>
1341
+ </div>
1342
+
1343
+ <div id="method-M000160" class="method-detail">
1344
+ <a name="M000160"></a>
1345
+
1346
+ <div class="method-heading">
1347
+ <a href="#M000160" class="method-signature">
1348
+ <span class="method-name">query</span><span class="method-args">()</span>
1349
+ </a>
1350
+ </div>
1351
+
1352
+ <div class="method-description">
1353
+ <p>
1354
+ delegated to a <a href="Querier.html">Querier</a>
1355
+ </p>
1356
+ <p><a class="source-toggle" href="#"
1357
+ onclick="toggleCode('M000160-source');return false;">[Source]</a></p>
1358
+ <div class="method-source-code" id="M000160-source">
1359
+ <pre>
1360
+ <span class="ruby-comment cmt"># File bin/rq.rb, line 473</span>
1361
+ 473: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">query</span>
1362
+ 474: <span class="ruby-comment cmt">#--{{{</span>
1363
+ 475: <span class="ruby-identifier">init_logging</span>
1364
+ 476: <span class="ruby-identifier">querier</span> = <span class="ruby-constant">Querier</span><span class="ruby-operator">::</span><span class="ruby-identifier">new</span> <span class="ruby-keyword kw">self</span>
1365
+ 477: <span class="ruby-identifier">querier</span>.<span class="ruby-identifier">query</span>
1366
+ 478: <span class="ruby-comment cmt">#--}}}</span>
1367
+ 479: <span class="ruby-keyword kw">end</span>
1368
+ </pre>
1369
+ </div>
1370
+ </div>
1371
+ </div>
1372
+
1373
+ <div id="method-M000174" class="method-detail">
1374
+ <a name="M000174"></a>
1375
+
1376
+ <div class="method-heading">
1377
+ <a href="#M000174" class="method-signature">
1378
+ <span class="method-name">recover</span><span class="method-args">()</span>
1379
+ </a>
1380
+ </div>
1381
+
1382
+ <div class="method-description">
1383
+ <p>
1384
+ attempt sqlite db recovery
1385
+ </p>
1386
+ <p><a class="source-toggle" href="#"
1387
+ onclick="toggleCode('M000174-source');return false;">[Source]</a></p>
1388
+ <div class="method-source-code" id="M000174-source">
1389
+ <pre>
1390
+ <span class="ruby-comment cmt"># File bin/rq.rb, line 590</span>
1391
+ 590: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recover</span>
1392
+ 591: <span class="ruby-comment cmt">#--{{{</span>
1393
+ 592: <span class="ruby-identifier">init_logging</span>
1394
+ 593: <span class="ruby-identifier">recoverer</span> = <span class="ruby-constant">Recoverer</span><span class="ruby-operator">::</span><span class="ruby-identifier">new</span> <span class="ruby-keyword kw">self</span>
1395
+ 594: <span class="ruby-identifier">recoverer</span>.<span class="ruby-identifier">recover</span>
1396
+ 595: <span class="ruby-comment cmt">#--}}}</span>
1397
+ 596: <span class="ruby-keyword kw">end</span>
1398
+ </pre>
1399
+ </div>
1400
+ </div>
1401
+ </div>
1402
+
1403
+ <div id="method-M000171" class="method-detail">
1404
+ <a name="M000171"></a>
1405
+
1406
+ <div class="method-heading">
1407
+ <a href="#M000171" class="method-signature">
1408
+ <span class="method-name">restart</span><span class="method-args">()</span>
1409
+ </a>
1410
+ </div>
1411
+
1412
+ <div class="method-description">
1413
+ <p>
1414
+ sighup based restart
1415
+ </p>
1416
+ <p><a class="source-toggle" href="#"
1417
+ onclick="toggleCode('M000171-source');return false;">[Source]</a></p>
1418
+ <div class="method-source-code" id="M000171-source">
1419
+ <pre>
1420
+ <span class="ruby-comment cmt"># File bin/rq.rb, line 564</span>
1421
+ 564: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">restart</span>
1422
+ 565: <span class="ruby-comment cmt">#--{{{</span>
1423
+ 566: <span class="ruby-identifier">pid</span> = (<span class="ruby-identifier">exists</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">signal_feeder</span>(<span class="ruby-value str">'HUP'</span>))
1424
+ 567: <span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;pid &lt;#{ pid }&gt; signaled to restart&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">pid</span>
1425
+ 568: <span class="ruby-identifier">exit</span>(<span class="ruby-constant">Integer</span> <span class="ruby-operator">===</span> <span class="ruby-identifier">pid</span> <span class="ruby-value">? </span><span class="ruby-value">0</span> <span class="ruby-operator">:</span> <span class="ruby-value">1</span>)
1426
+ 569: <span class="ruby-comment cmt">#--}}}</span>
1427
+ 570: <span class="ruby-keyword kw">end</span>
1428
+ </pre>
1429
+ </div>
1430
+ </div>
1431
+ </div>
1432
+
1433
+ <div id="method-M000155" class="method-detail">
1434
+ <a name="M000155"></a>
1435
+
1436
+ <div class="method-heading">
1437
+ <a href="#M000155" class="method-signature">
1438
+ <span class="method-name">resubmit</span><span class="method-args">()</span>
1439
+ </a>
1440
+ </div>
1441
+
1442
+ <div class="method-description">
1443
+ <p>
1444
+ delegated to a <a href="ReSubmitter.html">ReSubmitter</a>
1445
+ </p>
1446
+ <p><a class="source-toggle" href="#"
1447
+ onclick="toggleCode('M000155-source');return false;">[Source]</a></p>
1448
+ <div class="method-source-code" id="M000155-source">
1449
+ <pre>
1450
+ <span class="ruby-comment cmt"># File bin/rq.rb, line 431</span>
1451
+ 431: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">resubmit</span>
1452
+ 432: <span class="ruby-comment cmt">#--{{{</span>
1453
+ 433: <span class="ruby-identifier">init_logging</span>
1454
+ 434: <span class="ruby-identifier">resubmitter</span> = <span class="ruby-constant">ReSubmitter</span><span class="ruby-operator">::</span><span class="ruby-identifier">new</span> <span class="ruby-keyword kw">self</span>
1455
+ 435: <span class="ruby-identifier">resubmitter</span>.<span class="ruby-identifier">resubmit</span>
1456
+ 436: <span class="ruby-comment cmt">#--}}}</span>
1457
+ 437: <span class="ruby-keyword kw">end</span>
1458
+ </pre>
1459
+ </div>
1460
+ </div>
1461
+ </div>
1462
+
1463
+ <div id="method-M000166" class="method-detail">
1464
+ <a name="M000166"></a>
1465
+
1466
+ <div class="method-heading">
1467
+ <a href="#M000166" class="method-signature">
1468
+ <span class="method-name">rotate</span><span class="method-args">()</span>
1469
+ </a>
1470
+ </div>
1471
+
1472
+ <div class="method-description">
1473
+ <p>
1474
+ delegated to a <a href="Rotater.html">Rotater</a>
1475
+ </p>
1476
+ <p><a class="source-toggle" href="#"
1477
+ onclick="toggleCode('M000166-source');return false;">[Source]</a></p>
1478
+ <div class="method-source-code" id="M000166-source">
1479
+ <pre>
1480
+ <span class="ruby-comment cmt"># File bin/rq.rb, line 521</span>
1481
+ 521: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rotate</span>
1482
+ 522: <span class="ruby-comment cmt">#--{{{</span>
1483
+ 523: <span class="ruby-identifier">init_logging</span>
1484
+ 524: <span class="ruby-identifier">rotater</span> = <span class="ruby-constant">Rotater</span><span class="ruby-operator">::</span><span class="ruby-identifier">new</span> <span class="ruby-keyword kw">self</span>
1485
+ 525: <span class="ruby-identifier">rotater</span>.<span class="ruby-identifier">rotate</span>
1486
+ 526: <span class="ruby-comment cmt">#--}}}</span>
1487
+ 527: <span class="ruby-keyword kw">end</span>
1488
+ </pre>
1489
+ </div>
1490
+ </div>
1491
+ </div>
1492
+
1493
+ <div id="method-M000152" class="method-detail">
1494
+ <a name="M000152"></a>
1495
+
1496
+ <div class="method-heading">
1497
+ <a href="#M000152" class="method-signature">
1498
+ <span class="method-name">run</span><span class="method-args">()</span>
1499
+ </a>
1500
+ </div>
1501
+
1502
+ <div class="method-description">
1503
+ <p>
1504
+ select a <a href="MainHelper.html">MainHelper</a> based on mode and
1505
+ delegate to it
1506
+ </p>
1507
+ <p><a class="source-toggle" href="#"
1508
+ onclick="toggleCode('M000152-source');return false;">[Source]</a></p>
1509
+ <div class="method-source-code" id="M000152-source">
1510
+ <pre>
1511
+ <span class="ruby-comment cmt"># File bin/rq.rb, line 291</span>
1512
+ 291: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run</span>
1513
+ 292: <span class="ruby-comment cmt">#--{{{</span>
1514
+ 293: <span class="ruby-ivar">@qpath</span> = <span class="ruby-constant">Util</span><span class="ruby-operator">::</span><span class="ruby-identifier">realpath</span> <span class="ruby-ivar">@qpath</span>
1515
+ 294:
1516
+ 295: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@mode</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-keyword kw">or</span> <span class="ruby-ivar">@mode</span>.<span class="ruby-identifier">strip</span>.<span class="ruby-identifier">empty?</span>
1517
+ 296: <span class="ruby-identifier">usage</span> <span class="ruby-value str">'port'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-constant">STDERR</span>, <span class="ruby-value str">'long'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">false</span>
1518
+ 297: <span class="ruby-identifier">exit</span> <span class="ruby-constant">EXIT_FAILURE</span>
1519
+ 298: <span class="ruby-keyword kw">end</span>
1520
+ 299:
1521
+ 300: <span class="ruby-identifier">shortcuts</span> = {
1522
+ 301: <span class="ruby-value str">'c'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'create'</span>,
1523
+ 302: <span class="ruby-value str">'s'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'submit'</span>,
1524
+ 303: <span class="ruby-value str">'r'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'resubmit'</span>,
1525
+ 304: <span class="ruby-value str">'re'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'resubmit'</span>,
1526
+ 305: <span class="ruby-value str">'l'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'list'</span>,
1527
+ 306: <span class="ruby-value str">'ls'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'list'</span>,
1528
+ 307: <span class="ruby-value str">'t'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'status'</span>,
1529
+ 308: <span class="ruby-value str">'d'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'delete'</span>,
1530
+ 309: <span class="ruby-value str">'rm'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'delete'</span>,
1531
+ 310: <span class="ruby-value str">'u'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'update'</span>,
1532
+ 311: <span class="ruby-value str">'q'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'query'</span>,
1533
+ 312: <span class="ruby-value str">'e'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'execute'</span>,
1534
+ 313: <span class="ruby-value str">'C'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'configure'</span>,
1535
+ 314: <span class="ruby-value str">'S'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'snapshot'</span>,
1536
+ 315: <span class="ruby-value str">'L'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'lock'</span>,
1537
+ 316: <span class="ruby-value str">'B'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'backup'</span>,
1538
+ 317: <span class="ruby-value str">'R'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'rotate'</span>,
1539
+ 318: <span class="ruby-value str">'h'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'help'</span>,
1540
+ 319: <span class="ruby-value str">'H'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'help'</span>,
1541
+ 320: <span class="ruby-value str">'f'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'feed'</span>,
1542
+ 321: <span class="ruby-value str">'io'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'ioview'</span>,
1543
+ 322: <span class="ruby-value str">'0'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'stdin'</span>,
1544
+ 323: <span class="ruby-value str">'1'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'stdout'</span>,
1545
+ 324: <span class="ruby-value str">'2'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'stderr'</span>,
1546
+ 325: <span class="ruby-value str">'to'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'touch'</span>,
1547
+ 326: <span class="ruby-value str">'ta'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'tail'</span>,
1548
+ 327: <span class="ruby-value str">'cron'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'cron'</span>,
1549
+ 328: }
1550
+ 329:
1551
+ 330: <span class="ruby-keyword kw">if</span>((<span class="ruby-identifier">longmode</span> = <span class="ruby-identifier">shortcuts</span>[<span class="ruby-ivar">@mode</span>]))
1552
+ 331: <span class="ruby-ivar">@mode</span> = <span class="ruby-identifier">longmode</span>
1553
+ 332: <span class="ruby-keyword kw">end</span>
1554
+ 333:
1555
+ 334: <span class="ruby-keyword kw">begin</span>
1556
+ 335: <span class="ruby-keyword kw">case</span> <span class="ruby-ivar">@mode</span>
1557
+ 336: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'create'</span>
1558
+ 337: <span class="ruby-identifier">create</span>
1559
+ 338: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'submit'</span>
1560
+ 339: <span class="ruby-identifier">submit</span>
1561
+ 340: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'resubmit'</span>
1562
+ 341: <span class="ruby-identifier">resubmit</span>
1563
+ 342: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'list'</span>
1564
+ 343: <span class="ruby-identifier">list</span>
1565
+ 344: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'status'</span>
1566
+ 345: <span class="ruby-identifier">status</span>
1567
+ 346: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'delete'</span>
1568
+ 347: <span class="ruby-identifier">delete</span>
1569
+ 348: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'update'</span>
1570
+ 349: <span class="ruby-identifier">update</span>
1571
+ 350: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'query'</span>
1572
+ 351: <span class="ruby-identifier">query</span>
1573
+ 352: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'execute'</span>
1574
+ 353: <span class="ruby-identifier">execute</span>
1575
+ 354: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'configure'</span>
1576
+ 355: <span class="ruby-identifier">configure</span>
1577
+ 356: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'snapshot'</span>
1578
+ 357: <span class="ruby-identifier">snapshot</span>
1579
+ 358: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'lock'</span>
1580
+ 359: <span class="ruby-identifier">lock</span>
1581
+ 360: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'backup'</span>
1582
+ 361: <span class="ruby-identifier">backup</span>
1583
+ 362: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'rotate'</span>
1584
+ 363: <span class="ruby-identifier">rotate</span>
1585
+ 364: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'help'</span>
1586
+ 365: <span class="ruby-identifier">usage</span> <span class="ruby-value str">'port'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-constant">STDOUT</span>, <span class="ruby-value str">'long'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">true</span>
1587
+ 366: <span class="ruby-identifier">exit</span> <span class="ruby-constant">EXIT_SUCCESS</span>
1588
+ 367: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'feed'</span>
1589
+ 368: <span class="ruby-identifier">feed</span>
1590
+ 369: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'start'</span>
1591
+ 370: <span class="ruby-identifier">start</span>
1592
+ 371: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'shutdown'</span>
1593
+ 372: <span class="ruby-identifier">shutdown</span>
1594
+ 373: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'stop'</span>
1595
+ 374: <span class="ruby-identifier">stop</span>
1596
+ 375: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'restart'</span>
1597
+ 376: <span class="ruby-identifier">restart</span>
1598
+ 377: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'pid'</span>
1599
+ 378: <span class="ruby-identifier">pid</span>
1600
+ 379: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'feeder'</span>
1601
+ 380: <span class="ruby-identifier">feeder</span>
1602
+ 381: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'recover'</span>
1603
+ 382: <span class="ruby-identifier">recover</span>
1604
+ 383: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'ioview'</span>
1605
+ 384: <span class="ruby-identifier">ioview</span>
1606
+ 385: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'stdin'</span>
1607
+ 386: <span class="ruby-identifier">dump_stdin</span>
1608
+ 387: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'stdout'</span>
1609
+ 388: <span class="ruby-identifier">dump_stdout</span>
1610
+ 389: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'stderr'</span>
1611
+ 390: <span class="ruby-identifier">dump_stderr</span>
1612
+ 391: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'stdin4'</span>
1613
+ 392: <span class="ruby-identifier">stdin4</span>
1614
+ 393: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'stdout4'</span>
1615
+ 394: <span class="ruby-identifier">stdout4</span>
1616
+ 395: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'stderr4'</span>
1617
+ 396: <span class="ruby-identifier">stderr4</span>
1618
+ 397: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'touch'</span>
1619
+ 398: <span class="ruby-identifier">touch</span>
1620
+ 399: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'tail'</span>
1621
+ 400: <span class="ruby-identifier">tail</span>
1622
+ 401: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'cron'</span>
1623
+ 402: <span class="ruby-identifier">cron</span>
1624
+ 403: <span class="ruby-keyword kw">else</span>
1625
+ 404: <span class="ruby-identifier">raise</span> <span class="ruby-node">&quot;invalid mode &lt;#{ @mode }&gt;&quot;</span>
1626
+ 405: <span class="ruby-keyword kw">end</span>
1627
+ 406: <span class="ruby-keyword kw">self</span>
1628
+ 407: <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">Errno</span><span class="ruby-operator">::</span><span class="ruby-constant">EPIPE</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">e</span>
1629
+ 408: <span class="ruby-identifier">raise</span> <span class="ruby-keyword kw">if</span> <span class="ruby-constant">STDOUT</span>.<span class="ruby-identifier">tty?</span>
1630
+ 409: <span class="ruby-keyword kw">end</span>
1631
+ 410:
1632
+ 411: <span class="ruby-constant">EXIT_SUCCESS</span>
1633
+ 412: <span class="ruby-comment cmt">#--}}}</span>
1634
+ 413: <span class="ruby-keyword kw">end</span>
1635
+ </pre>
1636
+ </div>
1637
+ </div>
1638
+ </div>
1639
+
1640
+ <div id="method-M000151" class="method-detail">
1641
+ <a name="M000151"></a>
1642
+
1643
+ <div class="method-heading">
1644
+ <a href="#M000151" class="method-signature">
1645
+ <span class="method-name">setup_dot_rq_dir</span><span class="method-args">()</span>
1646
+ </a>
1647
+ </div>
1648
+
1649
+ <div class="method-description">
1650
+ <p>
1651
+ determine storage for logs/pidfiles
1652
+ </p>
1653
+ <p><a class="source-toggle" href="#"
1654
+ onclick="toggleCode('M000151-source');return false;">[Source]</a></p>
1655
+ <div class="method-source-code" id="M000151-source">
1656
+ <pre>
1657
+ <span class="ruby-comment cmt"># File bin/rq.rb, line 278</span>
1658
+ 278: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup_dot_rq_dir</span>
1659
+ 279: <span class="ruby-comment cmt">#--{{{</span>
1660
+ 280: <span class="ruby-keyword kw">if</span>(<span class="ruby-ivar">@options</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-value str">'dot_rq_dir'</span>))
1661
+ 281: <span class="ruby-ivar">@dot_rq_dir</span> = <span class="ruby-ivar">@options</span>[<span class="ruby-value str">'dot_rq_dir'</span>]
1662
+ 282: <span class="ruby-keyword kw">end</span>
1663
+ 283: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@dot_rq_dir</span>.<span class="ruby-identifier">nil?</span>
1664
+ 284: <span class="ruby-identifier">home</span> = <span class="ruby-constant">ENV</span>[<span class="ruby-value str">'HOME'</span>] <span class="ruby-operator">||</span> <span class="ruby-constant">File</span><span class="ruby-operator">::</span><span class="ruby-identifier">expand_path</span>(<span class="ruby-value str">'~'</span>) <span class="ruby-keyword kw">rescue</span> <span class="ruby-identifier">abort</span>(<span class="ruby-value str">&quot;ENV['HOME'] is unset!&quot;</span>)
1665
+ 285: <span class="ruby-ivar">@dot_rq_dir</span> = <span class="ruby-constant">File</span><span class="ruby-operator">::</span><span class="ruby-identifier">join</span> <span class="ruby-identifier">home</span>, <span class="ruby-value str">'.rq'</span>, <span class="ruby-ivar">@qpath</span>
1666
+ 286: <span class="ruby-keyword kw">end</span>
1667
+ 287: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">mkdir_p</span> <span class="ruby-ivar">@dot_rq_dir</span>
1668
+ 288: <span class="ruby-comment cmt">#--}}}</span>
1669
+ 289: <span class="ruby-keyword kw">end</span>
1670
+ </pre>
1671
+ </div>
1672
+ </div>
1673
+ </div>
1674
+
1675
+ <div id="method-M000169" class="method-detail">
1676
+ <a name="M000169"></a>
1677
+
1678
+ <div class="method-heading">
1679
+ <a href="#M000169" class="method-signature">
1680
+ <span class="method-name">shutdown</span><span class="method-args">()</span>
1681
+ </a>
1682
+ </div>
1683
+
1684
+ <div class="method-description">
1685
+ <p>
1686
+ clean stop
1687
+ </p>
1688
+ <p><a class="source-toggle" href="#"
1689
+ onclick="toggleCode('M000169-source');return false;">[Source]</a></p>
1690
+ <div class="method-source-code" id="M000169-source">
1691
+ <pre>
1692
+ <span class="ruby-comment cmt"># File bin/rq.rb, line 548</span>
1693
+ 548: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">shutdown</span>
1694
+ 549: <span class="ruby-comment cmt">#--{{{</span>
1695
+ 550: <span class="ruby-identifier">pid</span> = (<span class="ruby-identifier">exists</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">signal_feeder</span>(<span class="ruby-value str">'TERM'</span>))
1696
+ 551: <span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;pid &lt;#{ pid }&gt; signaled to stop a.s.a.p&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">pid</span>
1697
+ 552: <span class="ruby-identifier">exit</span>(<span class="ruby-constant">Integer</span> <span class="ruby-operator">===</span> <span class="ruby-identifier">pid</span> <span class="ruby-value">? </span><span class="ruby-value">0</span> <span class="ruby-operator">:</span> <span class="ruby-value">1</span>)
1698
+ 553: <span class="ruby-comment cmt">#--}}}</span>
1699
+ 554: <span class="ruby-keyword kw">end</span>
1700
+ </pre>
1701
+ </div>
1702
+ </div>
1703
+ </div>
1704
+
1705
+ <div id="method-M000189" class="method-detail">
1706
+ <a name="M000189"></a>
1707
+
1708
+ <div class="method-heading">
1709
+ <a href="#M000189" class="method-signature">
1710
+ <span class="method-name">signal_feeder</span><span class="method-args">sig</span>
1711
+ </a>
1712
+ </div>
1713
+
1714
+ <div class="method-description">
1715
+ <p><a class="source-toggle" href="#"
1716
+ onclick="toggleCode('M000189-source');return false;">[Source]</a></p>
1717
+ <div class="method-source-code" id="M000189-source">
1718
+ <pre>
1719
+ <span class="ruby-comment cmt"># File bin/rq.rb, line 738</span>
1720
+ 738: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">signal_feeder</span> <span class="ruby-identifier">sig</span>
1721
+ 739: <span class="ruby-comment cmt">#--{{{</span>
1722
+ 740: <span class="ruby-identifier">feeder</span> = <span class="ruby-constant">Feeder</span><span class="ruby-operator">::</span><span class="ruby-identifier">new</span> <span class="ruby-keyword kw">self</span>
1723
+ 741: <span class="ruby-identifier">pidfilepath</span> = <span class="ruby-identifier">feeder</span>.<span class="ruby-identifier">gen_pidfilepath</span>
1724
+ 742: <span class="ruby-identifier">pid</span> = <span class="ruby-constant">Integer</span>(<span class="ruby-constant">IO</span><span class="ruby-operator">::</span><span class="ruby-identifier">read</span>(<span class="ruby-identifier">pidfilepath</span>)) <span class="ruby-keyword kw">rescue</span> <span class="ruby-keyword kw">nil</span>
1725
+ 743: <span class="ruby-keyword kw">begin</span>
1726
+ 744: <span class="ruby-constant">Process</span><span class="ruby-operator">::</span><span class="ruby-identifier">kill</span>(<span class="ruby-identifier">sig</span>, <span class="ruby-identifier">pid</span>)
1727
+ 745: <span class="ruby-identifier">pid</span>
1728
+ 746: <span class="ruby-keyword kw">rescue</span>
1729
+ 747: <span class="ruby-keyword kw">nil</span>
1730
+ 748: <span class="ruby-keyword kw">end</span>
1731
+ 749: <span class="ruby-comment cmt">#--}}}</span>
1732
+ 750: <span class="ruby-keyword kw">end</span>
1733
+ </pre>
1734
+ </div>
1735
+ </div>
1736
+ </div>
1737
+
1738
+ <div id="method-M000163" class="method-detail">
1739
+ <a name="M000163"></a>
1740
+
1741
+ <div class="method-heading">
1742
+ <a href="#M000163" class="method-signature">
1743
+ <span class="method-name">snapshot</span><span class="method-args">()</span>
1744
+ </a>
1745
+ </div>
1746
+
1747
+ <div class="method-description">
1748
+ <p>
1749
+ delegated to a <a href="Snapshotter.html">Snapshotter</a>
1750
+ </p>
1751
+ <p><a class="source-toggle" href="#"
1752
+ onclick="toggleCode('M000163-source');return false;">[Source]</a></p>
1753
+ <div class="method-source-code" id="M000163-source">
1754
+ <pre>
1755
+ <span class="ruby-comment cmt"># File bin/rq.rb, line 497</span>
1756
+ 497: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">snapshot</span>
1757
+ 498: <span class="ruby-comment cmt">#--{{{</span>
1758
+ 499: <span class="ruby-identifier">init_logging</span>
1759
+ 500: <span class="ruby-identifier">snapshotter</span> = <span class="ruby-constant">Snapshotter</span><span class="ruby-operator">::</span><span class="ruby-identifier">new</span> <span class="ruby-keyword kw">self</span>
1760
+ 501: <span class="ruby-identifier">snapshotter</span>.<span class="ruby-identifier">snapshot</span>
1761
+ 502: <span class="ruby-comment cmt">#--}}}</span>
1762
+ 503: <span class="ruby-keyword kw">end</span>
1763
+ </pre>
1764
+ </div>
1765
+ </div>
1766
+ </div>
1767
+
1768
+ <div id="method-M000168" class="method-detail">
1769
+ <a name="M000168"></a>
1770
+
1771
+ <div class="method-heading">
1772
+ <a href="#M000168" class="method-signature">
1773
+ <span class="method-name">start</span><span class="method-args">()</span>
1774
+ </a>
1775
+ </div>
1776
+
1777
+ <div class="method-description">
1778
+ <p>
1779
+ quietly start a daemon process
1780
+ </p>
1781
+ <p><a class="source-toggle" href="#"
1782
+ onclick="toggleCode('M000168-source');return false;">[Source]</a></p>
1783
+ <div class="method-source-code" id="M000168-source">
1784
+ <pre>
1785
+ <span class="ruby-comment cmt"># File bin/rq.rb, line 536</span>
1786
+ 536: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">start</span>
1787
+ 537: <span class="ruby-comment cmt">#--{{{</span>
1788
+ 538: <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">exists</span>
1789
+ 539: <span class="ruby-ivar">@options</span>[<span class="ruby-value str">'daemon'</span>] = <span class="ruby-keyword kw">true</span>
1790
+ 540: <span class="ruby-ivar">@options</span>[<span class="ruby-value str">'quiet'</span>] = <span class="ruby-keyword kw">true</span>
1791
+ 541: <span class="ruby-ivar">@options</span>[<span class="ruby-value str">'log'</span>] <span class="ruby-operator">||=</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-ivar">@dot_rq_dir</span>, <span class="ruby-value str">'log'</span>)
1792
+ 542: <span class="ruby-identifier">feeder</span> = <span class="ruby-constant">Feeder</span><span class="ruby-operator">::</span><span class="ruby-identifier">new</span> <span class="ruby-keyword kw">self</span>
1793
+ 543: <span class="ruby-identifier">feeder</span>.<span class="ruby-identifier">feed</span>
1794
+ 544: <span class="ruby-keyword kw">end</span>
1795
+ 545: <span class="ruby-comment cmt">#--}}}</span>
1796
+ 546: <span class="ruby-keyword kw">end</span>
1797
+ </pre>
1798
+ </div>
1799
+ </div>
1800
+ </div>
1801
+
1802
+ <div id="method-M000157" class="method-detail">
1803
+ <a name="M000157"></a>
1804
+
1805
+ <div class="method-heading">
1806
+ <a href="#M000157" class="method-signature">
1807
+ <span class="method-name">status</span><span class="method-args">()</span>
1808
+ </a>
1809
+ </div>
1810
+
1811
+ <div class="method-description">
1812
+ <p>
1813
+ delegated to a <a href="StatusLister.html">StatusLister</a>
1814
+ </p>
1815
+ <p><a class="source-toggle" href="#"
1816
+ onclick="toggleCode('M000157-source');return false;">[Source]</a></p>
1817
+ <div class="method-source-code" id="M000157-source">
1818
+ <pre>
1819
+ <span class="ruby-comment cmt"># File bin/rq.rb, line 448</span>
1820
+ 448: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">status</span>
1821
+ 449: <span class="ruby-comment cmt">#--{{{</span>
1822
+ 450: <span class="ruby-identifier">init_logging</span>
1823
+ 451: <span class="ruby-ivar">@options</span>[<span class="ruby-value str">'snapshot'</span>] = <span class="ruby-keyword kw">true</span>
1824
+ 452: <span class="ruby-identifier">statuslister</span> = <span class="ruby-constant">StatusLister</span><span class="ruby-operator">::</span><span class="ruby-identifier">new</span> <span class="ruby-keyword kw">self</span>
1825
+ 453: <span class="ruby-identifier">statuslister</span>.<span class="ruby-identifier">statuslist</span>
1826
+ 454: <span class="ruby-comment cmt">#--}}}</span>
1827
+ 455: <span class="ruby-keyword kw">end</span>
1828
+ </pre>
1829
+ </div>
1830
+ </div>
1831
+ </div>
1832
+
1833
+ <div id="method-M000181" class="method-detail">
1834
+ <a name="M000181"></a>
1835
+
1836
+ <div class="method-heading">
1837
+ <a href="#M000181" class="method-signature">
1838
+ <span class="method-name">stderr4</span><span class="method-args">jids = nil</span>
1839
+ </a>
1840
+ </div>
1841
+
1842
+ <div class="method-description">
1843
+ <p>
1844
+ dump stderr path for jid
1845
+ </p>
1846
+ <p><a class="source-toggle" href="#"
1847
+ onclick="toggleCode('M000181-source');return false;">[Source]</a></p>
1848
+ <div class="method-source-code" id="M000181-source">
1849
+ <pre>
1850
+ <span class="ruby-comment cmt"># File bin/rq.rb, line 656</span>
1851
+ 656: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stderr4</span> <span class="ruby-identifier">jids</span> = <span class="ruby-keyword kw">nil</span>
1852
+ 657: <span class="ruby-comment cmt">#--{{{</span>
1853
+ 658: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">jids</span>
1854
+ 659: <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span> <span class="ruby-ivar">@qpath</span>, <span class="ruby-value str">'stderr'</span>, <span class="ruby-identifier">jids</span>.<span class="ruby-identifier">to_s</span>
1855
+ 660: <span class="ruby-keyword kw">else</span>
1856
+ 661: <span class="ruby-identifier">jids</span> = <span class="ruby-identifier">jids4</span> <span class="ruby-ivar">@argv</span>
1857
+ 662: <span class="ruby-comment cmt">#STDOUT &lt;&lt; &quot;---\n&quot;</span>
1858
+ 663: <span class="ruby-identifier">jids</span>.<span class="ruby-identifier">flatten</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">jid</span><span class="ruby-operator">|</span>
1859
+ 664: <span class="ruby-identifier">iopath</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span> <span class="ruby-ivar">@qpath</span>, <span class="ruby-value str">'stderr'</span>, <span class="ruby-identifier">jid</span>.<span class="ruby-identifier">to_s</span>
1860
+ 665: <span class="ruby-comment cmt">#STDOUT &lt;&lt; &quot; - &quot; &lt;&lt; iopath &lt;&lt; &quot;\n&quot;</span>
1861
+ 666: <span class="ruby-identifier">puts</span> <span class="ruby-identifier">iopath</span>
1862
+ 667: <span class="ruby-keyword kw">end</span>
1863
+ 668: <span class="ruby-keyword kw">end</span>
1864
+ 669: <span class="ruby-comment cmt">#--}}}</span>
1865
+ 670: <span class="ruby-keyword kw">end</span>
1866
+ </pre>
1867
+ </div>
1868
+ </div>
1869
+ </div>
1870
+
1871
+ <div id="method-M000179" class="method-detail">
1872
+ <a name="M000179"></a>
1873
+
1874
+ <div class="method-heading">
1875
+ <a href="#M000179" class="method-signature">
1876
+ <span class="method-name">stdin4</span><span class="method-args">jids = nil</span>
1877
+ </a>
1878
+ </div>
1879
+
1880
+ <div class="method-description">
1881
+ <p>
1882
+ dump stdin path for jid
1883
+ </p>
1884
+ <p><a class="source-toggle" href="#"
1885
+ onclick="toggleCode('M000179-source');return false;">[Source]</a></p>
1886
+ <div class="method-source-code" id="M000179-source">
1887
+ <pre>
1888
+ <span class="ruby-comment cmt"># File bin/rq.rb, line 624</span>
1889
+ 624: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stdin4</span> <span class="ruby-identifier">jids</span> = <span class="ruby-keyword kw">nil</span>
1890
+ 625: <span class="ruby-comment cmt">#--{{{</span>
1891
+ 626: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">jids</span>
1892
+ 627: <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span> <span class="ruby-ivar">@qpath</span>, <span class="ruby-value str">'stdin'</span>, <span class="ruby-identifier">jids</span>.<span class="ruby-identifier">to_s</span>
1893
+ 628: <span class="ruby-keyword kw">else</span>
1894
+ 629: <span class="ruby-identifier">jids</span> = <span class="ruby-identifier">jids4</span> <span class="ruby-ivar">@argv</span>
1895
+ 630: <span class="ruby-comment cmt">#STDOUT &lt;&lt; &quot;---\n&quot;</span>
1896
+ 631: <span class="ruby-identifier">jids</span>.<span class="ruby-identifier">flatten</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">jid</span><span class="ruby-operator">|</span>
1897
+ 632: <span class="ruby-identifier">iopath</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span> <span class="ruby-ivar">@qpath</span>, <span class="ruby-value str">'stdin'</span>, <span class="ruby-identifier">jid</span>.<span class="ruby-identifier">to_s</span>
1898
+ 633: <span class="ruby-comment cmt">#STDOUT &lt;&lt; &quot; - &quot; &lt;&lt; iopath &lt;&lt; &quot;\n&quot;</span>
1899
+ 634: <span class="ruby-identifier">puts</span> <span class="ruby-identifier">iopath</span>
1900
+ 635: <span class="ruby-keyword kw">end</span>
1901
+ 636: <span class="ruby-keyword kw">end</span>
1902
+ 637: <span class="ruby-comment cmt">#--}}}</span>
1903
+ 638: <span class="ruby-keyword kw">end</span>
1904
+ </pre>
1905
+ </div>
1906
+ </div>
1907
+ </div>
1908
+
1909
+ <div id="method-M000180" class="method-detail">
1910
+ <a name="M000180"></a>
1911
+
1912
+ <div class="method-heading">
1913
+ <a href="#M000180" class="method-signature">
1914
+ <span class="method-name">stdout4</span><span class="method-args">jids = nil</span>
1915
+ </a>
1916
+ </div>
1917
+
1918
+ <div class="method-description">
1919
+ <p>
1920
+ dump stdout path for jid
1921
+ </p>
1922
+ <p><a class="source-toggle" href="#"
1923
+ onclick="toggleCode('M000180-source');return false;">[Source]</a></p>
1924
+ <div class="method-source-code" id="M000180-source">
1925
+ <pre>
1926
+ <span class="ruby-comment cmt"># File bin/rq.rb, line 640</span>
1927
+ 640: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stdout4</span> <span class="ruby-identifier">jids</span> = <span class="ruby-keyword kw">nil</span>
1928
+ 641: <span class="ruby-comment cmt">#--{{{</span>
1929
+ 642: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">jids</span>
1930
+ 643: <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span> <span class="ruby-ivar">@qpath</span>, <span class="ruby-value str">'stdout'</span>, <span class="ruby-identifier">jids</span>.<span class="ruby-identifier">to_s</span>
1931
+ 644: <span class="ruby-keyword kw">else</span>
1932
+ 645: <span class="ruby-identifier">jids</span> = <span class="ruby-identifier">jids4</span> <span class="ruby-ivar">@argv</span>
1933
+ 646: <span class="ruby-comment cmt">#STDOUT &lt;&lt; &quot;---\n&quot;</span>
1934
+ 647: <span class="ruby-identifier">jids</span>.<span class="ruby-identifier">flatten</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">jid</span><span class="ruby-operator">|</span>
1935
+ 648: <span class="ruby-identifier">iopath</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span> <span class="ruby-ivar">@qpath</span>, <span class="ruby-value str">'stdout'</span>, <span class="ruby-identifier">jid</span>.<span class="ruby-identifier">to_s</span>
1936
+ 649: <span class="ruby-comment cmt">#STDOUT &lt;&lt; &quot; - &quot; &lt;&lt; iopath &lt;&lt; &quot;\n&quot;</span>
1937
+ 650: <span class="ruby-identifier">puts</span> <span class="ruby-identifier">iopath</span>
1938
+ 651: <span class="ruby-keyword kw">end</span>
1939
+ 652: <span class="ruby-keyword kw">end</span>
1940
+ 653: <span class="ruby-comment cmt">#--}}}</span>
1941
+ 654: <span class="ruby-keyword kw">end</span>
1942
+ </pre>
1943
+ </div>
1944
+ </div>
1945
+ </div>
1946
+
1947
+ <div id="method-M000170" class="method-detail">
1948
+ <a name="M000170"></a>
1949
+
1950
+ <div class="method-heading">
1951
+ <a href="#M000170" class="method-signature">
1952
+ <span class="method-name">stop</span><span class="method-args">()</span>
1953
+ </a>
1954
+ </div>
1955
+
1956
+ <div class="method-description">
1957
+ <p>
1958
+ hard stop
1959
+ </p>
1960
+ <p><a class="source-toggle" href="#"
1961
+ onclick="toggleCode('M000170-source');return false;">[Source]</a></p>
1962
+ <div class="method-source-code" id="M000170-source">
1963
+ <pre>
1964
+ <span class="ruby-comment cmt"># File bin/rq.rb, line 556</span>
1965
+ 556: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stop</span>
1966
+ 557: <span class="ruby-comment cmt">#--{{{</span>
1967
+ 558: <span class="ruby-identifier">pid</span> = (<span class="ruby-identifier">exists</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">signal_feeder</span>(<span class="ruby-value str">'KILL'</span>))
1968
+ 559: <span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;pid &lt;#{ pid }&gt; signaled to stop now&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">pid</span>
1969
+ 560: <span class="ruby-identifier">exit</span>(<span class="ruby-constant">Integer</span> <span class="ruby-operator">===</span> <span class="ruby-identifier">pid</span> <span class="ruby-value">? </span><span class="ruby-value">0</span> <span class="ruby-operator">:</span> <span class="ruby-value">1</span>)
1970
+ 561: <span class="ruby-comment cmt">#--}}}</span>
1971
+ 562: <span class="ruby-keyword kw">end</span>
1972
+ </pre>
1973
+ </div>
1974
+ </div>
1975
+ </div>
1976
+
1977
+ <div id="method-M000154" class="method-detail">
1978
+ <a name="M000154"></a>
1979
+
1980
+ <div class="method-heading">
1981
+ <a href="#M000154" class="method-signature">
1982
+ <span class="method-name">submit</span><span class="method-args">()</span>
1983
+ </a>
1984
+ </div>
1985
+
1986
+ <div class="method-description">
1987
+ <p>
1988
+ delegated to a <a href="Submitter.html">Submitter</a>
1989
+ </p>
1990
+ <p><a class="source-toggle" href="#"
1991
+ onclick="toggleCode('M000154-source');return false;">[Source]</a></p>
1992
+ <div class="method-source-code" id="M000154-source">
1993
+ <pre>
1994
+ <span class="ruby-comment cmt"># File bin/rq.rb, line 423</span>
1995
+ 423: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">submit</span>
1996
+ 424: <span class="ruby-comment cmt">#--{{{</span>
1997
+ 425: <span class="ruby-identifier">init_logging</span>
1998
+ 426: <span class="ruby-identifier">submitter</span> = <span class="ruby-constant">Submitter</span><span class="ruby-operator">::</span><span class="ruby-identifier">new</span> <span class="ruby-keyword kw">self</span>
1999
+ 427: <span class="ruby-identifier">submitter</span>.<span class="ruby-identifier">submit</span>
2000
+ 428: <span class="ruby-comment cmt">#--}}}</span>
2001
+ 429: <span class="ruby-keyword kw">end</span>
2002
+ </pre>
2003
+ </div>
2004
+ </div>
2005
+ </div>
2006
+
2007
+ <div id="method-M000183" class="method-detail">
2008
+ <a name="M000183"></a>
2009
+
2010
+ <div class="method-heading">
2011
+ <a href="#M000183" class="method-signature">
2012
+ <span class="method-name">tail</span><span class="method-args">()</span>
2013
+ </a>
2014
+ </div>
2015
+
2016
+ <div class="method-description">
2017
+ <p>
2018
+ spawn external process to tail stdin/stdout/stderr of jids
2019
+ </p>
2020
+ <p><a class="source-toggle" href="#"
2021
+ onclick="toggleCode('M000183-source');return false;">[Source]</a></p>
2022
+ <div class="method-source-code" id="M000183-source">
2023
+ <pre>
2024
+ <span class="ruby-comment cmt"># File bin/rq.rb, line 680</span>
2025
+ 680: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tail</span>
2026
+ 681: <span class="ruby-comment cmt">#--{{{</span>
2027
+ 682: <span class="ruby-ivar">@options</span>[<span class="ruby-value str">'editor'</span>] = <span class="ruby-value str">'tail -F'</span>
2028
+ 683: <span class="ruby-identifier">init_logging</span>
2029
+ 684: <span class="ruby-identifier">ioviewer</span> = <span class="ruby-constant">IOViewer</span><span class="ruby-operator">::</span><span class="ruby-identifier">new</span> <span class="ruby-keyword kw">self</span>
2030
+ 685: <span class="ruby-identifier">ioviewer</span>.<span class="ruby-identifier">ioview</span> <span class="ruby-keyword kw">rescue</span> <span class="ruby-keyword kw">nil</span>
2031
+ 686: <span class="ruby-comment cmt">#--}}}</span>
2032
+ 687: <span class="ruby-keyword kw">end</span>
2033
+ </pre>
2034
+ </div>
2035
+ </div>
2036
+ </div>
2037
+
2038
+ <div id="method-M000182" class="method-detail">
2039
+ <a name="M000182"></a>
2040
+
2041
+ <div class="method-heading">
2042
+ <a href="#M000182" class="method-signature">
2043
+ <span class="method-name">touch</span><span class="method-args">()</span>
2044
+ </a>
2045
+ </div>
2046
+
2047
+ <div class="method-description">
2048
+ <p>
2049
+ delegated to a <a href="Toucher.html">Toucher</a>
2050
+ </p>
2051
+ <p><a class="source-toggle" href="#"
2052
+ onclick="toggleCode('M000182-source');return false;">[Source]</a></p>
2053
+ <div class="method-source-code" id="M000182-source">
2054
+ <pre>
2055
+ <span class="ruby-comment cmt"># File bin/rq.rb, line 672</span>
2056
+ 672: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">touch</span>
2057
+ 673: <span class="ruby-comment cmt">#--{{{</span>
2058
+ 674: <span class="ruby-identifier">init_logging</span>
2059
+ 675: <span class="ruby-identifier">toucher</span> = <span class="ruby-constant">Toucher</span><span class="ruby-operator">::</span><span class="ruby-identifier">new</span> <span class="ruby-keyword kw">self</span>
2060
+ 676: <span class="ruby-identifier">toucher</span>.<span class="ruby-identifier">touch</span>
2061
+ 677: <span class="ruby-comment cmt">#--}}}</span>
2062
+ 678: <span class="ruby-keyword kw">end</span>
2063
+ </pre>
2064
+ </div>
2065
+ </div>
2066
+ </div>
2067
+
2068
+ <div id="method-M000159" class="method-detail">
2069
+ <a name="M000159"></a>
2070
+
2071
+ <div class="method-heading">
2072
+ <a href="#M000159" class="method-signature">
2073
+ <span class="method-name">update</span><span class="method-args">()</span>
2074
+ </a>
2075
+ </div>
2076
+
2077
+ <div class="method-description">
2078
+ <p>
2079
+ delegated to a <a href="Updater.html">Updater</a>
2080
+ </p>
2081
+ <p><a class="source-toggle" href="#"
2082
+ onclick="toggleCode('M000159-source');return false;">[Source]</a></p>
2083
+ <div class="method-source-code" id="M000159-source">
2084
+ <pre>
2085
+ <span class="ruby-comment cmt"># File bin/rq.rb, line 465</span>
2086
+ 465: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update</span>
2087
+ 466: <span class="ruby-comment cmt">#--{{{</span>
2088
+ 467: <span class="ruby-identifier">init_logging</span>
2089
+ 468: <span class="ruby-identifier">updater</span> = <span class="ruby-constant">Updater</span><span class="ruby-operator">::</span><span class="ruby-identifier">new</span> <span class="ruby-keyword kw">self</span>
2090
+ 469: <span class="ruby-identifier">updater</span>.<span class="ruby-identifier">update</span>
2091
+ 470: <span class="ruby-comment cmt">#--}}}</span>
2092
+ 471: <span class="ruby-keyword kw">end</span>
2093
+ </pre>
2094
+ </div>
2095
+ </div>
2096
+ </div>
2097
+
2098
+
2099
+ </div>
2100
+
2101
+
2102
+ </div>
2103
+
2104
+
2105
+ <div id="validator-badges">
2106
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
2107
+ </div>
2108
+
2109
+ </body>
2110
+ </html>