Class: Flydata::Source::Setup

Inherits:
Component show all
Defined in:
lib/flydata/source/setup.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Component

#initialize

Constructor Details

This class inherits a constructor from Flydata::Source::Component

Class Method Details

.inherited(child_class) ⇒ Object



9
10
11
# File 'lib/flydata/source/setup.rb', line 9

def self.inherited(child_class)
  Source.register(child_class, self)
end

Instance Method Details

#initial_run_complete_messageObject

Public Interface: initial_run complete message

Returns a string which is displayed as the completion message at the end of #initial_run, which gets called at the end of Agent install.



25
26
27
# File 'lib/flydata/source/setup.rb', line 25

def initial_run_complete_message
  raise UnsupportedSourceError,  "subclass must implement"
end

#initial_run_need_restart?Boolean

Public Interface: Tells if Agent process needs restart.

Returns true if Agent process needs restart at the end of #initial_run. Returns false otherwise.

Returns:

  • (Boolean)

Raises:



17
18
19
# File 'lib/flydata/source/setup.rb', line 17

def initial_run_need_restart?
  raise UnsupportedSourceError,  "subclass must implement"
end