pho 0.6 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. data/CHANGES +6 -0
  2. data/Rakefile +1 -1
  3. data/doc/rdoc/classes/Pho/CommandLine.html +67 -67
  4. data/doc/rdoc/classes/Pho/DatatypeProperty.html +12 -12
  5. data/doc/rdoc/classes/Pho/Enrichment/StoreEnricher.html +29 -29
  6. data/doc/rdoc/classes/Pho/Etags.html +36 -36
  7. data/doc/rdoc/classes/Pho/Facet/Results.html +19 -19
  8. data/doc/rdoc/classes/Pho/Facet/Term.html +6 -6
  9. data/doc/rdoc/classes/Pho/FieldPredicateMap.html +90 -90
  10. data/doc/rdoc/classes/Pho/FieldWeighting.html +12 -12
  11. data/doc/rdoc/classes/Pho/FileManagement/AbstractFileManager.html +63 -63
  12. data/doc/rdoc/classes/Pho/FileManagement/FileManager.html +24 -24
  13. data/doc/rdoc/classes/Pho/FileManagement/RDFManager.html +18 -18
  14. data/doc/rdoc/classes/Pho/Job.html +64 -64
  15. data/doc/rdoc/classes/Pho/Jobs.html +60 -60
  16. data/doc/rdoc/classes/Pho/QueryProfile.html +60 -60
  17. data/doc/rdoc/classes/Pho/RDF/Parser.html +24 -24
  18. data/doc/rdoc/classes/Pho/ResourceHash/Converter.html +36 -36
  19. data/doc/rdoc/classes/Pho/ResourceHash/SetAlgebra.html +12 -12
  20. data/doc/rdoc/classes/Pho/Snapshot.html +35 -35
  21. data/doc/rdoc/classes/Pho/Sparql/SparqlHelper.html +78 -42
  22. data/doc/rdoc/classes/Pho/Status.html +26 -26
  23. data/doc/rdoc/classes/Pho/Store.html +209 -209
  24. data/doc/rdoc/classes/Pho/StoreSparqlClient.html +12 -12
  25. data/doc/rdoc/classes/Pho/Update/Changeset.html +63 -63
  26. data/doc/rdoc/classes/Pho/Update/ChangesetBuilder.html +24 -24
  27. data/doc/rdoc/classes/Pho/Update/ChangesetHelper.html +159 -0
  28. data/doc/rdoc/classes/Pho/Update/Changesets.html +12 -12
  29. data/doc/rdoc/classes/Pho/Update/LiteralStatement.html +18 -18
  30. data/doc/rdoc/classes/Pho/Update/ResourceStatement.html +24 -24
  31. data/doc/rdoc/classes/Pho/Update/Statement.html +24 -24
  32. data/doc/rdoc/created.rid +1 -1
  33. data/doc/rdoc/files/CHANGES.html +13 -1
  34. data/doc/rdoc/files/lib/pho/command_line_rb.html +1 -1
  35. data/doc/rdoc/files/lib/pho/sparql_rb.html +1 -1
  36. data/doc/rdoc/fr_method_index.html +183 -182
  37. data/examples/linkeddata/proxy.rb +74 -0
  38. data/lib/pho/command_line.rb +1 -1
  39. data/lib/pho/sparql.rb +9 -0
  40. data/tests/tc_sparql_helper.rb +10 -1
  41. metadata +5 -2
@@ -98,9 +98,9 @@ Allows a collection to be mirrored into the platform
98
98
  <h3 class="section-bar">Methods</h3>
99
99
 
100
100
  <div class="name-list">
101
- <a href="#M000024">list</a>&nbsp;&nbsp;
102
- <a href="#M000023">new</a>&nbsp;&nbsp;
103
- <a href="#M000025">store_file</a>&nbsp;&nbsp;
101
+ <a href="#M000025">list</a>&nbsp;&nbsp;
102
+ <a href="#M000024">new</a>&nbsp;&nbsp;
103
+ <a href="#M000026">store_file</a>&nbsp;&nbsp;
104
104
  </div>
105
105
  </div>
106
106
 
@@ -135,19 +135,19 @@ Allows a collection to be mirrored into the platform
135
135
  <div id="methods">
136
136
  <h3 class="section-bar">Public Class methods</h3>
137
137
 
138
- <div id="method-M000023" class="method-detail">
139
- <a name="M000023"></a>
138
+ <div id="method-M000024" class="method-detail">
139
+ <a name="M000024"></a>
140
140
 
141
141
  <div class="method-heading">
142
- <a href="#M000023" class="method-signature">
142
+ <a href="#M000024" class="method-signature">
143
143
  <span class="method-name">new</span><span class="method-args">(store, dir, rdf_suffix=RDF, ok_suffix=OK, fail_suffix=FAIL, sleep=1)</span>
144
144
  </a>
145
145
  </div>
146
146
 
147
147
  <div class="method-description">
148
148
  <p><a class="source-toggle" href="#"
149
- onclick="toggleCode('M000023-source');return false;">[Source]</a></p>
150
- <div class="method-source-code" id="M000023-source">
149
+ onclick="toggleCode('M000024-source');return false;">[Source]</a></p>
150
+ <div class="method-source-code" id="M000024-source">
151
151
  <pre>
