Class: Fluent::Plugin::Base
Defined Under Namespace
Classes: State
Constant Summary
Configurable::CONFIG_TYPE_REGISTRY
Instance Method Summary
collapse
#system_config, #system_config_override
#config, included, lookup_type, register_type
Constructor Details
#initialize ⇒ Base
Returns a new instance of Base.
29
30
31
32
|
# File 'lib/fluent/plugin/base.rb', line 29
def initialize
super
@_state = State.new(false, false, false, false, false, false, false, false, false)
end
|
Instance Method Details
#after_shutdown ⇒ Object
70
71
72
73
|
# File 'lib/fluent/plugin/base.rb', line 70
def after_shutdown
@_state.after_shutdown = true
self
end
|
#after_shutdown? ⇒ Boolean
109
110
111
|
# File 'lib/fluent/plugin/base.rb', line 109
def after_shutdown?
@_state.after_shutdown
end
|
#after_start ⇒ Object
50
51
52
53
|
# File 'lib/fluent/plugin/base.rb', line 50
def after_start
@_state.after_start = true
self
end
|
#after_started? ⇒ Boolean
93
94
95
|
# File 'lib/fluent/plugin/base.rb', line 93
def after_started?
@_state.after_start
end
|
#before_shutdown ⇒ Object
60
61
62
63
|
# File 'lib/fluent/plugin/base.rb', line 60
def before_shutdown
@_state.before_shutdown = true
self
end
|
#before_shutdown? ⇒ Boolean
101
102
103
|
# File 'lib/fluent/plugin/base.rb', line 101
def before_shutdown?
@_state.before_shutdown
end
|
#close ⇒ Object
75
76
77
78
|
# File 'lib/fluent/plugin/base.rb', line 75
def close
@_state.close = true
self
end
|
#closed? ⇒ Boolean
113
114
115
|
# File 'lib/fluent/plugin/base.rb', line 113
def closed?
@_state.close
end
|
38
39
40
41
42
43
|
# File 'lib/fluent/plugin/base.rb', line 38
def configure(conf)
super
@_state ||= State.new(false, false, false, false, false, false, false, false, false)
@_state.configure = true
self
end
|
85
86
87
|
# File 'lib/fluent/plugin/base.rb', line 85
def configured?
@_state.configure
end
|
#has_router? ⇒ Boolean
34
35
36
|
# File 'lib/fluent/plugin/base.rb', line 34
def has_router?
false
end
|
#inspect ⇒ Object
121
122
123
124
125
126
127
|
# File 'lib/fluent/plugin/base.rb', line 121
def inspect
"#<%s:%014x>" % [self.class.name, '0x%014x' % (__id__ << 1)]
end
|
#shutdown ⇒ Object
65
66
67
68
|
# File 'lib/fluent/plugin/base.rb', line 65
def shutdown
@_state.shutdown = true
self
end
|
#shutdown? ⇒ Boolean
105
106
107
|
# File 'lib/fluent/plugin/base.rb', line 105
def shutdown?
@_state.shutdown
end
|
#start ⇒ Object
45
46
47
48
|
# File 'lib/fluent/plugin/base.rb', line 45
def start
@_state.start = true
self
end
|
#started? ⇒ Boolean
89
90
91
|
# File 'lib/fluent/plugin/base.rb', line 89
def started?
@_state.start
end
|
#stop ⇒ Object
55
56
57
58
|
# File 'lib/fluent/plugin/base.rb', line 55
def stop
@_state.stop = true
self
end
|
#stopped? ⇒ Boolean
97
98
99
|
# File 'lib/fluent/plugin/base.rb', line 97
def stopped?
@_state.stop
end
|
#terminate ⇒ Object
80
81
82
83
|
# File 'lib/fluent/plugin/base.rb', line 80
def terminate
@_state.terminate = true
self
end
|
#terminated? ⇒ Boolean
117
118
119
|
# File 'lib/fluent/plugin/base.rb', line 117
def terminated?
@_state.terminate
end
|