Class: Velocity::Instance::SearchCollection::Status::CrawlerStatus
- Inherits:
-
ServiceStatus
- Object
- ServiceStatus
- Velocity::Instance::SearchCollection::Status::CrawlerStatus
- Defined in:
- lib/acceleration/velocity.rb
Overview
Wrapper for the crawler status object
Instance Attribute Summary
Attributes inherited from ServiceStatus
Instance Method Summary collapse
-
#converter_timings ⇒ Object
Get an array of hashes containing the timings for all converters that have run so far while crawling.
-
#converter_timings_total_ms ⇒ Object
Get the total number of time spent converting.
-
#crawl_hops_input ⇒ Object
Retrieve the number of documents input at each hop.
-
#crawl_hops_output ⇒ Object
Retrieve the number of documents output at each hop.
Methods inherited from ServiceStatus
#attribute, #attributes, #has_status?, #initialize, #method_missing, #respond_to_missing?
Constructor Details
This class inherits a constructor from Velocity::Instance::SearchCollection::Status::ServiceStatus
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Velocity::Instance::SearchCollection::Status::ServiceStatus
Instance Method Details
#converter_timings ⇒ Object
Get an array of hashes containing the timings for all converters that have run so far while crawling.
868 869 870 871 872 873 874 875 876 |
# File 'lib/acceleration/velocity.rb', line 868 def converter_timings doc.xpath('converter-timings/converter-timing').collect do |ct| attrs = {} ct.attributes.each do |key, nattr| attrs[key] = nattr.value end attrs end end |
#converter_timings_total_ms ⇒ Object
Get the total number of time spent converting
860 861 862 |
# File 'lib/acceleration/velocity.rb', line 860 def converter_timings_total_ms doc.xpath('converter-timings/@total-ms').first.value.to_i end |
#crawl_hops_input ⇒ Object
Retrieve the number of documents input at each hop
888 889 890 |
# File 'lib/acceleration/velocity.rb', line 888 def crawl_hops_input crawl_hops :input end |
#crawl_hops_output ⇒ Object
Retrieve the number of documents output at each hop
881 882 883 |
# File 'lib/acceleration/velocity.rb', line 881 def crawl_hops_output crawl_hops :output end |