152
152
  <span class="ruby-comment cmt"># File lib/pho/rdf_collection.rb, line 13</span>
153
153
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">store</span>, <span class="ruby-identifier">dir</span>, <span class="ruby-identifier">rdf_suffix</span>=<span class="ruby-constant">RDF</span>, <span class="ruby-identifier">ok_suffix</span>=<span class="ruby-constant">OK</span>, <span class="ruby-identifier">fail_suffix</span>=<span class="ruby-constant">FAIL</span>, <span class="ruby-identifier">sleep</span>=<span class="ruby-value">1</span>)
@@ -161,11 +161,11 @@ Allows a collection to be mirrored into the platform
161
161
 
162
162
  <h3 class="section-bar">Public Instance methods</h3>
163
163
 
164
- <div id="method-M000024" class="method-detail">
165
- <a name="M000024"></a>
164
+ <div id="method-M000025" class="method-detail">
165
+ <a name="M000025"></a>
166
166
 
167
167
  <div class="method-heading">
168
- <a href="#M000024" class="method-signature">
168
+ <a href="#M000025" class="method-signature">
169
169
  <span class="method-name">list</span><span class="method-args">(recursive=false)</span>
170
170
  </a>
171
171
  </div>
@@ -175,8 +175,8 @@ Allows a collection to be mirrored into the platform
175
175
  List files being managed
176
176
  </p>
177
177
  <p><a class="source-toggle" href="#"
178
- onclick="toggleCode('M000024-source');return false;">[Source]</a></p>
179
- <div class="method-source-code" id="M000024-source">
178
+ onclick="toggleCode('M000025-source');return false;">[Source]</a></p>
179
+ <div class="method-source-code" id="M000025-source">
180
180
  <pre>
181
181
  <span class="ruby-comment cmt"># File lib/pho/rdf_collection.rb, line 19</span>
182
182
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">list</span>(<span class="ruby-identifier">recursive</span>=<span class="ruby-keyword kw">false</span>)
@@ -189,19 +189,19 @@ List files being managed
189
189
 
190
190
  <h3 class="section-bar">Protected Instance methods</h3>
191
191
 
192
- <div id="method-M000025" class="method-detail">
193
- <a name="M000025"></a>
192
+ <div id="method-M000026" class="method-detail">
193
+ <a name="M000026"></a>
194
194
 
195
195
  <div class="method-heading">
196
- <a href="#M000025" class="method-signature">
196
+ <a href="#M000026" class="method-signature">
197
197
  <span class="method-name">store_file</span><span class="method-args">(file, filename)</span>
198
198
  </a>
199
199
  </div>
200
200
 
201
201
  <div class="method-description">
202
202
  <p><a class="source-toggle" href="#"
203
- onclick="toggleCode('M000025-source');return false;">[Source]</a></p>
204
- <div class="method-source-code" id="M000025-source">
203
+ onclick="toggleCode('M000026-source');return false;">[Source]</a></p>
204
+ <div class="method-source-code" id="M000026-source">
205
205
  <pre>
206
206
  <span class="ruby-comment cmt"># File lib/pho/rdf_collection.rb, line 25</span>
207
207
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_file</span>(<span class="ruby-identifier">file</span>, <span class="ruby-identifier">filename</span>)
@@ -101,16 +101,16 @@ about a specific <a href="Job.html">Job</a> from a platform store
101
101
  <h3 class="section-bar">Methods</h3>
102
102
 
103
103
  <div class="name-list">
104
- <a href="#M000185">completed?</a>&nbsp;&nbsp;
105
- <a href="#M000180">new</a>&nbsp;&nbsp;
106
- <a href="#M000182">parse</a>&nbsp;&nbsp;
107
- <a href="#M000183">progress_updates</a>&nbsp;&nbsp;
108
- <a href="#M000181">read_from_store</a>&nbsp;&nbsp;
109
- <a href="#M000187">running?</a>&nbsp;&nbsp;
110
- <a href="#M000184">started?</a>&nbsp;&nbsp;
111
- <a href="#M000186">successful?</a>&nbsp;&nbsp;
112
- <a href="#M000189">with_each</a>&nbsp;&nbsp;
113
- <a href="#M000188">with_first</a>&nbsp;&nbsp;
104
+ <a href="#M000186">completed?</a>&nbsp;&nbsp;
105
+ <a href="#M000181">new</a>&nbsp;&nbsp;
106
+ <a href="#M000183">parse</a>&nbsp;&nbsp;
107
+ <a href="#M000184">progress_updates</a>&nbsp;&nbsp;
108
+ <a href="#M000182">read_from_store</a>&nbsp;&nbsp;
109
+ <a href="#M000188">running?</a>&nbsp;&nbsp;
110
+ <a href="#M000185">started?</a>&nbsp;&nbsp;
111
+ <a href="#M000187">successful?</a>&nbsp;&nbsp;
112
+ <a href="#M000190">with_each</a>&nbsp;&nbsp;
113
+ <a href="#M000189">with_first</a>&nbsp;&nbsp;
114
114
  </div>
