Class: Librr::Indexer::SolrOutHandler

Inherits:
EventMachine::Connection
  • Object
show all
Defined in:
lib/librr/indexer.rb

Instance Method Summary collapse

Constructor Details

#initialize(indexer) ⇒ SolrOutHandler

Returns a new instance of SolrOutHandler.



58
59
60
# File 'lib/librr/indexer.rb', line 58

def initialize(indexer)
  @indexer = indexer
end

Instance Method Details

#receive_data(data) ⇒ Object



62
63
64
65
66
67
# File 'lib/librr/indexer.rb', line 62

def receive_data(data)
  # File.open(Settings.in_dir('solr.log'), 'a+'){|f| f.write(data)}
  if not @indexer.solr_started and data =~ /Started SocketConnector/
    @indexer.after_start
  end
end