Class HostMap::Engine
In: lib/core.rb
Parent: Object

Hostmap engine.

Methods

new   run   stop  

Classes and Modules

Module HostMap::Engine::Shared

Attributes

host_discovery  [R]  Host discovery instance.
opts  [R]  Configuration options
plugins  [R]  The engine instance‘s plugin manager.

Public Class methods

Creates an instance of the hostmap engine.

[Source]

# File lib/core.rb, line 34
    def initialize(opts={})
      # Load logger
      HostMap::HMLogger.new(opts)
      $LOG.debug "Initializing hostmap engine."
      self.opts = opts
      self.plugins = HostMap::Managers::PluginManager.new(self)
    end

Public Instance methods

Runs a discovery as configured via options.

[Source]

# File lib/core.rb, line 45
    def run
      $LOG.debug "Running discovery engine."
      self.host_discovery = HostMap::Discovery::HostDiscovery::HostMapping.new(self)
      self.host_discovery.run
    end

Stops a discovery.

[Source]

# File lib/core.rb, line 54
    def stop
      $LOG.debug "Stopping discovery engine."
      self.host_discovery.stop
    end

[Validate]