115
115
  </div>
116
116
 
@@ -255,11 +255,11 @@ URI of the job
255
255
  <div id="methods">
256
256
  <h3 class="section-bar">Public Class methods</h3>
257
257
 
258
- <div id="method-M000180" class="method-detail">
259
- <a name="M000180"></a>
258
+ <div id="method-M000181" class="method-detail">
259
+ <a name="M000181"></a>
260
260
 
261
261
  <div class="method-heading">
262
- <a href="#M000180" class="method-signature">
262
+ <a href="#M000181" class="method-signature">
263
263
  <span class="method-name">new</span><span class="method-args">(uri, label, type, start_time, created=nil)</span>
264
264
  </a>
265
265
  </div>
@@ -286,8 +286,8 @@ Constructor. Used in the reading/parsing code
286
286
  </td></tr>
287
287
  </table>
288
288
  <p><a class="source-toggle" href="#"
289
- onclick="toggleCode('M000180-source');return false;">[Source]</a></p>
290
- <div class="method-source-code" id="M000180-source">
289
+ onclick="toggleCode('M000181-source');return false;">[Source]</a></p>
290
+ <div class="method-source-code" id="M000181-source">
291
291
  <pre>
292
292
  <span class="ruby-comment cmt"># File lib/pho/job.rb, line 214</span>
293
293
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">uri</span>, <span class="ruby-identifier">label</span>, <span class="ruby-identifier">type</span>, <span class="ruby-identifier">start_time</span>, <span class="ruby-identifier">created</span>=<span class="ruby-keyword kw">nil</span>)
@@ -303,11 +303,11 @@ Constructor. Used in the reading/parsing code
303
303
  </div>
304
304
  </div>
305
305
 
306
- <div id="method-M000182" class="method-detail">
307
- <a name="M000182"></a>
306
+ <div id="method-M000183" class="method-detail">
307
+ <a name="M000183"></a>
308
308
 
309
309
  <div class="method-heading">
310
- <a href="#M000182" class="method-signature">
310
+ <a href="#M000183" class="method-signature">
311
311
  <span class="method-name">parse</span><span class="method-args">(uri, xml)</span>
312
312
  </a>
313
313
  </div>
@@ -327,8 +327,8 @@ href="Job.html">Job</a> instance
327
327
  </td></tr>
328
328
  </table>
329
329
  <p><a class="source-toggle" href="#"
330
- onclick="toggleCode('M000182-source');return false;">[Source]</a></p>
331
- <div class="method-source-code" id="M000182-source">
330
+ onclick="toggleCode('M000183-source');return false;">[Source]</a></p>
331
+ <div class="method-source-code" id="M000183-source">
332
332
  <pre>
333
333
  <span class="ruby-comment cmt"># File lib/pho/job.rb, line 241</span>
334
334
  <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Job</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">uri</span>, <span class="ruby-identifier">xml</span>)
@@ -385,11 +385,11 @@ href="Job.html">Job</a> instance
385
385
  </div>
386
386
  </div>
387
387
 
388
- <div id="method-M000181" class="method-detail">
389
- <a name="M000181"></a>
388
+ <div id="method-M000182" class="method-detail">
389
+ <a name="M000182"></a>
390
390
 
391
391
  <div class="method-heading">
392
- <a href="#M000181" class="method-signature">
392
+ <a href="#M000182" class="method-signature">
393
393
  <span class="method-name">read_from_store</span><span class="method-args">(uri, store)</span>
394
394
  </a>
395
395
  </div>
@@ -407,8 +407,8 @@ Read a job from a store
407
407
  </td></tr>
408
408
  </table>
409
409
  <p><a class="source-toggle" href="#"
410
- onclick="toggleCode('M000181-source');return false;">[Source]</a></p>
411
- <div class="method-source-code" id="M000181-source">
410
+ onclick="toggleCode('M000182-source');return false;">[Source]</a></p>
411
+ <div class="method-source-code" id="M000182-source">
412
412
  <pre>
413
413
  <span class="ruby-comment cmt"># File lib/pho/job.rb, line 227</span>
414
414
  <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Job</span>.<span class="ruby-identifier">read_from_store</span>(<span class="ruby-identifier">uri</span>, <span class="ruby-identifier">store</span>)
@@ -426,19 +426,19 @@ Read a job from a store
426
426
 
427
427
  <h3 class="section-bar">Protected Class methods</h3>
428
428
 
429
- <div id="method-M000189" class="method-detail">
430
- <a name="M000189"></a>
429
+ <div id="method-M000190" class="method-detail">
430
+ <a name="M000190"></a>
431
431
 
432
432
  <div class="method-heading">
433
- <a href="#M000189" class="method-signature">
433
+ <a href="#M000190" class="method-signature">
434
434
  <span class="method-name">with_each</span><span class="method-args">(el, xpath) {|ref_el| ...}</span>
435
435
  </a>
436
436
  </div>
437
437
 
438
438
  <div class="method-description">
439
439
  <p><a class="source-toggle" href="#"
