163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
|
# File 'lib/fluent/plugin.rb', line 163
def configure(conf)
super
sysconf = if self.respond_to?(:owner) && owner.respond_to?(:system_config)
owner.system_config
elsif self.respond_to?(:system_config)
self.system_config
else
nil
end
if sysconf && sysconf.workers > 1 && !self.multi_workers_ready?
type = Fluent::Plugin.lookup_type_from_class(self.class)
raise Fluent::ConfigError, "Plugin '#{type}' does not support multi workers configuration (#{self.class})"
end
end
|