forked from cnpack/cnvcl
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUnit1.dfm
More file actions
645 lines (645 loc) · 15.4 KB
/
Unit1.dfm
File metadata and controls
645 lines (645 loc) · 15.4 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
object Form1: TForm1
Left = 285
Top = 67
Width = 401
Height = 543
Caption = 'ObjectPool and TADOConPool test suite'
Color = clBtnFace
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -12
Font.Name = '宋体'
Font.Style = []
OldCreateOrder = False
Position = poDesktopCenter
OnClose = FormClose
OnCreate = FormCreate
OnDestroy = FormDestroy
PixelsPerInch = 96
TextHeight = 12
object Splitter3: TSplitter
Left = 0
Top = 386
Width = 393
Height = 3
Cursor = crVSplit
Align = alBottom
end
object PageControl1: TPageControl
Left = 0
Top = 0
Width = 393
Height = 386
ActivePage = TabSheet2
Align = alClient
TabOrder = 0
object TabSheet2: TTabSheet
Caption = '对象池测试'
ImageIndex = 1
object Splitter1: TSplitter
Left = 0
Top = 165
Width = 385
Height = 3
Cursor = crVSplit
Align = alTop
end
object Memo2: TMemo
Left = 0
Top = 0
Width = 385
Height = 165
Align = alTop
Lines.Strings = (
'Memo2')
ReadOnly = True
ScrollBars = ssBoth
TabOrder = 0
end
object Memo1: TMemo
Left = 0
Top = 168
Width = 385
Height = 107
Align = alClient
Lines.Strings = (
'Memo1')
ReadOnly = True
ScrollBars = ssBoth
TabOrder = 1
end
object Panel1: TPanel
Left = 0
Top = 275
Width = 385
Height = 84
Align = alBottom
BevelInner = bvRaised
BevelOuter = bvLowered
TabOrder = 2
object Label1: TLabel
Left = 8
Top = 12
Width = 72
Height = 12
Caption = '对象获取策略'
end
object Label2: TLabel
Left = 8
Top = 36
Width = 72
Height = 12
Caption = '无空闲对象时'
end
object Label3: TLabel
Left = 8
Top = 60
Width = 72
Height = 12
Caption = '线到达峰值时'
end
object Label4: TLabel
Left = 160
Top = 60
Width = 60
Height = 12
Caption = '引用数峰值'
end
object Label5: TLabel
Left = 160
Top = 36
Width = 36
Height = 12
Caption = '对象数'
end
object Label12: TLabel
Left = 260
Top = 60
Width = 24
Height = 12
Caption = '选项'
end
object ComboBox1: TComboBox
Left = 84
Top = 8
Width = 169
Height = 20
Style = csDropDownList
ItemHeight = 12
TabOrder = 0
OnChange = ComboBox1Change
Items.Strings = (
'引用数小优先'
'引用数小,工作效率高优先'
'引用数小,工作次数少优先'
'引用数小,工作次数多优先'
'引用数小,工作时间少优先'
'引用数小,工作时间多优先'
'无引用,工作效率高优先'
'无引用,工作次数少优先'
'无引用,工作次数多优先'
'无引用,工作时间少优先'
'无引用,工作时间多优先')
end
object ComboBox2: TComboBox
Left = 84
Top = 32
Width = 73
Height = 20
Style = csDropDownList
ItemHeight = 12
TabOrder = 1
OnChange = ComboBox2Change
Items.Strings = (
'等待可用'
'获取失败'
'重用对象')
end
object ComboBox3: TComboBox
Left = 84
Top = 56
Width = 73
Height = 20
Style = csDropDownList
ItemHeight = 12
TabOrder = 4
OnChange = ComboBox3Change
Items.Strings = (
'等待可用'
'获取失败')
end
object SpinEdit1: TSpinEdit
Left = 224
Top = 56
Width = 29
Height = 21
MaxLength = 1
MaxValue = 9
MinValue = 0
TabOrder = 5
Value = 0
OnChange = SpinEdit1Change
end
object SpinEdit2: TSpinEdit
Left = 196
Top = 32
Width = 29
Height = 21
MaxLength = 1
MaxValue = 9
MinValue = 0
TabOrder = 2
Value = 0
OnChange = SpinEdit2Change
end
object SpinEdit3: TSpinEdit
Left = 224
Top = 32
Width = 29
Height = 21
MaxLength = 1
MaxValue = 9
MinValue = 0
TabOrder = 3
Value = 0
OnChange = SpinEdit3Change
end
object Button1: TButton
Left = 260
Top = 8
Width = 75
Height = 21
Anchors = [akLeft, akTop, akRight]
Caption = '加入任务'
TabOrder = 6
OnClick = Button1Click
end
object SpinEdit4: TSpinEdit
Left = 336
Top = 8
Width = 41
Height = 21
Anchors = [akTop, akRight]
MaxLength = 3
MaxValue = 999
MinValue = 0
TabOrder = 7
Value = 10
end
object CheckBox1: TCheckBox
Left = 260
Top = 34
Width = 73
Height = 17
Anchors = [akLeft, akTop, akRight]
Caption = '每200ms'
TabOrder = 8
end
object SpinEdit6: TSpinEdit
Left = 336
Top = 32
Width = 41
Height = 21
Anchors = [akTop, akRight]
MaxLength = 3
MaxValue = 999
MinValue = 0
TabOrder = 9
Value = 10
end
object ComboBox8: TComboBox
Left = 288
Top = 56
Width = 89
Height = 20
Style = csDropDownList
Anchors = [akLeft, akTop, akRight]
ItemHeight = 12
TabOrder = 10
Items.Strings = (
'无特殊选项'
'需要初始化'
'对象需独用'
'随机设定')
end
end
end
object TabSheet3: TTabSheet
Caption = '连接池测试'
ImageIndex = 2
object Splitter2: TSplitter
Left = 0
Top = 165
Width = 385
Height = 3
Cursor = crVSplit
Align = alTop
end
object Memo3: TMemo
Left = 0
Top = 0
Width = 385
Height = 165
Align = alTop
Lines.Strings = (
'Memo3')
ReadOnly = True
ScrollBars = ssBoth
TabOrder = 0
end
object Memo4: TMemo
Left = 0
Top = 168
Width = 385
Height = 81
Align = alClient
Lines.Strings = (
'Memo4')
ReadOnly = True
ScrollBars = ssBoth
TabOrder = 1
end
object Panel2: TPanel
Left = 0
Top = 249
Width = 385
Height = 110
Align = alBottom
BevelInner = bvRaised
BevelOuter = bvLowered
TabOrder = 2
object Label6: TLabel
Left = 8
Top = 12
Width = 72
Height = 12
Caption = '对象获取策略'
end
object Label7: TLabel
Left = 8
Top = 36
Width = 72
Height = 12
Caption = '无空闲对象时'
end
object Label8: TLabel
Left = 8
Top = 60
Width = 72
Height = 12
Caption = '线到达峰值时'
end
object Label9: TLabel
Left = 160
Top = 60
Width = 60
Height = 12
Caption = '引用数峰值'
end
object Label10: TLabel
Left = 160
Top = 36
Width = 36
Height = 12
Caption = '对象数'
end
object Label11: TLabel
Left = 260
Top = 60
Width = 24
Height = 12
Caption = '选项'
end
object Label13: TLabel
Left = 8
Top = 84
Width = 72
Height = 12
Caption = '低负载引用数'
end
object Label14: TLabel
Left = 120
Top = 84
Width = 18
Height = 12
Caption = 'SQL'
end
object ComboBox4: TComboBox
Left = 84
Top = 8
Width = 169
Height = 20
Style = csDropDownList
ItemHeight = 12
TabOrder = 0
OnChange = ComboBox4Change
Items.Strings = (
'引用数小优先'
'引用数小,工作效率高优先'
'引用数小,工作次数少优先'
'引用数小,工作次数多优先'
'引用数小,工作时间少优先'
'引用数小,工作时间多优先'
'无引用,工作效率高优先'
'无引用,工作次数少优先'
'无引用,工作次数多优先'
'无引用,工作时间少优先'
'无引用,工作时间多优先')
end
object ComboBox5: TComboBox
Left = 84
Top = 32
Width = 73
Height = 20
Style = csDropDownList
ItemHeight = 12
TabOrder = 1
OnChange = ComboBox5Change
Items.Strings = (
'等待可用'
'获取失败'
'重用对象')
end
object ComboBox6: TComboBox
Left = 84
Top = 56
Width = 73
Height = 20
Style = csDropDownList
ItemHeight = 12
TabOrder = 4
OnChange = ComboBox6Change
Items.Strings = (
'等待可用'
'获取失败')
end
object SpinEdit5: TSpinEdit
Left = 224
Top = 56
Width = 29
Height = 21
MaxLength = 1
MaxValue = 9
MinValue = 0
TabOrder = 5
Value = 0
OnChange = SpinEdit5Change
end
object SpinEdit7: TSpinEdit
Left = 196
Top = 32
Width = 29
Height = 21
MaxLength = 1
MaxValue = 9
MinValue = 0
TabOrder = 2
Value = 0
OnChange = SpinEdit7Change
end
object SpinEdit8: TSpinEdit
Left = 224
Top = 32
Width = 29
Height = 21
MaxLength = 1
MaxValue = 9
MinValue = 0
TabOrder = 3
Value = 0
OnChange = SpinEdit8Change
end
object Button2: TButton
Left = 260
Top = 8
Width = 75
Height = 21
Anchors = [akLeft, akTop, akRight]
Caption = '加入任务'
TabOrder = 8
OnClick = Button2Click
end
object SpinEdit9: TSpinEdit
Left = 336
Top = 8
Width = 41
Height = 21
Anchors = [akTop, akRight]
MaxLength = 3
MaxValue = 999
MinValue = 0
TabOrder = 9
Value = 10
end
object CheckBox2: TCheckBox
Left = 260
Top = 34
Width = 73
Height = 17
Anchors = [akLeft, akTop, akRight]
Caption = '每200ms'
TabOrder = 10
end
object SpinEdit10: TSpinEdit
Left = 336
Top = 32
Width = 41
Height = 21
Anchors = [akTop, akRight]
MaxLength = 3
MaxValue = 999
MinValue = 0
TabOrder = 11
Value = 10
end
object Edit1: TEdit
Left = 140
Top = 80
Width = 113
Height = 20
TabOrder = 7
Text = 'SELECT COUNT(*) FROM dual'
end
object Edit2: TEdit
Left = 260
Top = 80
Width = 93
Height = 20
Anchors = [akLeft, akTop, akRight]
ReadOnly = True
TabOrder = 13
end
object Button3: TButton
Left = 356
Top = 80
Width = 21
Height = 21
Anchors = [akTop, akRight]
Caption = '…'
TabOrder = 14
OnClick = Button3Click
end
object ComboBox7: TComboBox
Left = 288
Top = 56
Width = 89
Height = 20
Style = csDropDownList
Anchors = [akLeft, akTop, akRight]
ItemHeight = 12
TabOrder = 12
Items.Strings = (
'无特殊选项'
'需要初始化'
'对象需独用')
end
object SpinEdit11: TSpinEdit
Left = 84
Top = 80
Width = 29
Height = 21
MaxLength = 1
MaxValue = 9
MinValue = 0
TabOrder = 6
Value = 0
OnChange = SpinEdit11Change
end
end
end
end
object Panel3: TPanel
Left = 0
Top = 389
Width = 393
Height = 127
Align = alBottom
Alignment = taLeftJustify
BevelOuter = bvNone
TabOrder = 1
object Memo5: TListBox
Left = 0
Top = 25
Width = 393
Height = 102
Align = alClient
ItemHeight = 12
TabOrder = 0
end
object Panel4: TPanel
Left = 0
Top = 0
Width = 393
Height = 25
Align = alTop
BevelOuter = bvNone
TabOrder = 1
object SpeedButton1: TSpeedButton
Left = 4
Top = 1
Width = 89
Height = 22
Caption = '清空输出记录'
OnClick = SpeedButton1Click
end
object CheckBox3: TCheckBox
Left = 96
Top = 4
Width = 97
Height = 17
Caption = '显示输出记录'
Checked = True
State = cbChecked
TabOrder = 0
end
end
end
object CnThreadPool1: TCnThreadPool
AdjustInterval = 5000
DeadTaskAsNew = False
MinAtLeast = True
ThreadDeadTimeout = 3000
ThreadsMinCount = 20
ThreadsMaxCount = 100
OnProcessRequest = CnThreadPool1ProcessRequest
Left = 120
Top = 40
end
object CnObjectPool1: TCnObjectPool
MinSize = 3
MaxSize = 5
LowLoadCount = 0
PeakCount = 9
Left = 188
Top = 40
end
object CnADOConPool1: TCnADOConPool
ConnectionString =
'Provider=MSDAORA.1;Password=;User ID=user;Data Source=localhost;' +
'Persist Security Info=True'
MinSize = 1
MaxSize = 8
LowLoadCount = 2
PeakCount = 4
WaitTimeOut = 0
OnReInitOne = CnADOConPool1ReInitOne
Left = 256
Top = 40
end
object Timer1: TTimer
Interval = 200
OnTimer = Timer1Timer
Left = 188
Top = 95
end
object CnThreadPool2: TCnThreadPool
AdjustInterval = 5000
DeadTaskAsNew = False
MinAtLeast = True
ThreadsMinCount = 20
ThreadsMaxCount = 100
OnProcessRequest = CnThreadPool2ProcessRequest
Left = 120
Top = 99
end
end