440
- onclick="toggleCode('M000189-source');return false;">[Source]</a></p>
441
- <div class="method-source-code" id="M000189-source">
440
+ onclick="toggleCode('M000190-source');return false;">[Source]</a></p>
441
+ <div class="method-source-code" id="M000190-source">
442
442
  <pre>
443
443
  <span class="ruby-comment cmt"># File lib/pho/job.rb, line 327</span>
444
444
  <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Job</span>.<span class="ruby-identifier">with_each</span>(<span class="ruby-identifier">el</span>, <span class="ruby-identifier">xpath</span>)
@@ -454,19 +454,19 @@ Read a job from a store
454
454
  </div>
455
455
  </div>
456
456
 
457
- <div id="method-M000188" class="method-detail">
458
- <a name="M000188"></a>
457
+ <div id="method-M000189" class="method-detail">
458
+ <a name="M000189"></a>
459
459
 
460
460
  <div class="method-heading">
461
- <a href="#M000188" class="method-signature">
461
+ <a href="#M000189" class="method-signature">
462
462
  <span class="method-name">with_first</span><span class="method-args">(el, xpath) {|found_el| ...}</span>
463
463
  </a>
464
464
  </div>
465
465
 
466
466
  <div class="method-description">
467
467
  <p><a class="source-toggle" href="#"
468
- onclick="toggleCode('M000188-source');return false;">[Source]</a></p>
469
- <div class="method-source-code" id="M000188-source">
468
+ onclick="toggleCode('M000189-source');return false;">[Source]</a></p>
469
+ <div class="method-source-code" id="M000189-source">
470
470
  <pre>
471
471
  <span class="ruby-comment cmt"># File lib/pho/job.rb, line 320</span>
472
472
  <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Job</span>.<span class="ruby-identifier">with_first</span>(<span class="ruby-identifier">el</span>, <span class="ruby-identifier">xpath</span>)
@@ -482,22 +482,22 @@ Read a job from a store
482
482
 
483
483
  <h3 class="section-bar">Public Instance methods</h3>
484
484
 
485
- <div id="method-M000185" class="method-detail">
486
- <a name="M000185"></a>
485
+ <div id="method-M000186" class="method-detail">
486
+ <a name="M000186"></a>
487
487
 
488
488
  <div class="method-heading">
489
- <a href="#M000185" class="method-signature">
489
+ <a href="#M000186" class="method-signature">
490
490
  <span class="method-name">completed?</span><span class="method-args">()</span>
491
491
  </a>
492
492
  </div>
493
493
 
494
494
  <div class="method-description">
495
495
  <p>
496
- Has the job <a href="Job.html#M000185">completed?</a>
496
+ Has the job <a href="Job.html#M000186">completed?</a>
497
497
  </p>
498
498
  <p><a class="source-toggle" href="#"
499
- onclick="toggleCode('M000185-source');return false;">[Source]</a></p>
500
- <div class="method-source-code" id="M000185-source">
499
+ onclick="toggleCode('M000186-source');return false;">[Source]</a></p>
500
+ <div class="method-source-code" id="M000186-source">
501
501
  <pre>
502
502
  <span class="ruby-comment cmt"># File lib/pho/job.rb, line 304</span>
503
503
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">completed?</span>
@@ -508,19 +508,19 @@ Has the job <a href="Job.html#M000185">completed?</a>
508
508
  </div>
509
509
  </div>
510
510
 
511
- <div id="method-M000183" class="method-detail">
512
- <a name="M000183"></a>
511
+ <div id="method-M000184" class="method-detail">
512
+ <a name="M000184"></a>
513
513
 
514
514
  <div class="method-heading">
515
- <a href="#M000183" class="method-signature">
515
+ <a href="#M000184" class="method-signature">
516
516
  <span class="method-name">progress_updates</span><span class="method-args">()</span>
517
517
  </a>
518
518
  </div>
519
519
 
520
520
  <div class="method-description">
521
521
  <p><a class="source-toggle" href="#"
522
- onclick="toggleCode('M000183-source');return false;">[Source]</a></p>
523
- <div class="method-source-code" id="M000183-source">
522
+ onclick="toggleCode('M000184-source');return false;">[Source]</a></p>
523
+ <div class="method-source-code" id="M000184-source">
524
524
  <pre>
525
525
  <span class="ruby-comment cmt"># File lib/pho/job.rb, line 291</span>
526
526
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">progress_updates</span>()
@@ -534,22 +534,22 @@ Has the job <a href="Job.html#M000185">completed?</a>
534
534
  </div>
535
535
  </div>
536
536
 
537
- <div id="method-M000187" class="method-detail">
538
- <a name="M000187"></a>
537
+ <div id="method-M000188" class="method-detail">
538
+ <a name="M000188"></a>
539
539
 
540
540
  <div class="method-heading">
541
- <a href="#M000187" class="method-signature">
541
+ <a href="#M000188" class="method-signature">
542
542
  <span class="method-name">running?</span><span class="method-args">()</span>
543
543
  </a>
544
544
  </div>
545
545
 
546
546
  <div class="method-description">
547
547
  <p>
548
- Is the job still <a href="Job.html#M000187">running?</a>
548
+ Is the job still <a href="Job.html#M000188">running?</a>
549
549
  </p>
