This repository has been archived by the owner on Sep 23, 2020. It is now read-only.
/
main.xml
840 lines (625 loc) · 33.8 KB
/
main.xml
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
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
<!-- ===================================================================
rm.Manager implementation
=================================================================== -->
<bean id="nimbus-rm.manager"
class="org.globus.workspace.manager.DelegatingManager">
<constructor-arg ref="nimbus-rm.PathConfigs"/>
<constructor-arg ref="nimbus-rm.home.instance"/>
<constructor-arg ref="nimbus-rm.home.group"/>
<constructor-arg ref="nimbus-rm.home.cosched"/>
<constructor-arg ref="nimbus-rm.backfill" />
<constructor-arg ref="nimbus-repr.ReprFactory"/>
<constructor-arg ref="nimbus-rm.persistence.DataConvert"/>
<constructor-arg ref="nimbus-rm.loglevels" />
<constructor-arg ref="nimbus-rm.async.manager" />
<property name="accounting"
ref="nimbus-rm.accounting" />
<!-- set after object creation time to avoid circular dep -->
<property name="creation"
ref="nimbus-rm.creation" />
</bean>
<!-- ===================================================================
rm.BasicLegality implementation (using nimbustools default)
=================================================================== -->
<bean id="nimbus-rm.BasicLegality"
class="org.nimbustools.api.defaults.services.rm.DefaultBasicLegality" />
<!-- ===================================================================
brain.ModuleLocator implementation
For use from above to find key modules, where "above" in almost all
cases means a container (the remote messaging layer). Those cannot be
served by dependency injection (or if they happened to be, would be a
different application context unless you took time to integrate
directly).
=================================================================== -->
<bean id="nimbus-brain.ModuleLocator"
class="org.nimbustools.api.defaults.brain.DefaultModuleLocator">
<lookup-method name="getManager" bean="nimbus-rm.manager"/>
<lookup-method name="getReprFactory" bean="nimbus-repr.ReprFactory"/>
<lookup-method name="getMetadataServer" bean="nimbus-metadata-server"/>
<lookup-method name="getNodeManagement" bean="nimbus-remoting-nodemgmt" />
</bean>
<!-- ===================================================================
representation classes are broken out
=================================================================== -->
<import resource="main.repr.xml"/>
<!-- ===================================================================
property sources are concentrated in this file
=================================================================== -->
<import resource="main.conflocator.xml"/>
<!-- ===================================================================
Creation interfaces
=================================================================== -->
<bean id="nimbus-rm.creation"
class="org.globus.workspace.creation.defaults.CreationManagerImpl">
<constructor-arg ref="nimbus-rm.LockManager" />
<constructor-arg ref="nimbus-rm.BasicLegality" />
<constructor-arg ref="nimbus-rm.service.binding.BindingAdapter" />
<constructor-arg ref="nimbus-rm.networks" />
<constructor-arg ref="nimbus-rm.service.binding.Authorize" />
<constructor-arg ref="nimbus-rm.scheduler.Scheduler" />
<constructor-arg ref="nimbus-repr.ReprFactory" />
<constructor-arg ref="nimbus-rm.service.binding.GlobalPolicies" />
<constructor-arg ref="nimbus-rm.persistence.PersistenceAdapter" />
<constructor-arg ref="nimbus-rm.persistence.DataConvert" />
<constructor-arg ref="nimbus-rm.home.instance" />
<constructor-arg ref="nimbus-rm.home.group" />
<constructor-arg ref="nimbus-rm.home.cosched" />
<constructor-arg ref="other.timerManager" />
<constructor-arg ref="nimbus-rm.loglevels" />
<constructor-arg ref="nimbus-rm.service.binding.BindNetwork" />
<!-- idempotent requests can be disabled by replacing this
last arg with a null reference, like:
<constructor-arg><null/></constructor-arg>
You can also comment out the idempotent bean definition below but it
is not required.
-->
<constructor-arg ref="nimbus-rm.creation.idempotent"/>
<property name="accountingEventAdapter"
ref="nimbus-rm.accounting" />
<!-- set after object creation time to avoid circular dep -->
<property name="siManager"
ref="nimbus-rm.async.manager" />
</bean>
<!-- Retrieve the active authorization callout definition, it could be
the "disabled" one which causes no callout to happen -->
<import resource="authz-callout-ACTIVE.xml" />
<bean id="nimbus-rm.service.binding.Authorize"
class="org.globus.workspace.service.binding.authorization.DefaultAuthorize">
<constructor-arg ref="nimbus-rm.service.binding.GlobalPolicies" />
<constructor-arg ref="nimbus-rm.service.binding.AuthorizationCallout" />
<constructor-arg ref="nimbus-rm.home.instance" />
<property name="accountingReaderAdapter"
ref="nimbus-rm.accounting" />
</bean>
<!-- BindingAdapter is autowired, it gets automatically fed any needed
beans into its constructor args -->
<bean id="nimbus-rm.service.binding.BindingAdapter"
class="org.globus.workspace.service.binding.defaults.DefaultBindingAdapter"
autowire="constructor" />
<bean id="nimbus-rm.service.binding.GlobalPolicies"
class="org.globus.workspace.service.binding.defaults.DefaultGlobalPolicies"
init-method="validate">
<!-- Property values coming via vmm.conf -->
<property name="cpuArchitectureNames"
value="$VMM{cpu.arch}" />
<property name="vmm"
value="$VMM{vmm.type}" />
<property name="vmmVersions"
value="$VMM{vmm.versions}" />
<!-- Property values coming via global-policies.conf -->
<property name="allowStaticIPs"
value="$GLOBAL{allow.static.addresses}" />
<property name="maximumRunningTimeSeconds"
value="$GLOBAL{maximum.runtime.seconds}" />
<property name="maximumGroupSize"
value="$GLOBAL{maximum.group.size}" />
<property name="terminationOffsetSeconds"
value="$GLOBAL{termination.offset.seconds}" />
<property name="defaultRunningTimeSeconds"
value="$GLOBAL{default.runtime.seconds}" />
<property name="allowedHttpHosts"
value="$GLOBAL{allowed.http.hosts}" />
<!-- Property values coming via common.conf -->
<property name="fake" value="$COMMON{fake.mode}" />
<property name="fakelag" value="$COMMON{fake.lag.ms}" />
</bean>
<bean id="nimbus-rm.service.binding.BindSchedule"
class="org.globus.workspace.service.binding.defaults.DefaultBindSchedule">
<constructor-arg ref="nimbus-rm.service.binding.GlobalPolicies" />
</bean>
<bean id="nimbus-rm.service.binding.BindInitialState"
class="org.globus.workspace.service.binding.defaults.DefaultBindInitialState" />
<bean id="nimbus-rm.service.binding.BindShutdownMechanism"
class="org.globus.workspace.service.binding.defaults.DefaultBindShutdownMechanism">
<constructor-arg ref="nimbus-rm.service.binding.GlobalPolicies" />
</bean>
<bean id="nimbus-rm.service.binding.BindCustomizations"
class="org.globus.workspace.service.binding.defaults.DefaultBindCustomizations"
init-method="validate">
<constructor-arg ref="nimbus-rm.PathConfigs" />
</bean>
<bean id="nimbus-rm.service.binding.BindCredential"
class="org.globus.workspace.service.binding.defaults.DefaultBindCredential">
<constructor-arg ref="nimbus-rm.PathConfigs" />
</bean>
<bean id="nimbus-rm.service.binding.BindKernel"
class="org.globus.workspace.service.binding.defaults.DefaultBindKernel" />
<bean id="nimbus-rm.service.binding.BindResourceRequest"
class="org.globus.workspace.service.binding.defaults.DefaultBindResourceRequest" />
<bean id="nimbus-rm.service.binding.BindResourcePool"
class="org.globus.workspace.service.binding.defaults.DefaultBindResourcePool" />
<bean id="nimbus-rm.service.binding.BindDisks"
class="org.globus.workspace.service.binding.defaults.DefaultBindDisks">
<constructor-arg ref="nimbus-rm.service.binding.GlobalPolicies" />
<!-- <property name="sda1Replacement" value="xvda1" /> -->
</bean>
<bean id="nimbus-rm.service.binding.BindVMM"
class="org.globus.workspace.service.binding.defaults.DefaultBindVMM" />
<bean id="nimbus-rm.service.binding.BindNetwork"
class="org.globus.workspace.service.binding.defaults.DefaultBindNetwork">
<constructor-arg ref="nimbus-rm.service.binding.GlobalPolicies" />
<constructor-arg ref="nimbus-rm.networks" />
<constructor-arg ref="nimbus-rm.persistence.DataConvert" />
</bean>
<!-- ===================================================================
org.globus.workspace.* interfaces
=================================================================== -->
<bean id="nimbus-rm.PathConfigs"
class="org.globus.workspace.DefaultPathConfigs"
init-method="validate">
<property name="backendTempDirPath"
value="$VMM{control.tmp.dir}" />
<property name="localTempDirResource"
value="$COMMON{persistence.dir}/tmpfiles" />
</bean>
<bean id="nimbus-rm.LockManager"
class="org.globus.workspace.DefaultLockManager" />
<bean id="nimbus-rm.loglevels"
class="org.globus.workspace.Lager">
<property name="events" value="$LOGGING{log.events}" />
<property name="accounting" value="$LOGGING{log.accounting}" />
<property name="DB" value="$LOGGING{log.db}" />
<property name="state" value="$LOGGING{log.state}" />
<property name="trace" value="$LOGGING{log.trace}" />
<!-- very high signal/noise -->
<property name="scheduler" value="off" />
<property name="poll" value="off" />
<property name="perf" value="off" />
</bean>
<bean id="nimbus-rm.locator"
class="org.globus.workspace.TempLocatorImpl">
<!-- locator to help some things that would be too time consuming to
get into IoC right now, holding off for future organization -->
<constructor-arg ref="nimbus-rm.persistence.PersistenceAdapter" />
<constructor-arg ref="nimbus-rm.PathConfigs" />
<constructor-arg ref="nimbus-rm.service.async.ResourceMessage" />
<constructor-arg ref="nimbus-rm.service.binding.GlobalPolicies" />
<constructor-arg ref="nimbus-rm.service.propagation" />
</bean>
<!-- ===================================================================
org.globus.workspace.network.* interfaces
=================================================================== -->
<bean id="nimbus-rm.networks"
class="org.globus.workspace.network.defaults.DefaultAssociationAdapter"
init-method="validate">
<constructor-arg ref="nimbus-rm.persistence.PersistenceAdapter" />
<constructor-arg ref="nimbus-rm.loglevels" />
<property name="networksDir" value="$COMMON{conf.dir}/network-pools" />
<property name="macPrefix" value="$NETWORK{mac.prefix}" />
<property name="netSampleNetwork" value="$NETWORK{netsample.network}" />
<property name="netSampleResource"
value="$COMMON{persistence.dir}/control.netsample.txt" />
<property name="dhcpdEntriesResource"
value="$COMMON{persistence.dir}/dhcpd.entries" />
<property name="ipMacResource"
value="$COMMON{persistence.dir}/ip_macs.txt" />
</bean>
<!-- ===================================================================
org.globus.workspace.service.* interfaces
=================================================================== -->
<bean id="nimbus-rm.resource.instance"
scope="prototype"
class="org.globus.workspace.service.impls.OneXenVM">
<!-- for InstanceResourceImpl: -->
<constructor-arg ref="nimbus-rm.persistence.PersistenceAdapter" />
<constructor-arg ref="nimbus-rm.service.binding.BindingAdapter" />
<constructor-arg ref="nimbus-rm.service.binding.GlobalPolicies" />
<constructor-arg ref="nimbus-rm.persistence.DataConvert" />
<constructor-arg ref="nimbus-rm.loglevels" />
<constructor-arg ref="nimbus-rm.service.binding.BindNetwork" />
<!-- for StatefulResourceImpl: -->
<constructor-arg ref="nimbus-rm.scheduler.Scheduler" />
<constructor-arg ref="nimbus-rm.LockManager" />
<constructor-arg ref="nimbus-rm.service.StateTransition" />
<constructor-arg ref="other.timerManager" />
<!-- these modules can be null (InstanceResourceImpl) -->
<property name="accountingEventAdapter"
ref="nimbus-rm.accounting" />
<property name="authzCallout"
ref="nimbus-rm.service.binding.AuthorizationCallout" />
</bean>
<bean id="nimbus-rm.home.instance"
class="org.globus.workspace.service.impls.WorkspaceHomeImpl"
init-method="validate">
<lookup-method name="newEmptyResource"
bean="nimbus-rm.resource.instance"/>
<!-- configs from *.conf files -->
<property name="backendPath" value="$VMM{control.path}" />
<property name="scpPath" value="$SSH{scp.path}" />
<property name="sshPath" value="$SSH{ssh.path}" />
<property name="sshAccount" value="$SSH{control.ssh.user}" />
<property name="sshIdentityFile" value="$SSH{use.identity}" />
<!-- defaults -->
<property name="sweeperDelay" value="6000" /> <!-- ms -->
<property name="threadPoolInitialSize" value="5" />
<property name="threadPoolMaxSize" value="50" />
<!-- dependencies -->
<constructor-arg ref="nimbus-rm.persistence.PersistenceAdapter" />
<constructor-arg ref="nimbus-rm.LockManager" />
<constructor-arg ref="nimbus-rm.loglevels" />
<constructor-arg ref="nimbus-rm.persistence.DataConvert" />
<constructor-arg ref="other.cacheManager" />
<property name="scheduler" ref="nimbus-rm.scheduler.Scheduler" />
<property name="repoAdaptor" ref="nimbus-rm.service.binding.RepoAdaptor" />
</bean>
<bean id="nimbus-rm.resource.group"
scope="prototype"
class="org.globus.workspace.service.impls.GroupResourceImpl">
<constructor-arg ref="nimbus-rm.home.group" />
<constructor-arg ref="nimbus-rm.home.instance" />
<constructor-arg ref="nimbus-rm.scheduler.Scheduler" />
<constructor-arg ref="nimbus-rm.loglevels" />
</bean>
<bean id="nimbus-rm.home.group"
class="org.globus.workspace.service.impls.GroupHomeImpl">
<lookup-method name="newEmptyResource"
bean="nimbus-rm.resource.group"/>
<constructor-arg ref="nimbus-rm.home.instance" />
<constructor-arg ref="other.cacheManager" />
<constructor-arg ref="nimbus-rm.LockManager" />
<constructor-arg ref="nimbus-rm.loglevels" />
<constructor-arg ref="nimbus-rm.persistence.PersistenceAdapter" />
</bean>
<bean id="nimbus-rm.resource.cosched"
scope="prototype"
class="org.globus.workspace.service.impls.CoschedResourceImpl">
<constructor-arg ref="nimbus-rm.home.cosched" />
<constructor-arg ref="nimbus-rm.home.instance" />
<constructor-arg ref="nimbus-rm.scheduler.Scheduler" />
<constructor-arg ref="nimbus-rm.loglevels" />
</bean>
<bean id="nimbus-rm.home.cosched"
class="org.globus.workspace.service.impls.CoschedHomeImpl">
<lookup-method name="newEmptyResource"
bean="nimbus-rm.resource.cosched"/>
<constructor-arg ref="nimbus-rm.home.instance" />
<constructor-arg ref="nimbus-rm.persistence.PersistenceAdapter" />
<constructor-arg ref="nimbus-rm.LockManager" />
<constructor-arg ref="nimbus-rm.loglevels" />
<constructor-arg ref="other.cacheManager" />
</bean>
<!-- ===================================================================
org.globus.workspace.persistence.* interfaces
=================================================================== -->
<bean id="nimbus-rm.persistence.PersistenceAdapter"
class="org.globus.workspace.persistence.PersistenceAdapterImpl">
<constructor-arg ref="other.MainDataSource" />
<constructor-arg ref="nimbus-rm.loglevels" />
<constructor-arg ref="nimbus-rm.persistence.dbloader" />
<constructor-arg ref="nimbus-repr.ReprFactory"/>
</bean>
<bean id="nimbus-rm.persistence.dbloader"
class="org.globus.workspace.persistence.DerbyLoad"
init-method="setDerbySystemProperty">
<property name="derbySystemHome" value="$COMMON{derby.home.dir}" />
</bean>
<bean id="nimbus-rm.persistence.DataConvert"
class="org.globus.workspace.persistence.DataConvert">
<constructor-arg ref="nimbus-repr.ReprFactory" />
<property name="exposeVMMHostname" value="$COMMON{details.hostname}" />
</bean>
<!-- ===================================================================
org.globus.workspace.service.impls.* interfaces
=================================================================== -->
<bean id="nimbus-rm.service.StateTransition"
class="org.globus.workspace.service.impls.StateTransition">
<constructor-arg ref="nimbus-rm.service.binding.GlobalPolicies" />
<constructor-arg ref="nimbus-rm.service.async.RequestFactory" />
<constructor-arg ref="nimbus-rm.persistence.DataConvert" />
<constructor-arg ref="nimbus-rm.loglevels" />
<constructor-arg ref="nimbus-rm.locator" />
</bean>
<!-- ===================================================================
org.globus.workspace.service.impls.site.* interfaces
=================================================================== -->
<bean id="nimbus-rm.service.propagation"
class="org.globus.workspace.service.impls.site.PropagationAdapterImpl"
init-method="validate">
<!-- configs from *.conf files -->
<property name="enabled" value="$REPO{propagation.enabled}" />
<property name="notificationInfo"
value="$SSH{service.sshd.contact.string}" />
<!--
pollScript is the path to the notifications program that the
notification mechanism (ssh) uses. You should not need to edit
this but if you do use an absolute path.
-->
<property name="pollScript"
value="$COMMON{msgsinks.dir}/notifications" />
<property name="extraArgs" value="$COMMON{propagate.extraargs}" />
<!--
Milliseconds between polls to find new notifications from
workspace-control
-->
<property name="watcherDelay" value="500" />
<!-- dependencies -->
<constructor-arg ref="nimbus-rm.persistence.PersistenceAdapter" />
<constructor-arg ref="nimbus-rm.home.instance" />
<constructor-arg ref="nimbus-rm.service.async.ResourceMessage" />
<constructor-arg ref="other.timerManager" />
<constructor-arg ref="nimbus-rm.service.binding.GlobalPolicies" />
<constructor-arg ref="nimbus-rm.loglevels" />
</bean>
<!-- ===================================================================
org.globus.workspace.service.impls.async.* interfaces
=================================================================== -->
<bean id="nimbus-rm.service.async.RequestFactory"
class="org.globus.workspace.service.impls.async.RequestFactoryImpl">
<constructor-arg ref="nimbus-rm.loglevels" />
<!-- Current choices: xenlocal, xenssh -->
<property name="commandSet" value="xenssh" />
<!--
Not exposing the distinction between xenlocal and xenssh anymore,
the user should just set up localhost ssh logins if there is one
VMM node and it happens to be colocated. workspace-control needs
to send notifications back over sshd anyhow, so this login has to
work regardless until reliable messaging system is introduced.
-->
</bean>
<bean id="nimbus-rm.service.async.ResourceMessage"
class="org.globus.workspace.service.impls.async.ResourceMessage">
<constructor-arg ref="nimbus-rm.home.instance" />
<constructor-arg ref="nimbus-rm.persistence.DataConvert" />
</bean>
<!-- ===================================================================
org.globus.workspace.scheduler.* interfaces
=================================================================== -->
<!-- Retrieve the active slot management bean definition: -->
<import resource="resource-locator-ACTIVE.xml" />
<bean id="nimbus-rm.scheduler.Scheduler"
class="org.globus.workspace.scheduler.defaults.DefaultSchedulerAdapter"
init-method="validate">
<constructor-arg ref="nimbus-rm.LockManager" />
<constructor-arg ref="other.MainDataSource" />
<constructor-arg ref="other.timerManager" />
<constructor-arg ref="nimbus-rm.service.binding.GlobalPolicies" />
<constructor-arg ref="nimbus-rm.persistence.DataConvert" />
<constructor-arg ref="nimbus-rm.loglevels" />
<!-- set after object creation time to avoid circular dep with home -->
<property name="home" ref="nimbus-rm.home.instance" />
<property name="siManager"
ref="nimbus-rm.async.manager" />
<!-- definition of this bean is in "resource-locator-ACTIVE.xml" -->
<property name="slotManager"
ref="nimbus-rm.scheduler.SlotManagement" />
</bean>
<bean id="other.repo-imageLocator"
class="org.nimbus.authz.CumulusImageLocator"
init-method="validate">
<constructor-arg ref="other.AuthzDataSource" />
<property name="repoBucket" value="$CUMULUS{cumulus.repo.bucket}" />
<property name="prefix" value="$CUMULUS{cumulus.repo.prefix}" />
<property name="cumulusHost" value="$CUMULUS{cumulus.host}" />
<property name="rootFileMountAs" value="$OTHER_ELASTIC{rootfile.mountas}" />
</bean>
<bean id="nimbus-rm.backfill"
class="org.globus.workspace.async.backfill.Backfill"
init-method="validate">
<constructor-arg ref="nimbus-rm.persistence.PersistenceAdapter" />
<constructor-arg ref="nimbus-repr.ReprFactory"/>
<constructor-arg ref="nimbus-rm.loglevels" />
<constructor-arg ref="other.repo-imageLocator" />
<property name="backfillEnabled"
value="$ASYNC{backfill.enabled}" />
<property name="maxInstances"
value="$ASYNC{max.instances}" />
<property name="diskImage"
value="$ASYNC{disk.image}" />
<property name="repoUser"
value="$ASYNC{repo.user}" />
<property name="instanceMem"
value="$ELASTIC{memory.$ASYNC{async.instancetype}}" />
<property name="cpuArch"
value="$OTHER_ELASTIC{cpu.arch}" />
<property name="publicNetwork"
value="$ELASTIC{net.public}" />
<property name="privateNetwork"
value="$ELASTIC{net.private}" />
<property name="rootFileMountAs"
value="$OTHER_ELASTIC{rootfile.mountas}" />
<property name="vmmType"
value="$OTHER_ELASTIC{vmm.type}" />
<property name="vmmVersion"
value="$OTHER_ELASTIC{vmm.version}" />
</bean>
<!-- ===================================================================
org.globus.workspace.async.* interfaces
=================================================================== -->
<bean id="nimbus-rm.si.pricingmodel" class="$ASYNC{si.pricingmodel}" />
<bean id="nimbus-rm.si.asyncreqmap" class="org.globus.workspace.async.AsyncRequestMap">
<constructor-arg ref="nimbus-rm.persistence.PersistenceAdapter" />
</bean>
<bean id="nimbus-rm.async.manager"
class="org.globus.workspace.async.AsyncRequestManagerImpl">
<constructor-arg ref="nimbus-rm.persistence.PersistenceAdapter" />
<constructor-arg ref="nimbus-rm.loglevels" />
<constructor-arg ref="nimbus-rm.home.instance"/>
<constructor-arg ref="nimbus-rm.home.group"/>
<constructor-arg value="$ASYNC{si.minprice}" />
<constructor-arg ref="nimbus-rm.si.pricingmodel" />
<constructor-arg ref="nimbus-rm.si.asyncreqmap" />
<constructor-arg value="$ASYNC{si.enabled}" />
<constructor-arg value="$ASYNC{backfill.enabled}" />
<!-- set after object creation time to avoid circular dep -->
<property name="creationManager" ref="nimbus-rm.creation" />
<!-- Property values coming via spotinstances.conf -->
<property name="minReservedMem"
value="$ASYNC{async.policies.minreservedmem}" />
<property name="maxUtilization"
value="$ASYNC{async.policies.maxutilization}" />
<property name="instanceMem"
value="$ELASTIC{memory.$ASYNC{async.instancetype}}" />
</bean>
<!-- ===================================================================
org.globus.workspace.accounting.* interfaces
=================================================================== -->
<!--
The service allows for an AccountingEventAdapter implementation
to be both an AccountingEventAdapter and AccountingReaderAdapter.
If an AccountingReaderAdapter is also enabled, that will be used.
The legal configurations:
- One AccountingEventAdapter for logging only (query will not be available)
- One AccountingEventAdapter that does both jobs
- One AccountingEventAdapter, one AccountingReaderAdapter
-->
<bean id="nimbus-rm.accounting"
class="org.globus.workspace.accounting.impls.dbdefault.DBAccountingAdapter"
init-method="initialize">
<constructor-arg ref="other.AccountingDataSource" />
<constructor-arg ref="other.timerManager" />
<constructor-arg ref="nimbus-rm.loglevels" />
<constructor-arg ref="nimbus-rm.persistence.dbloader" />
<property name="currentReservationsResource"
value="$COMMON{persistence.dir}/current-reservations.txt" />
<property name="eventsResource"
value="$COMMON{persistence.dir}/accounting-events.txt" />
<property name="chargeGranularity" value="$ACCOUNTING{charge.granularity}" />
<property name="writeDelayMilliseconds" value="$ACCOUNTING{write.delay.ms}" />
</bean>
<!-- ===================================================================
org.globus.workspace.creation.* interfaces
=================================================================== -->
<bean id="nimbus-rm.creation.idempotent"
class="org.globus.workspace.creation.defaults.IdempotentCreationManagerImpl">
<constructor-arg ref="nimbus-rm.persistence.PersistenceAdapter" />
</bean>
<!-- ===================================================================
metadata server related
=================================================================== -->
<bean id="nimbus-metadata-server"
class="org.nimbustools.metadataserver.defaults.DefaultMetadataServer"
init-method="initServerAndListen">
<constructor-arg ref="other.metadataCacheManager" />
<property name="manager"
ref="nimbus-rm.manager" />
<property name="customizationPath"
value="$METADATA{customization.path}" />
<property name="enabled"
value="$METADATA{listen}" />
<property name="publicNets"
value="$METADATA{public.networks}" />
<property name="localNets"
value="$METADATA{local.networks}" />
<!-- some of the metadata server properties are now directly read by the
implementation, passed in via this property. This is to allow more
flexibility than provided by PropertyPlaceholderConfigurer -->
<property name="properties"
ref="metadataSettingsProperties"/>
</bean>
<!-- ===================================================================
Remoting related
=================================================================== -->
<bean id="nimbus-remoting-server"
class="org.globus.workspace.remoting.RemotingServer"
init-method="initialize">
<property name="socketResource" value="$ADMIN{socket.dir}" />
<property name="bindings">
<map>
<entry key="$ADMIN{rmi.binding.nodemgmt}"
value-ref="nimbus-remoting-nodemgmt" />
<entry key="$ADMIN{rmi.binding.admintools}"
value-ref="nimbus-remoting-admintools" />
</map>
</property>
</bean>
<bean id="nimbus-remoting-nodemgmt"
class="org.globus.workspace.remoting.admin.defaults.DefaultRemoteNodeManagement">
<property name="nodeManagement" ref="nimbus-rm.scheduler.SlotManagement"/>
<property name="persistenceAdapter" ref="nimbus-rm.persistence.PersistenceAdapter"/>
</bean>
<bean id="nimbus-remoting-admintools"
class="org.globus.workspace.remoting.admin.defaults.DefaultRemoteAdminToolsMgmt">
<property name="manager"
ref="nimbus-rm.manager" />
<property name="reprFactory"
ref="nimbus-repr.ReprFactory" />
<property name="authzDataSource"
ref="other.AuthzDataSource" />
<property name="workspaceHome"
ref="nimbus-rm.home.instance" />
<property name="authzCallout"
ref="nimbus-rm.service.binding.AuthorizationCallout" />
</bean>
<!-- ===================================================================
Externally written classes that are brought in as beans
=================================================================== -->
<bean id="other.timerManager"
class="org.globus.workspace.scheduler.TimerManagerImpl"
destroy-method="stop"/>
<bean id="other.cacheManager"
class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean">
<property name="configLocation">
<value>classpath:org/globus/workspace/service/impls/default-ehcache.xml</value>
</property>
</bean>
<bean id="other.metadataCacheManager"
class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean">
<property name="configLocation">
<value>classpath:org/nimbustools/metadataserver/defaults/default-ehcache.xml</value>
</property>
</bean>
<bean id="other.MainDataSource"
class="org.apache.commons.dbcp.BasicDataSource">
<property name="maxActive" value="10" />
<property name="maxIdle" value="4" />
<!-- ms to wait for database connection, 0 signals infinite -->
<property name="maxWait" value="0" />
<property name="poolPreparedStatements" value="true" />
<property name="driverClassName"
value="org.apache.derby.jdbc.EmbeddedDriver" />
<property name="url"
value="jdbc:derby:nimbus/WorkspacePersistenceDB" />
<property name="username" value="nimbus"/>
<property name="password" value="$DERBY{derby.user.nimbus}"/>
</bean>
<bean id="other.AccountingDataSource"
class="org.apache.commons.dbcp.BasicDataSource">
<property name="maxActive" value="10" />
<property name="maxIdle" value="4" />
<property name="maxWait" value="2000" />
<property name="poolPreparedStatements" value="true" />
<property name="driverClassName"
value="org.apache.derby.jdbc.EmbeddedDriver" />
<property name="url"
value="jdbc:derby:nimbus/WorkspaceAccountingDB" />
<property name="username" value="nimbus"/>
<property name="password" value="$DERBY{derby.user.nimbus}"/>
</bean>
<bean id="other.AuthzDataSource"
class="org.apache.commons.dbcp.BasicDataSource">
<property name="driverClassName" value="org.sqlite.JDBC" />
<property name="maxActive" value="10" />
<property name="maxIdle" value="4" />
<property name="maxWait" value="2000" />
<property name="poolPreparedStatements" value="true" />
<property name="url"
value="jdbc:sqlite://$CUMULUS{cumulus.authz.db}" />
<property name="username" value="nimbus"/>
<property name="password" value="nimbus"/>
</bean>
</beans>