Sha256: f3d0b3a28feca0b9df6c71051919879fd7afb7b0b69c4015d8a3de312bce9798

Contents?: true

Size: 1005 Bytes

Versions: 4

Compression:

Stored size: 1005 Bytes

Contents

#
# Fluentd
#
#    Licensed under the Apache License, Version 2.0 (the "License");
#    you may not use this file except in compliance with the License.
#    You may obtain a copy of the License at
#
#        http://www.apache.org/licenses/LICENSE-2.0
#
#    Unless required by applicable law or agreed to in writing, software
#    distributed under the License is distributed on an "AS IS" BASIS,
#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#    See the License for the specific language governing permissions and
#    limitations under the License.
#

module Fluent
  class Input
    include Configurable
    include PluginId
    include PluginLoggerMixin

    attr_accessor :router

    def initialize
      super
    end

    def configure(conf)
      super

      if label_name = conf['@label']
        label = Engine.root_agent.find_label(label_name)
        @router = label.event_router
      end
    end

    def start
    end

    def shutdown
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fluentd-0.12.0 lib/fluent/input.rb
fluentd-0.12.0.pre.3 lib/fluent/input.rb
fluentd-0.12.0.pre.2 lib/fluent/input.rb
fluentd-0.12.0.pre.1 lib/fluent/input.rb