[messaging infrastructure] convert uml diagrams

This commit is contained in:
JohnHake 2020-05-27 17:36:38 -07:00
parent 7eddca71d4
commit d0dccce662
15 changed files with 151 additions and 0 deletions

View File

@ -0,0 +1,17 @@
' https://plantuml-documentation.readthedocs.io/en/latest/formatting/all-skin-params.html
skinparam monochrome true
skinparam shadowing true
skinparam DefaultFontName Roboto
skinparam DefaultMonospacedFontName "Roboto Mono"
' https://material.io/design/typography/the-type-system.html
' Body 2
skinparam DefaultFontSize 14
skinparam DefaultTextAlignment center
skinparam NoteTextAlignment left
' default 1.5
skinparam ActivityBorderThickness 1
' default 2
skinparam PartitionBorderThickness 1.5

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 8.6 KiB

View File

@ -0,0 +1,18 @@
@startuml
!include ../../buildUML/jb-plantuml-theme.puml
hide empty members
hide circle
top to bottom direction
' Define the objects in the diagram
class MessageBus
class MessageBusConnection
class "Default Handler" as DH
class "(Topic-Handler)" as TH
' Define the class relationships
MessageBus "1" o-- "*" MessageBusConnection
MessageBusConnection o-- "0..1" DH
MessageBusConnection *-- "*" TH
@enduml

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 7.1 KiB

View File

@ -0,0 +1,23 @@
@startuml
!include ../../buildUML/jb-plantuml-theme.puml
hide empty members
hide circle
top to bottom direction
' Define the objects in the diagram
class "bus" as B
class "connection1" as C1
class "connection2" as C2
class "topic-handler1" as TH1
class "topic-handler2" as TH2
' Define the class relationships
B *-- C1
B *-- C2
C1 *-- TH1
C2 *-- TH2
@enduml

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View File

@ -0,0 +1,31 @@
@startuml
!include ../../buildUML/jb-plantuml-theme.puml
hide empty members
hide circle
top to bottom direction
' Define the objects in the diagram
class "application bus" as AB
class "project bus" as PB
class "connection1" as C1
class "connection2" as C2
class "connection3" as C3
class "topic1-handler1" as T1H1
class "topic1-handler2" as T1H2
class "topic1-handler3" as T1H3
' Define the class relationships
AB o-- PB
AB *-- C1
PB *-- C2
PB *-- C3
C1 *-- T1H1
C2 *-- T1H2
C3 *-- T1H3
@enduml

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 13 KiB

View File

@ -0,0 +1,11 @@
@startuml
!include ../../buildUML/jb-plantuml-theme.puml
left to right direction
' Define the activity
(*) --> "Get message\nbus reference"
--> "Ask the bus\nfor a particular\ntopic's publisher"
--> "Call target\nmethod on\npublisher"
--> "Messaging\ncalls the\nsame method\non target\nhandlers"
--> (*)
@enduml

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

View File

@ -0,0 +1,15 @@
@startuml
!include ../../buildUML/jb-plantuml-theme.puml
hide empty members
hide circle
left to right direction
' Define the objects in the diagram
class "application bus" as AB
class "project bus" as PB
class "module bus" as MB
' Define the class relationships
AB o-- "*" PB
PB o-- "*" MB
@enduml

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View File

@ -0,0 +1,15 @@
@startuml
!include ../../buildUML/jb-plantuml-theme.puml
left to right direction
' Define the activity
(*) --> if "" then
--> [don't have connection] "Get message\nbus reference"
--> "Create connection\nto the bus"
--> "Subscribe"
else
--> [have connection] "Subscribe"
endif
--> (*)
@enduml

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 8.2 KiB

View File

@ -0,0 +1,21 @@
@startuml
!include ../../buildUML/jb-plantuml-theme.puml
skinparam classAttributeIconSize 0
hide empty fields
hide empty methods
left to right direction
' Define the objects in the diagram
class "[[https://github.com/JetBrains/intellij-community/blob/master/platform/extensions/src/com/intellij/util/messages/Topic.java{com.intellij.util.messages.Topic} com.intellij.util.messages.Topic]]" as Topic {
+displayName()
+broadcastDirection()
}
class ListenerClass {
+method1()
{method} ...
+methodN()
}
' Define the class relationships
Topic o--> "1 " ListenerClass
@enduml