550
550
  <p><a class="source-toggle" href="#"
551
- onclick="toggleCode('M000187-source');return false;">[Source]</a></p>
552
- <div class="method-source-code" id="M000187-source">
551
+ onclick="toggleCode('M000188-source');return false;">[Source]</a></p>
552
+ <div class="method-source-code" id="M000188-source">
553
553
  <pre>
554
554
  <span class="ruby-comment cmt"># File lib/pho/job.rb, line 314</span>
555
555
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">running?</span>
@@ -560,22 +560,22 @@ Is the job still <a href="Job.html#M000187">running?</a>
560
560
  </div>
561
561
  </div>
562
562
 
563
- <div id="method-M000184" class="method-detail">
564
- <a name="M000184"></a>
563
+ <div id="method-M000185" class="method-detail">
564
+ <a name="M000185"></a>
565
565
 
566
566
  <div class="method-heading">
567
- <a href="#M000184" class="method-signature">
567
+ <a href="#M000185" class="method-signature">
568
568
  <span class="method-name">started?</span><span class="method-args">()</span>
569
569
  </a>
570
570
  </div>
571
571
 
572
572
  <div class="method-description">
573
573
  <p>
574
- Has the job <a href="Job.html#M000184">started?</a>
574
+ Has the job <a href="Job.html#M000185">started?</a>
575
575
  </p>
576
576
  <p><a class="source-toggle" href="#"
577
- onclick="toggleCode('M000184-source');return false;">[Source]</a></p>
578
- <div class="method-source-code" id="M000184-source">
577
+ onclick="toggleCode('M000185-source');return false;">[Source]</a></p>
578
+ <div class="method-source-code" id="M000185-source">
579
579
  <pre>
580
580
  <span class="ruby-comment cmt"># File lib/pho/job.rb, line 299</span>
581
581
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">started?</span>
@@ -586,22 +586,22 @@ Has the job <a href="Job.html#M000184">started?</a>
586
586
  </div>
587
587
  </div>
588
588
 
589
- <div id="method-M000186" class="method-detail">
590
- <a name="M000186"></a>
589
+ <div id="method-M000187" class="method-detail">
590
+ <a name="M000187"></a>
591
591
 
592
592
  <div class="method-heading">
593
- <a href="#M000186" class="method-signature">
593
+ <a href="#M000187" class="method-signature">
594
594
  <span class="method-name">successful?</span><span class="method-args">()</span>
595
595
  </a>
596
596
  </div>
597
597
 
598
598
  <div class="method-description">
599
599
  <p>
600
- Was the job <a href="Job.html#M000186">successful?</a>
600
+ Was the job <a href="Job.html#M000187">successful?</a>
601
601
  </p>
602
602
  <p><a class="source-toggle" href="#"
603
- onclick="toggleCode('M000186-source');return false;">[Source]</a></p>
604
- <div class="method-source-code" id="M000186-source">
603
+ onclick="toggleCode('M000187-source');return false;">[Source]</a></p>
604
+ <div class="method-source-code" id="M000187-source">
605
605
  <pre>
606
606
  <span class="ruby-comment cmt"># File lib/pho/job.rb, line 309</span>
607
607
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">successful?</span>
@@ -92,16 +92,16 @@ TODO job deletion
92
92
  <h3 class="section-bar">Methods</h3>
93
93
 
94
94
  <div class="name-list">
95
- <a href="#M000134">build_job_request</a>&nbsp;&nbsp;
96
- <a href="#M000128">read_from_store</a>&nbsp;&nbsp;
97
- <a href="#M000133">submit_job</a>&nbsp;&nbsp;
98
- <a href="#M000130">submit_reindex</a>&nbsp;&nbsp;
99
- <a href="#M000129">submit_reset</a>&nbsp;&nbsp;
100
- <a href="#M000132">submit_restore</a>&nbsp;&nbsp;
101
- <a href="#M000131">submit_snapshot</a>&nbsp;&nbsp;
102
- <a href="#M000136">wait_for</a>&nbsp;&nbsp;
103
- <a href="#M000135">wait_for_submitted</a>&nbsp;&nbsp;
104
- <a href="#M000137">yield_job_update</a>&nbsp;&nbsp;
95
+ <a href="#M000135">build_job_request</a>&nbsp;&nbsp;
96
+ <a href="#M000129">read_from_store</a>&nbsp;&nbsp;
97
+ <a href="#M000134">submit_job</a>&nbsp;&nbsp;
98
+ <a href="#M000131">submit_reindex</a>&nbsp;&nbsp;
99
+ <a href="#M000130">submit_reset</a>&nbsp;&nbsp;
100
+ <a href="#M000133">submit_restore</a>&nbsp;&nbsp;
101
+ <a href="#M000132">submit_snapshot</a>&nbsp;&nbsp;
102
+ <a href="#M000137">wait_for</a>&nbsp;&nbsp;
103
+ <a href="#M000136">wait_for_submitted</a>&nbsp;&nbsp;
104
+ <a href="#M000138">yield_job_update</a>&nbsp;&nbsp;
105
105
  </div>
