Skip to content

Commit

Permalink
Update monolith-selection-internals-class to reflect code. (#388)
Browse files Browse the repository at this point in the history
- Closes #387
  • Loading branch information
Victor-M-Giraldo authored Apr 16, 2024
1 parent a168b14 commit 5607be1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions figures/monolith-selection-internals-class.mmd
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@ classDiagram
direction TB

class MinRoomsSelector
class HashRingSelector

class MonolithSelection {
<<trait>>
select_monolith(monolith: Vec~&'a BalancerMonolith~) Result~&BalancerMonolith~
random_monolith(monolith: Vec~&'a BalancerMonolith~) Result~&BalancerMonolith~
select_monolith(room: RoomName, monolith: Vec~BalancerMonolith~) Result~&BalancerMonolith~
random_monolith(room: RoomName, monolith: Vec~BalancerMonolith~) Result~&BalancerMonolith~

}

MonolithSelection <|-- MinRoomsSelector : implements
MonolithSelection <|-- HashRingSelector : implements

class BalancerContext {
clients: HashMap~ClientId-BalancerClient~,
Expand All @@ -20,4 +22,4 @@ classDiagram
monolith_selection: Box~MonolithSelection~
}

BalancerContext "1" --> "1" MonolithSelection : calls
BalancerContext "1" --> "1" MonolithSelection : calls
Loading

0 comments on commit 5607be1

Please sign in to comment.