@aj-shadow/z-abs-complayer-visualizationsequencediagram-client 0.0.0-aj-beta.221

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/.gitattributes +26 -0
  2. package/LICENSE.txt +96 -0
  3. package/README.md +5 -0
  4. package/npm-shrinkwrap.json +13 -0
  5. package/package.json +10 -0
  6. package/project/client/_build/Bundle-CompLayer-VisualizationSequenceDiagram-client.bld +36 -0
  7. package/project/client/_build/Client-CompLayer-VisualizationSequenceDiagram-client-jsx.bld +10 -0
  8. package/project/client/_build/Client-CompLayer-VisualizationSequenceDiagram-client.bld +10 -0
  9. package/project/client/_build/Client-css-CompLayer-VisualizationSequenceDiagram-bundle.bld +9 -0
  10. package/project/client/_build/z-abs-complayer-visualizationsequencediagram-client.prj +36 -0
  11. package/project/client/content-decoders/content-decoder.js +22 -0
  12. package/project/client/content-decoders/image-decoder.js +98 -0
  13. package/project/client/content-decoders/text-decoder.js +65 -0
  14. package/project/client/css/seq-dia-buttons.css +40 -0
  15. package/project/client/css/seq-dia-connection-closed.css +11 -0
  16. package/project/client/css/seq-dia-connection-closing.css +11 -0
  17. package/project/client/css/seq-dia-connection-connected-not.css +16 -0
  18. package/project/client/css/seq-dia-connection-connected.css +5 -0
  19. package/project/client/css/seq-dia-connection-connecting.css +5 -0
  20. package/project/client/css/seq-dia-connection-half-closed.css +11 -0
  21. package/project/client/css/seq-dia-connection-half-closing.css +11 -0
  22. package/project/client/css/seq-dia-connection-upgrading.css +5 -0
  23. package/project/client/css/seq-dia-connection.css +27 -0
  24. package/project/client/css/seq-dia-event-gui.css +86 -0
  25. package/project/client/css/seq-dia-event-state.css +13 -0
  26. package/project/client/css/seq-dia-event.css +55 -0
  27. package/project/client/css/seq-dia-inner.css +246 -0
  28. package/project/client/css/seq-dia-ip-address-name.css +14 -0
  29. package/project/client/css/seq-dia-phase.css +90 -0
  30. package/project/client/css/seq-dia-protocol.css +119 -0
  31. package/project/client/css/seq-dia-receive.css +5 -0
  32. package/project/client/css/seq-dia-send.css +5 -0
  33. package/project/client/css/seq-dia-sequence-diagram.css +10 -0
  34. package/project/client/css/seq-dia-server-accepted.css +5 -0
  35. package/project/client/css/seq-dia-server-accepting.css +5 -0
  36. package/project/client/css/seq-dia-server-attached.css +5 -0
  37. package/project/client/css/seq-dia-server-detached.css +5 -0
  38. package/project/client/css/seq-dia-server-not-started.css +5 -0
  39. package/project/client/css/seq-dia-server-started.css +5 -0
  40. package/project/client/css/seq-dia-server-starting.css +5 -0
  41. package/project/client/css/seq-dia-server-stopped.css +5 -0
  42. package/project/client/css/seq-dia-server-stopping.css +5 -0
  43. package/project/client/css/seq-dia-stack.css +51 -0
  44. package/project/client/css/seq-dia-state.css +188 -0
  45. package/project/client/css/seq-dia-template-msg.css +0 -0
  46. package/project/client/css/seq-dia-test-case-end.css +45 -0
  47. package/project/client/css/seq-dia-test-case-header.css +20 -0
  48. package/project/client/css/seq-dia-test-case-start.css +17 -0
  49. package/project/client/data/data-seq-dia-client-connected-not.js +69 -0
  50. package/project/client/data/data-seq-dia-client-connected.js +78 -0
  51. package/project/client/data/data-seq-dia-client-connecting.js +84 -0
  52. package/project/client/data/data-seq-dia-client-dns-failure.js +29 -0
  53. package/project/client/data/data-seq-dia-connection-closed.js +73 -0
  54. package/project/client/data/data-seq-dia-connection-closing.js +71 -0
  55. package/project/client/data/data-seq-dia-connection-half-closed.js +73 -0
  56. package/project/client/data/data-seq-dia-connection-half-closing.js +71 -0
  57. package/project/client/data/data-seq-dia-connection-upgrading.js +32 -0
  58. package/project/client/data/data-seq-dia-gui-result.js +48 -0
  59. package/project/client/data/data-seq-dia-gui.js +78 -0
  60. package/project/client/data/data-seq-dia-phase-end-result.js +31 -0
  61. package/project/client/data/data-seq-dia-phase-end.js +57 -0
  62. package/project/client/data/data-seq-dia-phase-start-result.js +30 -0
  63. package/project/client/data/data-seq-dia-phase-start.js +57 -0
  64. package/project/client/data/data-seq-dia-protocol-single-node-result.js +61 -0
  65. package/project/client/data/data-seq-dia-protocol-single-node.js +81 -0
  66. package/project/client/data/data-seq-dia-protocol-two-nodes-result.js +91 -0
  67. package/project/client/data/data-seq-dia-protocol-two-nodes.js +64 -0
  68. package/project/client/data/data-seq-dia-receive.js +90 -0
  69. package/project/client/data/data-seq-dia-send.js +90 -0
  70. package/project/client/data/data-seq-dia-server-accepted.js +70 -0
  71. package/project/client/data/data-seq-dia-server-accepting.js +61 -0
  72. package/project/client/data/data-seq-dia-server-attached.js +61 -0
  73. package/project/client/data/data-seq-dia-server-detached.js +61 -0
  74. package/project/client/data/data-seq-dia-server-not-started.js +61 -0
  75. package/project/client/data/data-seq-dia-server-started.js +61 -0
  76. package/project/client/data/data-seq-dia-server-starting.js +61 -0
  77. package/project/client/data/data-seq-dia-server-stopped.js +61 -0
  78. package/project/client/data/data-seq-dia-server-stopping.js +61 -0
  79. package/project/client/data/data-seq-dia-stack-result.js +40 -0
  80. package/project/client/data/data-seq-dia-stack.js +73 -0
  81. package/project/client/data/data-seq-dia-state-result.js +38 -0
  82. package/project/client/data/data-seq-dia-state.js +70 -0
  83. package/project/client/data/data-seq-dia-test-case-end-result.js +30 -0
  84. package/project/client/data/data-seq-dia-test-case-end.js +49 -0
  85. package/project/client/data/data-seq-dia-test-case-header-result.js +30 -0
  86. package/project/client/data/data-seq-dia-test-case-header.js +49 -0
  87. package/project/client/data/data-seq-dia-test-case-start-result.js +30 -0
  88. package/project/client/data/data-seq-dia-test-case-start.js +50 -0
  89. package/project/client/logic/analyze.js +41 -0
  90. package/project/client/logic/cache-array.js +45 -0
  91. package/project/client/logic/cache-map-double.js +64 -0
  92. package/project/client/logic/cache-map-shared.js +73 -0
  93. package/project/client/logic/cache-map.js +48 -0
  94. package/project/client/logic/cache-type-connection-closed.js +56 -0
  95. package/project/client/logic/cache-type-connection-closing.js +56 -0
  96. package/project/client/logic/cache-type-connection-connected.js +58 -0
  97. package/project/client/logic/cache-type-connection-connecting.js +58 -0
  98. package/project/client/logic/cache-type-connection-half-closed.js +56 -0
  99. package/project/client/logic/cache-type-connection-half-closing.js +56 -0
  100. package/project/client/logic/cache-type-connection-not-connected.js +58 -0
  101. package/project/client/logic/cache-type-phase-end.js +49 -0
  102. package/project/client/logic/cache-type-phase-start.js +49 -0
  103. package/project/client/logic/cache-type-receive.js +58 -0
  104. package/project/client/logic/cache-type-send.js +58 -0
  105. package/project/client/logic/cache-type-server-accepted.js +36 -0
  106. package/project/client/logic/cache-type-server-accepting.js +64 -0
  107. package/project/client/logic/cache-type-server-attached.js +64 -0
  108. package/project/client/logic/cache-type-server-detached.js +55 -0
  109. package/project/client/logic/cache-type-server-not-started.js +64 -0
  110. package/project/client/logic/cache-type-server-started.js +66 -0
  111. package/project/client/logic/cache-type-server-starting.js +53 -0
  112. package/project/client/logic/cache-type-server-stopped.js +64 -0
  113. package/project/client/logic/cache-type-server-stopping.js +64 -0
  114. package/project/client/logic/cache-type-stack.js +64 -0
  115. package/project/client/logic/cache-type-state.js +53 -0
  116. package/project/client/logic/cache-type-test-case-end.js +30 -0
  117. package/project/client/logic/cache-type-test-case-header.js +30 -0
  118. package/project/client/logic/cache-type-test-case-start.js +30 -0
  119. package/project/client/logic/cache.js +202 -0
  120. package/project/client/logic/connection-data.js +60 -0
  121. package/project/client/logic/const.js +207 -0
  122. package/project/client/logic/content-cache.js +23 -0
  123. package/project/client/logic/data-log-row.js +24 -0
  124. package/project/client/logic/filter-size.js +81 -0
  125. package/project/client/logic/seq-dia-filter.js +496 -0
  126. package/project/client/logic/shared-template-data.js +62 -0
  127. package/project/client/react-component/sequence-diagram.jsx +387 -0
  128. package/project/client/templates/components/component-seq-dia-arrow.js +26 -0
  129. package/project/client/templates/components/component-seq-dia-caption.js +44 -0
  130. package/project/client/templates/components/component-seq-dia-envelope.js +188 -0
  131. package/project/client/templates/components/component-seq-dia-event-info.js +108 -0
  132. package/project/client/templates/components/component-seq-dia-event-row.js +147 -0
  133. package/project/client/templates/components/component-seq-dia-protocol.js +314 -0
  134. package/project/client/templates/components/component-seq-dia-shared.js +58 -0
  135. package/project/client/templates/template-seq-dia-client-connected-not.js +67 -0
  136. package/project/client/templates/template-seq-dia-client-connected.js +67 -0
  137. package/project/client/templates/template-seq-dia-client-connecting.js +71 -0
  138. package/project/client/templates/template-seq-dia-client-dns-failure.js +82 -0
  139. package/project/client/templates/template-seq-dia-connection-closed.js +70 -0
  140. package/project/client/templates/template-seq-dia-connection-closing.js +72 -0
  141. package/project/client/templates/template-seq-dia-connection-half-closed.js +70 -0
  142. package/project/client/templates/template-seq-dia-connection-half-closing.js +80 -0
  143. package/project/client/templates/template-seq-dia-connection-upgraded-not.js +82 -0
  144. package/project/client/templates/template-seq-dia-connection-upgraded.js +57 -0
  145. package/project/client/templates/template-seq-dia-connection-upgrading.js +57 -0
  146. package/project/client/templates/template-seq-dia-gui.js +250 -0
  147. package/project/client/templates/template-seq-dia-msg.js +500 -0
  148. package/project/client/templates/template-seq-dia-phase-end.js +59 -0
  149. package/project/client/templates/template-seq-dia-phase-start.js +59 -0
  150. package/project/client/templates/template-seq-dia-protocol-base.js +107 -0
  151. package/project/client/templates/template-seq-dia-receive.js +119 -0
  152. package/project/client/templates/template-seq-dia-send.js +121 -0
  153. package/project/client/templates/template-seq-dia-server-accepted.js +61 -0
  154. package/project/client/templates/template-seq-dia-server-accepting.js +45 -0
  155. package/project/client/templates/template-seq-dia-server-attached.js +72 -0
  156. package/project/client/templates/template-seq-dia-server-detached.js +60 -0
  157. package/project/client/templates/template-seq-dia-server-not-started.js +77 -0
  158. package/project/client/templates/template-seq-dia-server-started.js +49 -0
  159. package/project/client/templates/template-seq-dia-server-starting.js +49 -0
  160. package/project/client/templates/template-seq-dia-server-stopped.js +45 -0
  161. package/project/client/templates/template-seq-dia-server-stopping.js +45 -0
  162. package/project/client/templates/template-seq-dia-stack.js +195 -0
  163. package/project/client/templates/template-seq-dia-state.js +118 -0
  164. package/project/client/templates/template-seq-dia-test-case-end.js +73 -0
  165. package/project/client/templates/template-seq-dia-test-case-header.js +70 -0
  166. package/project/client/templates/template-seq-dia-test-case-start.js +68 -0
  167. package/project/z-abs-complayer-visualizationsequencediagram-client.tree +171 -0
