-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sequence diagram for database listener interface (#35)
- Loading branch information
1 parent
e6054d5
commit a0e1d90
Showing
4 changed files
with
111 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Database Listener for Locust/Grasshopper Design Documentation | ||
|
||
## Sequence Diagram of how listeners are currently working within the framework | ||
|
||
![Sequence Diagram](database_listeners_sequence_diagram.svg) |
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,48 @@ | ||
# Grasshopper (Locust) Database Listeners | ||
|
||
@startuml | ||
actor GrasshopperTest | ||
box "Grasshopper" #LightBlue | ||
boundary LaunchTest | ||
entity Grasshopper | ||
entity GrasshopperListeners | ||
end box | ||
entity LocustDBListener | ||
boundary DbClient | ||
database Database | ||
boundary Locust | ||
|
||
GrasshopperTest -> LaunchTest : run test | ||
activate LaunchTest | ||
|
||
LaunchTest -> Grasshopper : create new grasshopper object | ||
activate Grasshopper | ||
Grasshopper --> LaunchTest : grasshopper object | ||
|
||
LaunchTest -> GrasshopperListeners : create new listeners object | ||
activate GrasshopperListeners | ||
|
||
GrasshopperListeners -> LocustDBListener : create new listener object | ||
activate LocustDBListener | ||
LocustDBListener -> DbClient : create new client object | ||
activate DbClient | ||
DbClient -> Database : connect | ||
DbClient --> LocustDBListener : new client object | ||
deactivate DbClient | ||
LocustDBListener ->> Locust : register listeners on locust events | ||
LocustDBListener --> GrasshopperListeners : new listener object | ||
deactivate LocustDBListener | ||
|
||
GrasshopperListeners --> LaunchTest : new listeners object | ||
deactivate GrasshopperListeners | ||
|
||
|
||
deactivate Grasshopper | ||
deactivate LaunchTest | ||
|
||
GrasshopperTest -> Locust : send http request (via API library, wich calls the Locust request method) | ||
Locust ->> LocustDBListener : call listener on request event | ||
LocustDBListener ->> DbClient : add metric for the request | ||
DbClient ->> Database : post data point | ||
|
||
@enduml |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.