Sha256: 5db5f6288a2d0cb43cf5b351829517e11815a71241a8b528e99559dad430df92

Contents?: true

Size: 589 Bytes

Versions: 47

Compression:

Stored size: 589 Bytes

Contents

# encoding: utf-8
require "logstash/pipeline_action/base"

module LogStash module PipelineAction
  class Stop < Base
    attr_reader :pipeline_id

    def initialize(pipeline_id)
      @pipeline_id = pipeline_id
    end

    def execute(agent, pipelines_registry)
      pipelines_registry.terminate_pipeline(pipeline_id) do |pipeline|
        pipeline.shutdown { LogStash::ShutdownWatcher.start(pipeline) }
        pipeline.thread.join
      end

      LogStash::ConvergeResult::SuccessfulAction.new
    end

    def to_s
      "PipelineAction::Stop<#{pipeline_id}>"
    end
  end
end end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
logstash-core-6.8.23-java lib/logstash/pipeline_action/stop.rb
logstash-core-6.8.22-java lib/logstash/pipeline_action/stop.rb
logstash-core-6.8.21-java lib/logstash/pipeline_action/stop.rb
logstash-core-6.8.20-java lib/logstash/pipeline_action/stop.rb
logstash-core-6.8.19-java lib/logstash/pipeline_action/stop.rb
logstash-core-6.8.18-java lib/logstash/pipeline_action/stop.rb
logstash-core-6.8.17-java lib/logstash/pipeline_action/stop.rb
logstash-core-6.8.16-java lib/logstash/pipeline_action/stop.rb
logstash-core-6.8.15-java lib/logstash/pipeline_action/stop.rb
logstash-core-6.8.14-java lib/logstash/pipeline_action/stop.rb
logstash-core-6.8.13-java lib/logstash/pipeline_action/stop.rb
logstash-core-6.8.12-java lib/logstash/pipeline_action/stop.rb
logstash-core-6.8.11-java lib/logstash/pipeline_action/stop.rb
logstash-core-6.8.10-java lib/logstash/pipeline_action/stop.rb
logstash-core-6.8.9-java lib/logstash/pipeline_action/stop.rb
logstash-core-6.8.8-java lib/logstash/pipeline_action/stop.rb
logstash-core-6.8.7-java lib/logstash/pipeline_action/stop.rb
logstash-core-7.5.2-java lib/logstash/pipeline_action/stop.rb
logstash-core-7.5.1-java lib/logstash/pipeline_action/stop.rb
logstash-core-6.8.6-java lib/logstash/pipeline_action/stop.rb