Collector

class
Superclass
Object

Public Class Methods

anchor
configured_type()

Create an instance of the configured type of collector and return it.

# File lib/observability/collector.rb, line 42
def self::configured_type
        return self.create( self.type )
end
anchor
inherited( subclass )

Let subclasses be inherited

# File lib/observability/collector.rb, line 35
def self::inherited( subclass )
        super
        subclass.public_class_method( :new )
end
anchor
start()

Start a collector of the specified type, returning only when it shuts down.

# File lib/observability/collector.rb, line 48
def self::start
        instance = self.configured_type
        instance.start
end

Public Instance Methods

anchor
start()

Start the collector.

# File lib/observability/collector.rb, line 55
def start
        # No-op
end