This repository has been archived by the owner on Feb 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
protocol.puml
56 lines (36 loc) · 1.51 KB
/
protocol.puml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
@startuml
title webnetes Resource Modification Protocol
actor "External System" as es
box Node 1
participant "Manager 1" as m1
participant "Worker 1" as w1
end box
box Node 2
participant "Manager 2" as m2
participant "Worker 2" as w2
end box
box Node 3
participant "Manager 3" as m3
participant "Worker 3" as w3
end box
es -> m1: modifyResources(nodeId: nid2, resources: [], remove: false)
m1 ->> m2: Modification(id: id1, resources: [], remove: false)
m2 -> w2: onModificationRequest(nodeId: nid1, resources: [], remove: false)
note over w2: Resources created
m2 -->> m1: ModificationConfirmation(id: id1, success: true)
es -> m1: modifyResources(nodeId: nid3, resources: [], remove: false)
m1 ->> m3: Modification(id: id2, resources: [], remove: false)
m3 -> w3: onModificationRequest(nodeId: nid1, resources: [], remove: false)
note over w3: Resources created
m3 -->> m1: ModificationConfirmation(id: id3, success: true)
es -> m1: modifyResources(nodeId: nid2, resources: [], remove: true)
m1 ->> m3: Modification(id: id3, resources: [], remove: true)
m3 -> w3: onModificationRequest(nodeId: nid1, resources: [], remove: true)
note over w3: Resources deleted
m3 -->> m1: ModificationConfirmation(id: id3, success: true)
es -> m1: modifyResources(nodeId: nid3, resources: [], remove: true)
m1 ->> m2: Modification(id: id4, resources: [], remove: true)
m2 -> w2: onModificationRequest(nodeId: nid1, resources: [], remove: true)
note over w2: Resources deleted
m2 -->> m1: ModificationConfirmation(id: id4, success: true)
@enduml