106
106
  </div>
107
107
 
@@ -151,11 +151,11 @@ TODO job deletion
151
151
  <div id="methods">
152
152
  <h3 class="section-bar">Public Class methods</h3>
153
153
 
154
- <div id="method-M000134" class="method-detail">
155
- <a name="M000134"></a>
154
+ <div id="method-M000135" class="method-detail">
155
+ <a name="M000135"></a>
156
156
 
157
157
  <div class="method-heading">
158
- <a href="#M000134" class="method-signature">
158
+ <a href="#M000135" class="method-signature">
159
159
  <span class="method-name">build_job_request</span><span class="method-args">(type, label, t=Time.now, snapshot_uri=nil)</span>
160
160
  </a>
161
161
  </div>
@@ -172,8 +172,8 @@ out
172
172
  </td></tr>
173
173
  </table>
174
174
  <p><a class="source-toggle" href="#"
175
- onclick="toggleCode('M000134-source');return false;">[Source]</a></p>
176
- <div class="method-source-code" id="M000134-source">
175
+ onclick="toggleCode('M000135-source');return false;">[Source]</a></p>
176
+ <div class="method-source-code" id="M000135-source">
177
177
  <pre>
178
178
  <span class="ruby-comment cmt"># File lib/pho/job.rb, line 79</span>
179
179
  <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Jobs</span>.<span class="ruby-identifier">build_job_request</span>(<span class="ruby-identifier">type</span>, <span class="ruby-identifier">label</span>, <span class="ruby-identifier">t</span>=<span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span>, <span class="ruby-identifier">snapshot_uri</span>=<span class="ruby-keyword kw">nil</span>)
@@ -200,11 +200,11 @@ out
200
200
  </div>
201
201
  </div>
202
202
 
203
- <div id="method-M000128" class="method-detail">
204
- <a name="M000128"></a>
203
+ <div id="method-M000129" class="method-detail">
204
+ <a name="M000129"></a>
205
205
 
206
206
  <div class="method-heading">
207
- <a href="#M000128" class="method-signature">
207
+ <a href="#M000129" class="method-signature">
208
208
  <span class="method-name">read_from_store</span><span class="method-args">(store)</span>
209
209
  </a>
210
210
  </div>
@@ -218,8 +218,8 @@ an array of job names
218
218
  store:: store from which to read the scheduled job list
219
219
  </pre>
220
220
  <p><a class="source-toggle" href="#"
221
- onclick="toggleCode('M000128-source');return false;">[Source]</a></p>
222
- <div class="method-source-code" id="M000128-source">
221
+ onclick="toggleCode('M000129-source');return false;">[Source]</a></p>
222
+ <div class="method-source-code" id="M000129-source">
223
223
  <pre>
224
224
  <span class="ruby-comment cmt"># File lib/pho/job.rb, line 16</span>
225
225
  <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Jobs</span>.<span class="ruby-identifier">read_from_store</span>(<span class="ruby-identifier">store</span>)
@@ -241,11 +241,11 @@ an array of job names
241
241
  </div>
242
242
  </div>
243
243
 
244
- <div id="method-M000133" class="method-detail">
245
- <a name="M000133"></a>
244
+ <div id="method-M000134" class="method-detail">
245
+ <a name="M000134"></a>
246
246
 
247
247
  <div class="method-heading">
248
- <a href="#M000133" class="method-signature">
248
+ <a href="#M000134" class="method-signature">
249
249
  <span class="method-name">submit_job</span><span class="method-args">(store, jobtype, label, t=Time.now, snapshot_uri=nil)</span>
250
250
  </a>
251
251
  </div>
@@ -255,8 +255,8 @@ an array of job names
255
255
  Generic submit job method
256
256
  </p>
257
257
  <p><a class="source-toggle" href="#"
258
- onclick="toggleCode('M000133-source');return false;">[Source]</a></p>
259
- <div class="method-source-code" id="M000133-source">
258
+ onclick="toggleCode('M000134-source');return false;">[Source]</a></p>
259
+ <div class="method-source-code" id="M000134-source">
260
260
  <pre>
261
261
  <span class="ruby-comment cmt"># File lib/pho/job.rb, line 72</span>
262
262
  <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Jobs</span>.<span class="ruby-identifier">submit_job</span>(<span class="ruby-identifier">store</span>, <span class="ruby-identifier">jobtype</span>, <span class="ruby-identifier">label</span>, <span class="ruby-identifier">t</span>=<span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span>, <span class="ruby-identifier">snapshot_uri</span>=<span class="ruby-keyword kw">nil</span>)
@@ -267,11 +267,11 @@ Generic submit job method
267
267
  </div>
268
268
  </div>
269
269
 
270
- <div id="method-M000130" class="method-detail">
271
- <a name="M000130"></a>
270
+ <div id="method-M000131" class="method-detail">
271
+ <a name="M000131"></a>
272
272
 
273
273
  <div class="method-heading">
274
- <a href="#M000130" class="method-signature">
274
+ <a href="#M000131" class="method-signature">
275
275
  <span class="method-name">submit_reindex</span><span class="method-args">(store, label=&quot;Reindex my store&quot;, t=Time.now)</span>
