Class: DLogReader::Selector

Inherits:
Object
  • Object
show all
Defined in:
lib/distributed_logreader/selector.rb

Overview

This abstract class defines the interface to decide which log file to read. The identity strategy is the simplist, to return the file inputed. However, to handle rotating log files, we’ll need some more complex strategies.

Direct Known Subclasses

RotatingLog

Instance Method Summary collapse

Instance Method Details

#file_to_process(file_or_dir) ⇒ Object

determines the file to process from file path input

Raises:



8
9
10
# File 'lib/distributed_logreader/selector.rb', line 8

def file_to_process(file_or_dir)
  raise NotImplementedError.new, "file_to_process not implemented. Are you sure you created a conrete class?"
end