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.



107
108
109
# File 'lib/fluent/plugin/out_keep_forward.rb', line 107

def initialize(node)
  @node = node
end

Instance Attribute Details

#nodeObject (readonly)

Returns the value of attribute node.



103
104
105
# File 'lib/fluent/plugin/out_keep_forward.rb', line 103

def node
  @node
end

Instance Method Details

#available?Boolean

Returns:

  • (Boolean)


111
112
113
# File 'lib/fluent/plugin/out_keep_forward.rb', line 111

def available?
  true
end

#heartbeat(detect = true) ⇒ Object



119
120
121
# File 'lib/fluent/plugin/out_keep_forward.rb', line 119

def heartbeat(detect=true)
  true
end

#tickObject



115
116
117
# File 'lib/fluent/plugin/out_keep_forward.rb', line 115

def tick
  false
end