Class: Fluent::KeepForwardOutput::NonHeartbeatNode

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/fluent/plugin/out_keep_forward.rb

Overview

Delegate to Node instance disabling heartbeat

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(node) ⇒ NonHeartbeatNode

Returns a new instance of NonHeartbeatNode.



97
98
99
# File 'lib/fluent/plugin/out_keep_forward.rb', line 97

def initialize(node)
  @node = node
end

Instance Attribute Details

#nodeObject (readonly)

Returns the value of attribute node.



93
94
95
# File 'lib/fluent/plugin/out_keep_forward.rb', line 93

def node
  @node
end

Instance Method Details

#available?Boolean

Returns:

  • (Boolean)


101
102
103
# File 'lib/fluent/plugin/out_keep_forward.rb', line 101

def available?
  true
end

#heartbeat(detect = true) ⇒ Object



109
110
111
# File 'lib/fluent/plugin/out_keep_forward.rb', line 109

def heartbeat(detect=true)
  true
end

#tickObject



105
106
107
# File 'lib/fluent/plugin/out_keep_forward.rb', line 105

def tick
  false
end