276
276
  </a>
277
277
  </div>
@@ -288,8 +288,8 @@ the newly created job and then monitor the jobs status if they need to wait
288
288
  for the job to finish.
289
289
  </p>
290
290
  <p><a class="source-toggle" href="#"
291
- onclick="toggleCode('M000130-source');return false;">[Source]</a></p>
292
- <div class="method-source-code" id="M000130-source">
291
+ onclick="toggleCode('M000131-source');return false;">[Source]</a></p>
292
+ <div class="method-source-code" id="M000131-source">
293
293
  <pre>
294
294
  <span class="ruby-comment cmt"># File lib/pho/job.rb, line 47</span>
295
295
  <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Jobs</span>.<span class="ruby-identifier">submit_reindex</span>(<span class="ruby-identifier">store</span>, <span class="ruby-identifier">label</span>=<span class="ruby-value str">&quot;Reindex my store&quot;</span>, <span class="ruby-identifier">t</span>=<span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span>)
@@ -300,11 +300,11 @@ for the job to finish.
300
300
  </div>
301
301
  </div>
302
302
 
303
- <div id="method-M000129" class="method-detail">
304
- <a name="M000129"></a>
303
+ <div id="method-M000130" class="method-detail">
304
+ <a name="M000130"></a>
305
305
 
306
306
  <div class="method-heading">
307
- <a href="#M000129" class="method-signature">
307
+ <a href="#M000130" class="method-signature">
308
308
  <span class="method-name">submit_reset</span><span class="method-args">(store, label=&quot;Reset my store&quot;, t=Time.now)</span>
309
309
  </a>
310
310
  </div>
@@ -321,8 +321,8 @@ the newly created job and then monitor the jobs status if they need to wait
321
321
  for the job to finish.
322
322
  </p>
323
323
  <p><a class="source-toggle" href="#"
324
- onclick="toggleCode('M000129-source');return false;">[Source]</a></p>
325
- <div class="method-source-code" id="M000129-source">
324
+ onclick="toggleCode('M000130-source');return false;">[Source]</a></p>
325
+ <div class="method-source-code" id="M000130-source">
326
326
  <pre>
327
327
  <span class="ruby-comment cmt"># File lib/pho/job.rb, line 37</span>
328
328
  <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Jobs</span>.<span class="ruby-identifier">submit_reset</span>(<span class="ruby-identifier">store</span>, <span class="ruby-identifier">label</span>=<span class="ruby-value str">&quot;Reset my store&quot;</span>, <span class="ruby-identifier">t</span>=<span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span>)
@@ -333,11 +333,11 @@ for the job to finish.
333
333
  </div>
334
334
  </div>
335
335
 
336
- <div id="method-M000132" class="method-detail">
337
- <a name="M000132"></a>
336
+ <div id="method-M000133" class="method-detail">
337
+ <a name="M000133"></a>
338
338
 
339
339
  <div class="method-heading">
340
- <a href="#M000132" class="method-signature">
340
+ <a href="#M000133" class="method-signature">
341
341
  <span class="method-name">submit_restore</span><span class="method-args">(store, snapshot_uri, label=&quot;Restore my snapshot&quot;, t=Time.now)</span>
342
342
  </a>
343
343
  </div>
@@ -354,8 +354,8 @@ the newly created job and then monitor the jobs status if they need to wait
354
354
  for the job to finish.
355
355
  </p>
356
356
  <p><a class="source-toggle" href="#"
357
- onclick="toggleCode('M000132-source');return false;">[Source]</a></p>
358
- <div class="method-source-code" id="M000132-source">
357
+ onclick="toggleCode('M000133-source');return false;">[Source]</a></p>
358
+ <div class="method-source-code" id="M000133-source">
359
359
  <pre>
360
360
  <span class="ruby-comment cmt"># File lib/pho/job.rb, line 67</span>
361
361
  <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Jobs</span>.<span class="ruby-identifier">submit_restore</span>(<span class="ruby-identifier">store</span>, <span class="ruby-identifier">snapshot_uri</span>, <span class="ruby-identifier">label</span>=<span class="ruby-value str">&quot;Restore my snapshot&quot;</span>, <span class="ruby-identifier">t</span>=<span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span>)
@@ -366,11 +366,11 @@ for the job to finish.
366
366
  </div>
367
367
  </div>
368
368
 
369
- <div id="method-M000131" class="method-detail">
370
- <a name="M000131"></a>
369
+ <div id="method-M000132" class="method-detail">
370
+ <a name="M000132"></a>
371
371
 
372
372
  <div class="method-heading">
373
- <a href="#M000131" class="method-signature">
373
+ <a href="#M000132" class="method-signature">
374
374
  <span class="method-name">submit_snapshot</span><span class="method-args">(store, label=&quot;Snapshot my store&quot;, t=Time.now)</span>
375
375
  </a>
376
376
  </div>
@@ -387,8 +387,8 @@ the newly created job and then monitor the jobs status if they need to wait
387
387
  for the job to finish.
388
388
  </p>
389
389
  <p><a class="source-toggle" href="#"
