Class: PyramidScheme::IndexClient
- Inherits:
-
Object
- Object
- PyramidScheme::IndexClient
- Defined in:
- lib/pyramid_scheme/index_client.rb
Instance Attribute Summary collapse
-
#index_provider ⇒ Object
readonly
Returns the value of attribute index_provider.
Instance Method Summary collapse
- #bounce_pids ⇒ Object
-
#initialize(options = {}) ⇒ IndexClient
constructor
A new instance of IndexClient.
- #retrieve_index ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ IndexClient
Returns a new instance of IndexClient.
4 5 6 7 |
# File 'lib/pyramid_scheme/index_client.rb', line 4 def initialize( = {}) @configuration = PyramidScheme::Configuration.new() @index_provider = @configuration[:index_provider_class].new end |
Instance Attribute Details
#index_provider ⇒ Object (readonly)
Returns the value of attribute index_provider.
3 4 5 |
# File 'lib/pyramid_scheme/index_client.rb', line 3 def index_provider @index_provider end |
Instance Method Details
#bounce_pids ⇒ Object
14 15 16 |
# File 'lib/pyramid_scheme/index_client.rb', line 14 def bounce_pids PyramidScheme::ProcessManager.bounce_searchd end |
#retrieve_index ⇒ Object
9 10 11 12 |
# File 'lib/pyramid_scheme/index_client.rb', line 9 def retrieve_index @index_provider.retrieve_index bounce_pids end |