pho 0.7.8 → 0.7.9
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +8 -0
- data/Rakefile +4 -2
- data/doc/rdoc/classes/Pho.html +4 -0
- data/doc/rdoc/classes/Pho/CommandLine.html +114 -114
- data/doc/rdoc/classes/Pho/DatatypeProperty.html +12 -12
- data/doc/rdoc/classes/Pho/Enrichment/StoreEnricher.html +29 -29
- data/doc/rdoc/classes/Pho/Etags.html +36 -36
- data/doc/rdoc/classes/Pho/Facet/Results.html +19 -19
- data/doc/rdoc/classes/Pho/Facet/Term.html +6 -6
- data/doc/rdoc/classes/Pho/FieldPredicateMap.html +102 -102
- data/doc/rdoc/classes/Pho/FieldWeighting.html +12 -12
- data/doc/rdoc/classes/Pho/FileManagement.html +16 -0
- data/doc/rdoc/classes/Pho/FileManagement/AbstractFileManager.html +168 -108
- data/doc/rdoc/classes/Pho/FileManagement/BNodeRewritingHandler.html +226 -0
- data/doc/rdoc/classes/Pho/FileManagement/FileManager.html +48 -35
- data/doc/rdoc/classes/Pho/FileManagement/FileSplitter.html +291 -0
- data/doc/rdoc/classes/Pho/FileManagement/RDFManager.html +22 -22
- data/doc/rdoc/classes/Pho/FileManagement/StatementHandler.html +152 -0
- data/doc/rdoc/classes/Pho/FileManagement/Util.html +212 -0
- data/doc/rdoc/classes/Pho/Job.html +64 -64
- data/doc/rdoc/classes/Pho/Jobs.html +60 -60
- data/doc/rdoc/classes/Pho/OAI/Record.html +6 -6
- data/doc/rdoc/classes/Pho/OAI/Records.html +24 -24
- data/doc/rdoc/classes/Pho/OAI/Statistics.html +12 -12
- data/doc/rdoc/classes/Pho/QueryProfile.html +66 -66
- data/doc/rdoc/classes/Pho/ResourceHash/Converter.html +36 -36
- data/doc/rdoc/classes/Pho/ResourceHash/SetAlgebra.html +12 -12
- data/doc/rdoc/classes/Pho/Snapshot.html +35 -35
- data/doc/rdoc/classes/Pho/Sparql/SparqlClient.html +74 -74
- data/doc/rdoc/classes/Pho/Sparql/SparqlHelper.html +78 -78
- data/doc/rdoc/classes/Pho/Status.html +26 -26
- data/doc/rdoc/classes/Pho/Store.html +215 -215
- data/doc/rdoc/classes/Pho/StoreSparqlClient.html +12 -12
- data/doc/rdoc/classes/Pho/Update/Changeset.html +63 -63
- data/doc/rdoc/classes/Pho/Update/ChangesetBuilder.html +24 -24
- data/doc/rdoc/classes/Pho/Update/ChangesetHelper.html +6 -6
- data/doc/rdoc/classes/Pho/Update/Changesets.html +12 -12
- data/doc/rdoc/classes/Pho/Update/LiteralStatement.html +18 -18
- data/doc/rdoc/classes/Pho/Update/ResourceStatement.html +24 -24
- data/doc/rdoc/classes/Pho/Update/Statement.html +24 -24
- data/doc/rdoc/classes/String.html +1 -1
- data/doc/rdoc/created.rid +1 -1
- data/doc/rdoc/files/CHANGES.html +13 -1
- data/doc/rdoc/files/lib/pho/file_management_rb.html +1 -1
- data/doc/rdoc/files/lib/pho/file_manager_rb.html +1 -1
- data/doc/rdoc/files/lib/pho/rdf_collection_rb.html +1 -1
- data/doc/rdoc/files/lib/pho/upload_rb.html +101 -0
- data/doc/rdoc/files/lib/pho_rb.html +4 -2
- data/doc/rdoc/fr_class_index.html +4 -0
- data/doc/rdoc/fr_file_index.html +1 -0
- data/doc/rdoc/fr_method_index.html +228 -218
- data/lib/pho.rb +4 -1
- data/lib/pho/file_management.rb +30 -1
- data/lib/pho/file_manager.rb +7 -0
- data/lib/pho/rdf_collection.rb +4 -4
- data/lib/pho/upload.rb +156 -0
- data/tests/tc_bnodehandler.rb +42 -0
- data/tests/tc_filesplitter.rb +51 -0
- data/tests/ts_pho.rb +3 -1
- metadata +56 -8
@@ -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="#
|
105
|
-
<a href="#
|
106
|
-
<a href="#
|
107
|
-
<a href="#
|
108
|
-
<a href="#
|
109
|
-
<a href="#
|
110
|
-
<a href="#
|
111
|
-
<a href="#
|
112
|
-
<a href="#
|
113
|
-
<a href="#
|
104
|
+
<a href="#M000219">completed?</a>
|
105
|
+
<a href="#M000214">new</a>
|
106
|
+
<a href="#M000216">parse</a>
|
107
|
+
<a href="#M000217">progress_updates</a>
|
108
|
+
<a href="#M000215">read_from_store</a>
|
109
|
+
<a href="#M000221">running?</a>
|
110
|
+
<a href="#M000218">started?</a>
|
111
|
+
<a href="#M000220">successful?</a>
|
112
|
+
<a href="#M000223">with_each</a>
|
113
|
+
<a href="#M000222">with_first</a>
|
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-
|
259
|
-
<a name="
|
258
|
+
<div id="method-M000214" class="method-detail">
|
259
|
+
<a name="M000214"></a>
|
260
260
|
|
261
261
|
<div class="method-heading">
|
262
|
-
<a href="#
|
262
|
+
<a href="#M000214" 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('
|
290
|
-
<div class="method-source-code" id="
|
289
|
+
onclick="toggleCode('M000214-source');return false;">[Source]</a></p>
|
290
|
+
<div class="method-source-code" id="M000214-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-
|
307
|
-
<a name="
|
306
|
+
<div id="method-M000216" class="method-detail">
|
307
|
+
<a name="M000216"></a>
|
308
308
|
|
309
309
|
<div class="method-heading">
|
310
|
-
<a href="#
|
310
|
+
<a href="#M000216" class="method-signature">
|
311
311
|
<span class="method-name">parse</span><span class="method-args">(uri, xml)</span>
|
312
312
|
</a>
|
313
313
|
</div>
|
@@ -326,8 +326,8 @@ populated <a href="Job.html">Job</a> instance
|
|
326
326
|
</td></tr>
|
327
327
|
</table>
|
328
328
|
<p><a class="source-toggle" href="#"
|
329
|
-
onclick="toggleCode('
|
330
|
-
<div class="method-source-code" id="
|
329
|
+
onclick="toggleCode('M000216-source');return false;">[Source]</a></p>
|
330
|
+
<div class="method-source-code" id="M000216-source">
|
331
331
|
<pre>
|
332
332
|
<span class="ruby-comment cmt"># File lib/pho/job.rb, line 241</span>
|
333
333
|
<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>)
|
@@ -384,11 +384,11 @@ populated <a href="Job.html">Job</a> instance
|
|
384
384
|
</div>
|
385
385
|
</div>
|
386
386
|
|
387
|
-
<div id="method-
|
388
|
-
<a name="
|
387
|
+
<div id="method-M000215" class="method-detail">
|
388
|
+
<a name="M000215"></a>
|
389
389
|
|
390
390
|
<div class="method-heading">
|
391
|
-
<a href="#
|
391
|
+
<a href="#M000215" class="method-signature">
|
392
392
|
<span class="method-name">read_from_store</span><span class="method-args">(uri, store)</span>
|
393
393
|
</a>
|
394
394
|
</div>
|
@@ -406,8 +406,8 @@ Read a job from a store
|
|
406
406
|
</td></tr>
|
407
407
|
</table>
|
408
408
|
<p><a class="source-toggle" href="#"
|
409
|
-
onclick="toggleCode('
|
410
|
-
<div class="method-source-code" id="
|
409
|
+
onclick="toggleCode('M000215-source');return false;">[Source]</a></p>
|
410
|
+
<div class="method-source-code" id="M000215-source">
|
411
411
|
<pre>
|
412
412
|
<span class="ruby-comment cmt"># File lib/pho/job.rb, line 227</span>
|
413
413
|
<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>)
|
@@ -425,19 +425,19 @@ Read a job from a store
|
|
425
425
|
|
426
426
|
<h3 class="section-bar">Protected Class methods</h3>
|
427
427
|
|
428
|
-
<div id="method-
|
429
|
-
<a name="
|
428
|
+
<div id="method-M000223" class="method-detail">
|
429
|
+
<a name="M000223"></a>
|
430
430
|
|
431
431
|
<div class="method-heading">
|
432
|
-
<a href="#
|
432
|
+
<a href="#M000223" class="method-signature">
|
433
433
|
<span class="method-name">with_each</span><span class="method-args">(el, xpath) {|ref_el| ...}</span>
|
434
434
|
</a>
|
435
435
|
</div>
|
436
436
|
|
437
437
|
<div class="method-description">
|
438
438
|
<p><a class="source-toggle" href="#"
|
439
|
-
onclick="toggleCode('
|
440
|
-
<div class="method-source-code" id="
|
439
|
+
onclick="toggleCode('M000223-source');return false;">[Source]</a></p>
|
440
|
+
<div class="method-source-code" id="M000223-source">
|
441
441
|
<pre>
|
442
442
|
<span class="ruby-comment cmt"># File lib/pho/job.rb, line 327</span>
|
443
443
|
<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>)
|
@@ -453,19 +453,19 @@ Read a job from a store
|
|
453
453
|
</div>
|
454
454
|
</div>
|
455
455
|
|
456
|
-
<div id="method-
|
457
|
-
<a name="
|
456
|
+
<div id="method-M000222" class="method-detail">
|
457
|
+
<a name="M000222"></a>
|
458
458
|
|
459
459
|
<div class="method-heading">
|
460
|
-
<a href="#
|
460
|
+
<a href="#M000222" class="method-signature">
|
461
461
|
<span class="method-name">with_first</span><span class="method-args">(el, xpath) {|found_el| ...}</span>
|
462
462
|
</a>
|
463
463
|
</div>
|
464
464
|
|
465
465
|
<div class="method-description">
|
466
466
|
<p><a class="source-toggle" href="#"
|
467
|
-
onclick="toggleCode('
|
468
|
-
<div class="method-source-code" id="
|
467
|
+
onclick="toggleCode('M000222-source');return false;">[Source]</a></p>
|
468
|
+
<div class="method-source-code" id="M000222-source">
|
469
469
|
<pre>
|
470
470
|
<span class="ruby-comment cmt"># File lib/pho/job.rb, line 320</span>
|
471
471
|
<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>)
|
@@ -481,22 +481,22 @@ Read a job from a store
|
|
481
481
|
|
482
482
|
<h3 class="section-bar">Public Instance methods</h3>
|
483
483
|
|
484
|
-
<div id="method-
|
485
|
-
<a name="
|
484
|
+
<div id="method-M000219" class="method-detail">
|
485
|
+
<a name="M000219"></a>
|
486
486
|
|
487
487
|
<div class="method-heading">
|
488
|
-
<a href="#
|
488
|
+
<a href="#M000219" class="method-signature">
|
489
489
|
<span class="method-name">completed?</span><span class="method-args">()</span>
|
490
490
|
</a>
|
491
491
|
</div>
|
492
492
|
|
493
493
|
<div class="method-description">
|
494
494
|
<p>
|
495
|
-
Has the job <a href="Job.html#
|
495
|
+
Has the job <a href="Job.html#M000219">completed?</a>
|
496
496
|
</p>
|
497
497
|
<p><a class="source-toggle" href="#"
|
498
|
-
onclick="toggleCode('
|
499
|
-
<div class="method-source-code" id="
|
498
|
+
onclick="toggleCode('M000219-source');return false;">[Source]</a></p>
|
499
|
+
<div class="method-source-code" id="M000219-source">
|
500
500
|
<pre>
|
501
501
|
<span class="ruby-comment cmt"># File lib/pho/job.rb, line 304</span>
|
502
502
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">completed?</span>
|
@@ -507,19 +507,19 @@ Has the job <a href="Job.html#M000209">completed?</a>
|
|
507
507
|
</div>
|
508
508
|
</div>
|
509
509
|
|
510
|
-
<div id="method-
|
511
|
-
<a name="
|
510
|
+
<div id="method-M000217" class="method-detail">
|
511
|
+
<a name="M000217"></a>
|
512
512
|
|
513
513
|
<div class="method-heading">
|
514
|
-
<a href="#
|
514
|
+
<a href="#M000217" class="method-signature">
|
515
515
|
<span class="method-name">progress_updates</span><span class="method-args">()</span>
|
516
516
|
</a>
|
517
517
|
</div>
|
518
518
|
|
519
519
|
<div class="method-description">
|
520
520
|
<p><a class="source-toggle" href="#"
|
521
|
-
onclick="toggleCode('
|
522
|
-
<div class="method-source-code" id="
|
521
|
+
onclick="toggleCode('M000217-source');return false;">[Source]</a></p>
|
522
|
+
<div class="method-source-code" id="M000217-source">
|
523
523
|
<pre>
|
524
524
|
<span class="ruby-comment cmt"># File lib/pho/job.rb, line 291</span>
|
525
525
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">progress_updates</span>()
|
@@ -533,22 +533,22 @@ Has the job <a href="Job.html#M000209">completed?</a>
|
|
533
533
|
</div>
|
534
534
|
</div>
|
535
535
|
|
536
|
-
<div id="method-
|
537
|
-
<a name="
|
536
|
+
<div id="method-M000221" class="method-detail">
|
537
|
+
<a name="M000221"></a>
|
538
538
|
|
539
539
|
<div class="method-heading">
|
540
|
-
<a href="#
|
540
|
+
<a href="#M000221" class="method-signature">
|
541
541
|
<span class="method-name">running?</span><span class="method-args">()</span>
|
542
542
|
</a>
|
543
543
|
</div>
|
544
544
|
|
545
545
|
<div class="method-description">
|
546
546
|
<p>
|
547
|
-
Is the job still <a href="Job.html#
|
547
|
+
Is the job still <a href="Job.html#M000221">running?</a>
|
548
548
|
</p>
|
549
549
|
<p><a class="source-toggle" href="#"
|
550
|
-
onclick="toggleCode('
|
551
|
-
<div class="method-source-code" id="
|
550
|
+
onclick="toggleCode('M000221-source');return false;">[Source]</a></p>
|
551
|
+
<div class="method-source-code" id="M000221-source">
|
552
552
|
<pre>
|
553
553
|
<span class="ruby-comment cmt"># File lib/pho/job.rb, line 314</span>
|
554
554
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">running?</span>
|
@@ -559,22 +559,22 @@ Is the job still <a href="Job.html#M000211">running?</a>
|
|
559
559
|
</div>
|
560
560
|
</div>
|
561
561
|
|
562
|
-
<div id="method-
|
563
|
-
<a name="
|
562
|
+
<div id="method-M000218" class="method-detail">
|
563
|
+
<a name="M000218"></a>
|
564
564
|
|
565
565
|
<div class="method-heading">
|
566
|
-
<a href="#
|
566
|
+
<a href="#M000218" class="method-signature">
|
567
567
|
<span class="method-name">started?</span><span class="method-args">()</span>
|
568
568
|
</a>
|
569
569
|
</div>
|
570
570
|
|
571
571
|
<div class="method-description">
|
572
572
|
<p>
|
573
|
-
Has the job <a href="Job.html#
|
573
|
+
Has the job <a href="Job.html#M000218">started?</a>
|
574
574
|
</p>
|
575
575
|
<p><a class="source-toggle" href="#"
|
576
|
-
onclick="toggleCode('
|
577
|
-
<div class="method-source-code" id="
|
576
|
+
onclick="toggleCode('M000218-source');return false;">[Source]</a></p>
|
577
|
+
<div class="method-source-code" id="M000218-source">
|
578
578
|
<pre>
|
579
579
|
<span class="ruby-comment cmt"># File lib/pho/job.rb, line 299</span>
|
580
580
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">started?</span>
|
@@ -585,22 +585,22 @@ Has the job <a href="Job.html#M000208">started?</a>
|
|
585
585
|
</div>
|
586
586
|
</div>
|
587
587
|
|
588
|
-
<div id="method-
|
589
|
-
<a name="
|
588
|
+
<div id="method-M000220" class="method-detail">
|
589
|
+
<a name="M000220"></a>
|
590
590
|
|
591
591
|
<div class="method-heading">
|
592
|
-
<a href="#
|
592
|
+
<a href="#M000220" class="method-signature">
|
593
593
|
<span class="method-name">successful?</span><span class="method-args">()</span>
|
594
594
|
</a>
|
595
595
|
</div>
|
596
596
|
|
597
597
|
<div class="method-description">
|
598
598
|
<p>
|
599
|
-
Was the job <a href="Job.html#
|
599
|
+
Was the job <a href="Job.html#M000220">successful?</a>
|
600
600
|
</p>
|
601
601
|
<p><a class="source-toggle" href="#"
|
602
|
-
onclick="toggleCode('
|
603
|
-
<div class="method-source-code" id="
|
602
|
+
onclick="toggleCode('M000220-source');return false;">[Source]</a></p>
|
603
|
+
<div class="method-source-code" id="M000220-source">
|
604
604
|
<pre>
|
605
605
|
<span class="ruby-comment cmt"># File lib/pho/job.rb, line 309</span>
|
606
606
|
<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="#
|
96
|
-
<a href="#
|
97
|
-
<a href="#
|
98
|
-
<a href="#
|
99
|
-
<a href="#
|
100
|
-
<a href="#
|
101
|
-
<a href="#
|
102
|
-
<a href="#
|
103
|
-
<a href="#
|
104
|
-
<a href="#
|
95
|
+
<a href="#M000165">build_job_request</a>
|
96
|
+
<a href="#M000159">read_from_store</a>
|
97
|
+
<a href="#M000164">submit_job</a>
|
98
|
+
<a href="#M000161">submit_reindex</a>
|
99
|
+
<a href="#M000160">submit_reset</a>
|
100
|
+
<a href="#M000163">submit_restore</a>
|
101
|
+
<a href="#M000162">submit_snapshot</a>
|
102
|
+
<a href="#M000167">wait_for</a>
|
103
|
+
<a href="#M000166">wait_for_submitted</a>
|
104
|
+
<a href="#M000168">yield_job_update</a>
|
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-
|
155
|
-
<a name="
|
154
|
+
<div id="method-M000165" class="method-detail">
|
155
|
+
<a name="M000165"></a>
|
156
156
|
|
157
157
|
<div class="method-heading">
|
158
|
-
<a href="#
|
158
|
+
<a href="#M000165" 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('
|
176
|
-
<div class="method-source-code" id="
|
175
|
+
onclick="toggleCode('M000165-source');return false;">[Source]</a></p>
|
176
|
+
<div class="method-source-code" id="M000165-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-
|
204
|
-
<a name="
|
203
|
+
<div id="method-M000159" class="method-detail">
|
204
|
+
<a name="M000159"></a>
|
205
205
|
|
206
206
|
<div class="method-heading">
|
207
|
-
<a href="#
|
207
|
+
<a href="#M000159" 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('
|
222
|
-
<div class="method-source-code" id="
|
221
|
+
onclick="toggleCode('M000159-source');return false;">[Source]</a></p>
|
222
|
+
<div class="method-source-code" id="M000159-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-
|
245
|
-
<a name="
|
244
|
+
<div id="method-M000164" class="method-detail">
|
245
|
+
<a name="M000164"></a>
|
246
246
|
|
247
247
|
<div class="method-heading">
|
248
|
-
<a href="#
|
248
|
+
<a href="#M000164" 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('
|
259
|
-
<div class="method-source-code" id="
|
258
|
+
onclick="toggleCode('M000164-source');return false;">[Source]</a></p>
|
259
|
+
<div class="method-source-code" id="M000164-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-
|
271
|
-
<a name="
|
270
|
+
<div id="method-M000161" class="method-detail">
|
271
|
+
<a name="M000161"></a>
|
272
272
|
|
273
273
|
<div class="method-heading">
|
274
|
-
<a href="#
|
274
|
+
<a href="#M000161" class="method-signature">
|
275
275
|
<span class="method-name">submit_reindex</span><span class="method-args">(store, label="Reindex my store", 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('
|
292
|
-
<div class="method-source-code" id="
|
291
|
+
onclick="toggleCode('M000161-source');return false;">[Source]</a></p>
|
292
|
+
<div class="method-source-code" id="M000161-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">"Reindex my store"</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-
|
304
|
-
<a name="
|
303
|
+
<div id="method-M000160" class="method-detail">
|
304
|
+
<a name="M000160"></a>
|
305
305
|
|
306
306
|
<div class="method-heading">
|
307
|
-
<a href="#
|
307
|
+
<a href="#M000160" class="method-signature">
|
308
308
|
<span class="method-name">submit_reset</span><span class="method-args">(store, label="Reset my store", 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('
|
325
|
-
<div class="method-source-code" id="
|
324
|
+
onclick="toggleCode('M000160-source');return false;">[Source]</a></p>
|
325
|
+
<div class="method-source-code" id="M000160-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">"Reset my store"</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-
|
337
|
-
<a name="
|
336
|
+
<div id="method-M000163" class="method-detail">
|
337
|
+
<a name="M000163"></a>
|
338
338
|
|
339
339
|
<div class="method-heading">
|
340
|
-
<a href="#
|
340
|
+
<a href="#M000163" class="method-signature">
|
341
341
|
<span class="method-name">submit_restore</span><span class="method-args">(store, snapshot_uri, label="Restore my snapshot", 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('
|
358
|
-
<div class="method-source-code" id="
|
357
|
+
onclick="toggleCode('M000163-source');return false;">[Source]</a></p>
|
358
|
+
<div class="method-source-code" id="M000163-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">"Restore my snapshot"</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-
|
370
|
-
<a name="
|
369
|
+
<div id="method-M000162" class="method-detail">
|
370
|
+
<a name="M000162"></a>
|
371
371
|
|
372
372
|
<div class="method-heading">
|
373
|
-
<a href="#
|
373
|
+
<a href="#M000162" class="method-signature">
|
374
374
|
<span class="method-name">submit_snapshot</span><span class="method-args">(store, label="Snapshot my store", 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('
|
391
|
-
<div class="method-source-code" id="
|
390
|
+
onclick="toggleCode('M000162-source');return false;">[Source]</a></p>
|
391
|
+
<div class="method-source-code" id="M000162-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">"Snapshot my store"</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-
|
403
|
-
<a name="
|
402
|
+
<div id="method-M000167" class="method-detail">
|
403
|
+
<a name="M000167"></a>
|
404
404
|
|
405
405
|
<div class="method-heading">
|
406
|
-
<a href="#
|
406
|
+
<a href="#M000167" class="method-signature">
|
407
407
|
<span class="method-name">wait_for</span><span class="method-args">(uri, store, interval=1, &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('
|
430
|
-
<div class="method-source-code" id="
|
429
|
+
onclick="toggleCode('M000167-source');return false;">[Source]</a></p>
|
430
|
+
<div class="method-source-code" id="M000167-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">&</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-
|
450
|
-
<a name="
|
449
|
+
<div id="method-M000166" class="method-detail">
|
450
|
+
<a name="M000166"></a>
|
451
451
|
|
452
452
|
<div class="method-heading">
|
453
|
-
<a href="#
|
453
|
+
<a href="#M000166" class="method-signature">
|
454
454
|
<span class="method-name">wait_for_submitted</span><span class="method-args">(resp, store, interval=1, &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('
|
464
|
-
<div class="method-source-code" id="
|
463
|
+
onclick="toggleCode('M000166-source');return false;">[Source]</a></p>
|
464
|
+
<div class="method-source-code" id="M000166-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">&</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-
|
482
|
-
<a name="
|
481
|
+
<div id="method-M000168" class="method-detail">
|
482
|
+
<a name="M000168"></a>
|
483
483
|
|
484
484
|
<div class="method-heading">
|
485
|
-
<a href="#
|
485
|
+
<a href="#M000168" 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('
|
493
|
-
<div class="method-source-code" id="
|
492
|
+
onclick="toggleCode('M000168-source');return false;">[Source]</a></p>
|
493
|
+
<div class="method-source-code" id="M000168-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>)
|