-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
586 additions
and
248 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
lib/karafka/web/pro/commanding/commands/partitions/pause.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# frozen_string_literal: true | ||
|
||
# This code is part of Karafka Pro, a commercial component not licensed under LGPL. | ||
# See LICENSE for details. | ||
|
||
module Karafka | ||
module Web | ||
module Pro | ||
module Commanding | ||
module Commands | ||
module Partitions | ||
class Pause < Base | ||
self.id = 'partitions.pause' | ||
|
||
def call | ||
Handlers::Partitions::Tracker.instance << params | ||
|
||
Dispatcher.acceptance(params, process_id, id) | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end |
29 changes: 29 additions & 0 deletions
29
lib/karafka/web/pro/commanding/commands/partitions/resume.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# frozen_string_literal: true | ||
|
||
# This code is part of Karafka Pro, a commercial component not licensed under LGPL. | ||
# See LICENSE for details. | ||
|
||
module Karafka | ||
module Web | ||
module Pro | ||
module Commanding | ||
module Commands | ||
module Partitions | ||
class Resume < Base | ||
self.id = 'partitions.resume' | ||
|
||
# Dispatches the seek request into the appropriate filter and indicates that the | ||
# seeking is in an acceptance state | ||
def call | ||
Handlers::Partitions::Tracker.instance << params | ||
|
||
# Publish back info on who did this with all the details for inspection | ||
Dispatcher.acceptance(params, process_id, id) | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.