@@ -0,0 +1,51 @@
1
+
2
+ div.seq_dia_stack{
3
+ position:relative;
4
+ height:10px;
5
+ }
6
+
7
+
8
+ text.stack_seq_dia_svg{
9
+ color:Navy;
10
+ font-weight:bold;
11
+ font-size:10px;
12
+ text-anchor:end;
13
+ }
14
+
15
+ rect.stack_seq_dia_svg{
16
+ stroke:Navy;
17
+ stroke-width:0.25;
18
+ fill:white;
19
+ }
20
+
21
+ line.stack_seq_dia_svg{
22
+ stroke:Navy;
23
+ stroke-width:0.5;
24
+ }
25
+
26
+ rect.stack_seq_dia_bg{
27
+ stroke:Black;
28
+ stroke-width:0.25;
29
+ fill:white;
30
+ }
31
+
32
+ rect.stack_seq_dia_conn{
33
+ fill:white;
34
+ stroke:black;
35
+ stroke-width:0.5;
36
+ }
37
+
38
+ line.stack_seq_dia_conn{
39
+ stroke:Black;
40
+ stroke-width:1;
41
+ }
42
+
43
+ text.stack_seq_dia_stack{
44
+ font-weight:bold;
45
+ font-size:9px;
46
+ text-anchor:start;
47
+ }
48
+
49
+ circle.stack_seq_dia_conn{
50
+ stroke-width:0!important;
51
+ }
@@ -0,0 +1,188 @@
1
+
2
+ div.seq_dia_state{
3
+ position:relative;
4
+ height:10px;
5
+ }
6
+
7
+ line.seq_dia_state_line{
8
+ stroke:white;
9
+ stroke-width:2px;
10
+ }
11
+
12
+ text.seq_dia_state_event_state_text{
13
+ font-weight:bold;
14
+ font-size:10px;
15
+ text-anchor:end;
16
+ fill:DarkSlateGray;
17
+ }
18
+
19
+ text.seq_dia_state_event_result_text{
20
+ font-weight:bold;
21
+ font-size:10px;
22
+ text-anchor:start;
23
+ }
24
+
25
+ rect.test_none_svg{
26
+ stroke-width:0.5;
27
+ stroke:#eeeeee;
28
+ fill:white;
29
+ }
30
+
31
+ circle.test_none_svg,
32
+ text.test_none_svg{
33
+ fill:#eeeeee;
34
+ }
35
+
36
+ line.test_none_svg{
37
+ stroke:#eeeeee;
38
+ }
39
+
40
+ rect.test_na_svg{
41
+ stroke-width:0.5;
42
+ stroke:#a0c986;
43
+ fill:#d0e9c6;
44
+ }
45
+
46
+ circle.test_na_svg,
47
+ text.test_na_svg{
48
+ fill:#a0c986;
49
+ }
50
+
51
+ line.test_na_svg{
52
+ stroke:#a0c986;
53
+ }
54
+
55
+ rect.test_nimpl_svg{
56
+ stroke-width:0.5;
57
+ stroke:#a0c986;
58
+ fill:#d0e9c6;
59
+ }
60
+
61
+ circle.test_nimpl_svg,
62
+ text.test_nimpl_svg{
63
+ fill:#a0c986;
64
+ }
65
+
66
+ line.test_nimpl_svg{
67
+ stroke:#a0c986;
68
+ }
69
+
70
+ rect.test_e_interrupt_svg{
71
+ stroke-width:0.5;
72
+ stroke:green;
73
+ fill:Honeydew;
74
+ }
75
+
76
+ circle.test_e_interrupt_svg,
77
+ text.test_e_interrupt_svg{
78
+ fill:green;
79
+ }
80
+
81
+ line.test_e_interrupt_svg{
82
+ stroke:green;
83
+ }
84
+
85
+ rect.test_success_svg{
86
+ stroke-width:0.5;
87
+ stroke:green;
88
+ fill:#d0e9c6;
89
+ }
90
+
91
+ circle.test_success_svg,
92
+ text.test_success_svg{
93
+ fill:green;
94
+ }
95
+
96
+ line.test_success_svg{
97
+ stroke:green;
98
+ }
99
+
100
+ rect.test_nexec_svg{
101
+ stroke-width:0.5;
102
+ stroke:#eeaa88;
103
+ fill:#ffddcc;
104
+ }
105
+
106
+ circle.test_nexec_svg,
107
+ text.test_nexec_svg{
108
+ fill:#eeaa88;
109
+ }
110
+
111
+ line.test_nexec_svg{
112
+ stroke:#eeaa88;
113
+ }
114
+
115
+ rect.test_interrupt_svg{
116
+ stroke-width:0.5;
117
+ stroke:orange;
118
+ fill:#ffddcc;
119
+ }
120
+
121
+ circle.test_interrupt_svg,
122
+ text.test_interrupt_svg{
123
+ fill:orange;
124
+ }
125
+
126
+ line.test_interrupt_svg{
127
+ stroke:orange;
128
+ }
129
+
130
+ rect.test_error_svg{
131
+ stroke-width:0.5;
132
+ stroke:orange;
133
+ fill:#ffddcc;
134
+ }
135
+
136
+ circle.test_error_svg,
137
+ text.test_error_svg{
138
+ fill:orange;
139
+ }
140
+
141
+ line.test_error_svg{
142
+ stroke:orange;
143
+ }
144
+
145
+ rect.test_failure_svg{
146
+ stroke-width:0.5;
147
+ stroke:red;
148
+ fill:#ffbbbb;
149
+ }
150
+
151
+ circle.test_failure_svg,
152
+ text.test_failure_svg{
153
+ fill:red;
154
+ }
155
+
156
+ line.test_failure_svg{
157
+ stroke:red;
158
+ }
159
+
160
+ rect.test_timeout_svg{
161
+ stroke-width:0.5;
162
+ stroke:blue;
163
+ fill:LightBlue;
164
+ }
165
+
166
+ circle.test_timeout_svg,
167
+ text.test_timeout_svg{
168
+ fill:blue;
169
+ }
170
+
171
+ line.test_timeout_svg{
172
+ stroke:blue;
173
+ }
174
+
175
+ rect.test_reflection_svg{
176
+ stroke-width:0.5;
177
+ stroke:orange;
178
+ fill:#ffddcc;
179
+ }
180
+
181
+ circle.test_reflection_svg,
182
+ text.test_reflection_svg{
183
+ fill:orange;
184
+ }
185
+
186
+ line.test_reflection_svg{
187
+ stroke:orange;
188
+ }
File without changes
@@ -0,0 +1,45 @@
1
+
2
+ div.seq_dia_test_case_end{
3
+ position:relative;
4
+ background-color:#f5f5f5;
5
+ min-width:100%;
6
+ white-space:nowrap;
7
+ border:0.5px solid black;
8
+ border-radius:3px;
9
+ height:20px;
10
+ }
11
+
12
+ p.seq_dia_test_case_end_text{
13
+ position:absolute;
14
+ left:4px;
15
+ margin:0px;
16
+ height:18px;
17
+ font-weight:bold;
18
+ }
19
+
20
+ div.seq_dia_test_case_end_result{
21
+ position:absolute;
22
+ left:140px;
23
+ top:1px;
24
+ height:16px;
25
+ border:1px solid rgb(51, 122, 183);
26
+ border-radius:2px;
27
+ }
28
+
29
+ p.seq_dia_test_case_end_result{
30
+ display:block;
31
+ position:relative;
32
+ margin:0px;
33
+ padding:0px 2px;
34
+ height:16px;
35
+ line-height:14px;
36
+ font-weight:bold;
37
+ }
38
+
39
+ p.seq_dia_test_case_end_duration{
40
+ position:absolute;
41
+ left:232px;
42
+ margin:0px;
43
+ height:18px;
44
+ font-weight:bold;
45
+ }
@@ -0,0 +1,20 @@
1
+
2
+ div.seq_dia_test_case_header{
3
+ position:relative;
4
+ height:30px;
5
+ }
6
+
7
+ div.test_case_header_text{
8
+ height:22px;
9
+ text-align:center;
10
+ padding-top:2px;
11
+ margin:0px -100%;
12
+ font-weight:bold;
13
+ }
14
+
15
+ div.test_case_header_line{
16
+ height:8px;
17
+ width:2px;
18
+ margin:auto;
19
+ background-color:black;
20
+ }
@@ -0,0 +1,17 @@
1
+
2
+ div.seq_dia_test_case_start{
3
+ position:relative;
4
+ background-color:#f5f5f5;
5
+ min-width:100%;
6
+ white-space:nowrap;
7
+ border:0.5px solid black;
8
+ border-radius:3px;
9
+ padding:0px 2px;
10
+ height:20px;
11
+ }
12
+
13
+ strong.seq_dia_test_case_start{
14
+ color:#337ab7;
15
+ margin-left:8px;
16
+ margin-right:2px;
17
+ }
@@ -0,0 +1,69 @@
1
+
2
+ 'use strict';
3
+
4
+ import Const from '../logic/const';
5
+ import DataSeqDiaProtocolTwoNodes from '../data/data-seq-dia-protocol-two-nodes';
6
+ import DataSeqDiaProtocolSingleNodeResult from '../data/data-seq-dia-protocol-single-node-result';
7
+ import DataScrollListNode from 'z-abs-complayer-visualizationinner-client/client/data/data-scroll-list-node';
8
+ import Decoder from 'z-abs-corelayer-client/client/communication/core-protocol/pooled-decoder';
9
+ import Encoder from 'z-abs-corelayer-client/client/communication/core-protocol/pooled-encoder';
10
+ import StoreBaseRealtime from 'z-abs-corelayer-client/client/store/store-base-realtime';
11
+ import LogDataAction from 'z-abs-funclayer-engine-cs/clientServer/log/log-data-action';
12
+
13
+
14
+ class DataSeqDiaClientConnectedNot {
15
+ static size = Encoder.Uint8Size + Encoder.Uint16Size;
16
+ static InfoNotConnected = 'Not Connected';
17
+ static encoder = null;
18
+ static decoder = null;
19
+
20
+ static init(pooledBuffers) {
21
+ DataSeqDiaClientConnectedNot.encoder = new Encoder(StoreBaseRealtime.textCache);
22
+ DataSeqDiaClientConnectedNot.decoder = new Decoder(StoreBaseRealtime.textCache);
23
+ DataSeqDiaClientConnectedNot.encoder.init(pooledBuffers);
24
+ DataSeqDiaClientConnectedNot.decoder.init(pooledBuffers);
25
+ }
26
+
27
+ static exit() {
28
+ DataSeqDiaClientConnectedNot.encoder = null;
29
+ DataSeqDiaClientConnectedNot.decoder = null;
30
+ }
31
+
32
+ static store(msg, sharedTemplateData) {
33
+ const encoder = DataSeqDiaClientConnectedNot.encoder;
34
+ const bufferData = encoder.createBuffer(DataSeqDiaClientConnectedNot.size + DataSeqDiaProtocolTwoNodes.getSize(sharedTemplateData, msg), DataScrollListNode.renderDataSize);
35
+ DataSeqDiaProtocolTwoNodes.store(encoder, msg, sharedTemplateData, Const.PART_LEFT);
36
+ encoder.setUint2_1(msg.data.local.actionId, true);
37
+ const remote = msg.data.remote;
38
+ encoder.setUint16(remote.actorIndex);
39
+ encoder.release();
40
+ return bufferData;
41
+ }
42
+
43
+ static restore(bufferData) {
44
+ const decoder = DataSeqDiaClientConnectedNot.decoder;
45
+ decoder.attach(bufferData, DataScrollListNode.renderDataSize);
46
+ const result = DataSeqDiaProtocolTwoNodes.restore(LogDataAction.NOT_CONNECTED, decoder, DataSeqDiaClientConnectedNot.InfoNotConnected);
47
+ const actionId = decoder.getUint2_1(true);
48
+ const remoteActorIndex = decoder.getUint16();
49
+ result.renderNodes = Const.RENDER_TWO_NODES;
50
+ result.protocolLine = Const.PROTOCOL_LINE_CONNECTION;
51
+ result.reverseDirection = remoteActorIndex < result.localActorIndex ? Const.REVERS_DIRECTION_TRUE : Const.REVERS_DIRECTION_FALSE;
52
+ #BUILD_DEBUG_START
53
+ Object.preventExtensions(result);
54
+ #BUILD_DEBUG_STOP
55
+ decoder.detach();
56
+ return result;
57
+ }
58
+
59
+ static restoreHeightData(bufferData) {
60
+ const decoder = DataSeqDiaClientConnectedNot.decoder;
61
+ decoder.attach(bufferData, DataScrollListNode.renderDataSize);
62
+ const height = decoder.getUint8();
63
+ decoder.detach();
64
+ return height;
65
+ }
66
+ }
67
+
68
+
69
+ module.exports = DataSeqDiaClientConnectedNot;
@@ -0,0 +1,78 @@
1
+
2
+ 'use strict';
3
+
4
+ import Const from '../logic/const';
5
+ import DataSeqDiaProtocolTwoNodes from '../data/data-seq-dia-protocol-two-nodes';
6
+ import DataScrollListNode from 'z-abs-complayer-visualizationinner-client/client/data/data-scroll-list-node';
7
+ import Decoder from 'z-abs-corelayer-client/client/communication/core-protocol/pooled-decoder';
8
+ import Encoder from 'z-abs-corelayer-client/client/communication/core-protocol/pooled-encoder';
9
+ import StoreBaseRealtime from 'z-abs-corelayer-client/client/store/store-base-realtime';
10
+ import LogDataAction from 'z-abs-funclayer-engine-cs/clientServer/log/log-data-action';
11
+
12
+
13
+ class DataSeqDiaClientConnected {
14
+ static size = Encoder.Uint8Size;
15
+ static InfoConnected = 'Connected';
16
+ static InfoMembershipAdded = 'Membership added';
17
+ static encoder = null;
18
+ static decoder = null;
19
+
20
+ static init(pooledBuffers) {
21
+ DataSeqDiaClientConnected.encoder = new Encoder(StoreBaseRealtime.textCache);
22
+ DataSeqDiaClientConnected.decoder = new Decoder(StoreBaseRealtime.textCache);
23
+ DataSeqDiaClientConnected.encoder.init(pooledBuffers);
24
+ DataSeqDiaClientConnected.decoder.init(pooledBuffers);
25
+ }
26
+
27
+ static exit() {
28
+ DataSeqDiaClientConnected.encoder = null;
29
+ DataSeqDiaClientConnected.decoder = null;
30
+ }
31
+
32
+ static store(msg, sharedTemplateData) {
33
+ const encoder = DataSeqDiaClientConnected.encoder;
34
+ const bufferData = encoder.createBuffer(DataSeqDiaClientConnected.size + DataSeqDiaProtocolTwoNodes.getSize(sharedTemplateData, msg), DataScrollListNode.renderDataSize);
35
+ DataSeqDiaProtocolTwoNodes.store(encoder, msg, sharedTemplateData, Const.PART_LEFT);
36
+ encoder.setUint2_0(msg.data.local.actionId, true);
37
+ encoder.release();
38
+ return bufferData;
39
+ }
40
+
41
+ static restore(bufferData) {
42
+ const decoder = DataSeqDiaClientConnected.decoder;
43
+ decoder.attach(bufferData, DataScrollListNode.renderDataSize);
44
+ const result = DataSeqDiaProtocolTwoNodes.restoreWithChoise(LogDataAction.CONNECTED, decoder, (transportType) => {
45
+ if(Const.TRANSPORT_TYPE_MC === transportType) {
46
+ return DataSeqDiaClientConnected.InfoMembershipAdded;
47
+ }
48
+ else {
49
+ return DataSeqDiaClientConnected.InfoConnected;
50
+ }
51
+ });
52
+ const actionId = decoder.getUint2_0(true);
53
+ if(1 === actionId) {
54
+ result.renderNodes = Const.RENDER_TWO_NODES;
55
+ result.protocolLine = Const.PROTOCOL_LINE_CONNECTION;
56
+ }
57
+ result.reverseDirection = result.remoteActorIndex < result.localActorIndex ? Const.REVERS_DIRECTION_TRUE : Const.REVERS_DIRECTION_FALSE;
58
+ result.extraData = {
59
+ isConnection: true
60
+ };
61
+ #BUILD_DEBUG_START
62
+ Object.preventExtensions(result);
63
+ #BUILD_DEBUG_STOP
64
+ decoder.detach();
65
+ return result;
66
+ }
67
+
68
+ static restoreHeightData(bufferData) {
69
+ const decoder = DataSeqDiaClientConnected.decoder;
70
+ decoder.attach(bufferData, DataScrollListNode.renderDataSize);
71
+ const height = decoder.getUint8();
72
+ decoder.detach();
73
+ return height;
74
+ }
75
+ }
76
+
77
+
78
+ module.exports = DataSeqDiaClientConnected;
@@ -0,0 +1,84 @@
1
+
2
+ 'use strict';
3
+
4
+ import Const from '../logic/const';
5
+ import DataSeqDiaProtocolSingleNode from '../data/data-seq-dia-protocol-single-node';
6
+ import DataSeqDiaProtocolSingleNodeResult from '../data/data-seq-dia-protocol-single-node-result';
7
+ import DataScrollListNode from 'z-abs-complayer-visualizationinner-client/client/data/data-scroll-list-node';
8
+ import Decoder from 'z-abs-corelayer-client/client/communication/core-protocol/pooled-decoder';
9
+ import Encoder from 'z-abs-corelayer-client/client/communication/core-protocol/pooled-encoder';
10
+ import StoreBaseRealtime from 'z-abs-corelayer-client/client/store/store-base-realtime';
11
+ import LogDataAction from 'z-abs-funclayer-engine-cs/clientServer/log/log-data-action';
12
+
13
+
14
+ class DataSeqDiaClientConnecting {
15
+ static size = Encoder.CtSize + Encoder.Uint16Size + Encoder.CtSize + Encoder.Uint16Size;
16
+ static InfoConnecting = 'Connecting';
17
+ static InfoAddMembership = 'Add membership';
18
+ static encoder = null;
19
+ static decoder = null;
20
+
21
+ static init(pooledBuffers) {
22
+ DataSeqDiaClientConnecting.encoder = new Encoder(StoreBaseRealtime.textCache);
23
+ DataSeqDiaClientConnecting.decoder = new Decoder(StoreBaseRealtime.textCache);
24
+ DataSeqDiaClientConnecting.encoder.init(pooledBuffers);
25
+ DataSeqDiaClientConnecting.decoder.init(pooledBuffers);
26
+ }
27
+
28
+ static exit() {
29
+ DataSeqDiaClientConnecting.encoder = null;
30
+ DataSeqDiaClientConnecting.decoder = null;
31
+ }
32
+
33
+ static store(msg, sharedTemplateData) {
34
+ const encoder = DataSeqDiaClientConnecting.encoder;
35
+ const bufferData = encoder.createBuffer(DataSeqDiaClientConnecting.size + DataSeqDiaProtocolSingleNode.getSize(msg), DataScrollListNode.renderDataSize);
36
+ DataSeqDiaProtocolSingleNode.store(encoder, msg, sharedTemplateData, Const.PART_LEFT);
37
+ const remote = msg.data.remote;
38
+ encoder.setCtStringInternal(remote.host);
39
+ encoder.setUint16(remote.port);
40
+ encoder.setCtStringInternal(remote.name);
41
+ encoder.setUint16(remote.actorIndex);
42
+ encoder.release();
43
+ return bufferData;
44
+ }
45
+
46
+ static restore(bufferData) {
47
+ const decoder = DataSeqDiaClientConnecting.decoder;
48
+ decoder.attach(bufferData, DataScrollListNode.renderDataSize);
49
+ const result = DataSeqDiaProtocolSingleNode.restoreWithChoise(LogDataAction.CONNECTING, decoder, (transportType) => {
50
+ if(Const.TRANSPORT_TYPE_MC === transportType) {
51
+ return DataSeqDiaClientConnecting.InfoAddMembership;
52
+ }
53
+ else {
54
+ return DataSeqDiaClientConnecting.InfoConnecting;
55
+ }
56
+ }, DataSeqDiaProtocolSingleNodeResult);
57
+ const host = decoder.getCtString();
58
+ const port = decoder.getUint16();
59
+ const remoteName = decoder.getCtString();
60
+ const remoteActorIndex = decoder.getUint16();
61
+ const remoteIp = `${host}:${port}`;
62
+ result.extraData = {
63
+ remoteName,
64
+ remoteIp
65
+ };
66
+ result.reverseDirection = remoteActorIndex < result.localActorIndex ? Const.REVERS_DIRECTION_TRUE : Const.REVERS_DIRECTION_FALSE;
67
+ #BUILD_DEBUG_START
68
+ Object.preventExtensions(result);
69
+ #BUILD_DEBUG_STOP
70
+ decoder.detach();
71
+ return result;
72
+ }
73
+
74
+ static restoreHeightData(bufferData) {
75
+ const decoder = DataSeqDiaClientConnecting.decoder;
76
+ decoder.attach(bufferData, DataScrollListNode.renderDataSize);
77
+ const height = decoder.getUint8();
78
+ decoder.detach();
79
+ return height;
80
+ }
81
+ }
82
+
83
+
84
+ module.exports = DataSeqDiaClientConnecting;
@@ -0,0 +1,29 @@
1
+
2
+ 'use strict';
3
+
4
+ import LogDataAction from 'z-abs-funclayer-engine-cs/clientServer/log/log-data-action';
5
+
6
+
7
+ class DataSeqDiaClientDnsFailure {
8
+ static appDeserializer = null;
9
+
10
+ static init(appDeserializer) {
11
+ DataSeqDiaClientDnsFailure.appDeserializer = appDeserializer;
12
+ }
13
+
14
+ constructor(sharedTemplateData, dataTestCase) {
15
+ const data = sharedTemplateData.dataLogRow.logRow.data;
16
+
17
+ this.actorIndex = sharedTemplateData.dataLogRow.actorIndex;
18
+ this.dataTestCase = dataTestCase;
19
+ this.dstUrl = data.dstUrl;
20
+ }
21
+
22
+ static restoreHeightData(buffer) {
23
+ const decoder = new Decoder(null, buffer);
24
+ return decoder.getUint8();
25
+ }
26
+ }
27
+
28
+
29
+ module.exports = DataSeqDiaClientDnsFailure;
@@ -0,0 +1,73 @@
1
+
2
+ 'use strict';
3
+
4
+ import Const from '../logic/const';
5
+ import DataSeqDiaProtocolTwoNodes from '../data/data-seq-dia-protocol-two-nodes';
6
+ import DataScrollListNode from 'z-abs-complayer-visualizationinner-client/client/data/data-scroll-list-node';
7
+ import Decoder from 'z-abs-corelayer-client/client/communication/core-protocol/pooled-decoder';
8
+ import Encoder from 'z-abs-corelayer-client/client/communication/core-protocol/pooled-encoder';
9
+ import StoreBaseRealtime from 'z-abs-corelayer-client/client/store/store-base-realtime';
10
+ import LogDataAction from 'z-abs-funclayer-engine-cs/clientServer/log/log-data-action';
11
+
12
+
13
+ class DataSeqDiaConnectionClosed {
14
+ static size = Encoder.Uint8Size + Encoder.Uint16Size;
15
+ static InfoClosed = 'Closed';
16
+ static encoder = null;
17
+ static decoder = null;
18
+
19
+ static init(pooledBuffers) {
20
+ DataSeqDiaConnectionClosed.encoder = new Encoder(StoreBaseRealtime.textCache);
21
+ DataSeqDiaConnectionClosed.decoder = new Decoder(StoreBaseRealtime.textCache);
22
+ DataSeqDiaConnectionClosed.encoder.init(pooledBuffers);
23
+ DataSeqDiaConnectionClosed.decoder.init(pooledBuffers);
24
+ }
25
+
26
+ static exit() {
27
+ DataSeqDiaConnectionClosed.encoder = null;
28
+ DataSeqDiaConnectionClosed.decoder = null;
29
+ }
30
+
31
+ static store(msg, sharedTemplateData) {
32
+ const encoder = DataSeqDiaConnectionClosed.encoder;
33
+ const bufferData = encoder.createBuffer(DataSeqDiaConnectionClosed.size + DataSeqDiaProtocolTwoNodes.getSize(sharedTemplateData, msg), DataScrollListNode.renderDataSize);
34
+ DataSeqDiaProtocolTwoNodes.store(encoder, msg, sharedTemplateData, Const.PART_LEFT);
35
+ encoder.setUint2_1(msg.data.local.actionId, true);
36
+ const remote = msg.data.remote;
37
+ encoder.setUint16(remote.actorIndex);
38
+ encoder.release();
39
+ return bufferData;
40
+ }
41
+
42
+ static restore(bufferData) {
43
+ const decoder = DataSeqDiaConnectionClosed.decoder;
44
+ decoder.attach(bufferData, DataScrollListNode.renderDataSize);
45
+ const result = DataSeqDiaProtocolTwoNodes.restore(LogDataAction.CLOSED, decoder, DataSeqDiaConnectionClosed.InfoClosed);
46
+ const actionId = decoder.getUint2_1(true);
47
+ const remoteActorIndex = decoder.getUint16();
48
+ if(2 === actionId) {
49
+ result.renderNodes = Const.RENDER_TWO_NODES;
50
+ result.protocolLine = Const.PROTOCOL_LINE_CONNECTION;
51
+ }
52
+ result.reverseDirection = remoteActorIndex < result.localActorIndex ? Const.REVERS_DIRECTION_TRUE : Const.REVERS_DIRECTION_FALSE;
53
+ result.extraData = {
54
+ isConnection: true
55
+ };
56
+ #BUILD_DEBUG_START
57
+ Object.preventExtensions(result);
58
+ #BUILD_DEBUG_STOP
59
+ decoder.detach();
60
+ return result;
61
+ }
62
+
63
+ static restoreHeightData(bufferData) {
64
+ const decoder = DataSeqDiaConnectionClosed.decoder;
65
+ decoder.attach(bufferData, DataScrollListNode.renderDataSize);
66
+ const height = decoder.getUint8();
67
+ decoder.detach();
68
+ return height;
69
+ }
70
+ }
71
+
72
+
73
+ module.exports = DataSeqDiaConnectionClosed;