Class: Karafka::Web::Pro::Ui::Controllers::Topics::ReplicationsController

Inherits:
BaseController show all
Defined in:
lib/karafka/web/pro/ui/controllers/topics/replications_controller.rb

Overview

Controller responsible for viewing and managing topics replication details

Constant Summary

Constants inherited from Ui::Controllers::BaseController

Ui::Controllers::BaseController::Models

Instance Attribute Summary

Attributes inherited from Ui::Controllers::BaseController

#params, #session

Instance Method Summary collapse

Methods inherited from Ui::Controllers::BaseController

#cache, #initialize

Methods included from Ui::Controllers::Requests::Hookable

included, #run_after_hooks, #run_before_hooks

Constructor Details

This class inherits a constructor from Karafka::Web::Ui::Controllers::BaseController

Instance Method Details

#show(topic_name) ⇒ Object

Displays requested topic replication details

Parameters:

  • topic_name (String)

    topic we’re interested in



24
25
26
27
28
29
30
# File 'lib/karafka/web/pro/ui/controllers/topics/replications_controller.rb', line 24

def show(topic_name)
  @topic = Models::Topic.find(topic_name)

  @partitions = refine(@topic[:partitions])

  render
end