390
- onclick="toggleCode('M000131-source');return false;">[Source]</a></p>
391
- <div class="method-source-code" id="M000131-source">
390
+ onclick="toggleCode('M000132-source');return false;">[Source]</a></p>
391
+ <div class="method-source-code" id="M000132-source">
392
392
  <pre>
393
393
  <span class="ruby-comment cmt"># File lib/pho/job.rb, line 57</span>
394
394
  <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Jobs</span>.<span class="ruby-identifier">submit_snapshot</span>(<span class="ruby-identifier">store</span>, <span class="ruby-identifier">label</span>=<span class="ruby-value str">&quot;Snapshot my store&quot;</span>, <span class="ruby-identifier">t</span>=<span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span>)
@@ -399,11 +399,11 @@ for the job to finish.
399
399
  </div>
400
400
  </div>
401
401
 
402
- <div id="method-M000136" class="method-detail">
403
- <a name="M000136"></a>
402
+ <div id="method-M000137" class="method-detail">
403
+ <a name="M000137"></a>
404
404
 
405
405
  <div class="method-heading">
406
- <a href="#M000136" class="method-signature">
406
+ <a href="#M000137" class="method-signature">
407
407
  <span class="method-name">wait_for</span><span class="method-args">(uri, store, interval=1, &amp;block)</span>
408
408
  </a>
409
409
  </div>
@@ -426,8 +426,8 @@ returned once completed.
426
426
  interval:: the interval at which checks will be made, in minutes. Default is 1
427
427
  </pre>
428
428
  <p><a class="source-toggle" href="#"
429
- onclick="toggleCode('M000136-source');return false;">[Source]</a></p>
430
- <div class="method-source-code" id="M000136-source">
429
+ onclick="toggleCode('M000137-source');return false;">[Source]</a></p>
430
+ <div class="method-source-code" id="M000137-source">
431
431
  <pre>
432
432
  <span class="ruby-comment cmt"># File lib/pho/job.rb, line 118</span>
433
433
  <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Jobs</span>.<span class="ruby-identifier">wait_for</span>(<span class="ruby-identifier">uri</span>, <span class="ruby-identifier">store</span>, <span class="ruby-identifier">interval</span>=<span class="ruby-value">1</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
@@ -446,11 +446,11 @@ returned once completed.
446
446
  </div>
447
447
  </div>
448
448
 
449
- <div id="method-M000135" class="method-detail">
450
- <a name="M000135"></a>
449
+ <div id="method-M000136" class="method-detail">
450
+ <a name="M000136"></a>
451
451
 
452
452
  <div class="method-heading">
453
- <a href="#M000135" class="method-signature">
453
+ <a href="#M000136" class="method-signature">
454
454
  <span class="method-name">wait_for_submitted</span><span class="method-args">(resp, store, interval=1, &amp;block)</span>
455
455
  </a>
456
456
  </div>
@@ -460,8 +460,8 @@ returned once completed.
460
460
  Wait for a newly submitted job to finish
461
461
  </p>
462
462
  <p><a class="source-toggle" href="#"
463
- onclick="toggleCode('M000135-source');return false;">[Source]</a></p>
464
- <div class="method-source-code" id="M000135-source">
463
+ onclick="toggleCode('M000136-source');return false;">[Source]</a></p>
464
+ <div class="method-source-code" id="M000136-source">
465
465
  <pre>
466
466
  <span class="ruby-comment cmt"># File lib/pho/job.rb, line 100</span>
467
467
  <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Jobs</span>.<span class="ruby-identifier">wait_for_submitted</span>(<span class="ruby-identifier">resp</span>, <span class="ruby-identifier">store</span>, <span class="ruby-identifier">interval</span>=<span class="ruby-value">1</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
@@ -478,19 +478,19 @@ Wait for a newly submitted job to finish
478
478
 
479
479
  <h3 class="section-bar">Protected Class methods</h3>
480
480
 
481
- <div id="method-M000137" class="method-detail">
482
- <a name="M000137"></a>
481
+ <div id="method-M000138" class="method-detail">
482
+ <a name="M000138"></a>
483
483
 
484
484
  <div class="method-heading">
485
- <a href="#M000137" class="method-signature">
485
+ <a href="#M000138" class="method-signature">
486
486
  <span class="method-name">yield_job_update</span><span class="method-args">(job, updates) {|job, job.start_message, job.actual_start_time| ...}</span>
487
487
  </a>
488
488
  </div>
489
489
 
490
490
  <div class="method-description">
491
491
  <p><a class="source-toggle" href="#"
492
- onclick="toggleCode('M000137-source');return false;">[Source]</a></p>
493
- <div class="method-source-code" id="M000137-source">
492
+ onclick="toggleCode('M000138-source');return false;">[Source]</a></p>
493
+ <div class="method-source-code" id="M000138-source">
494
494
  <pre>
495
495
  <span class="ruby-comment cmt"># File lib/pho/job.rb, line 132</span>
496
496
  <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Jobs</span>.<span class="ruby-identifier">yield_job_update</span>(<span class="ruby-identifier">job</span>, <span class="ruby-identifier">updates</span>)