-
Notifications
You must be signed in to change notification settings - Fork 0
/
icegrid.xml
executable file
·85 lines (85 loc) · 4.51 KB
/
icegrid.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
<?xml version="1.0" encoding="UTF-8" ?>
<!-- This file was written by IceGrid Admin -->
<icegrid>
<application name="drobots">
<distrib icepatch="${application}.IcePatch2/server"/>
<server-template id="FactoryTemplate">
<parameter name="index"/>
<server id="Factory${index}" activation="always" exe="./Factory.py" pwd="${application.distrib}">
<properties>
<property name="Ice.ThreadPool.Server.Size" value="10"/>
<property name="Ice.StdOut" value="/tmp/db/node${index}/out.txt"/>
<property name="Ice.StdErr" value="/tmp/db/node${index}/err.txt"/>
</properties>
<distrib icepatch="${application}.IcePatch2/server"/>
<adapter name="FactoryAdapter" endpoints="tcp -p 1000${index}" id="${server}.FactoryAdapter">
<object identity="factory${index}" type="::services::Factory" property="Identity"/>
</adapter>
</server>
</server-template>
<server-template id="IcePatch2">
<parameter name="instance-name" default="${application}.IcePatch2"/>
<parameter name="endpoints" default="default"/>
<parameter name="directory"/>
<server id="${instance-name}" activation="on-demand" application-distrib="false" exe="icepatch2server">
<properties>
<property name="IcePatch2.InstanceName" value="${instance-name}"/>
<property name="IcePatch2.Directory" value="${directory}"/>
</properties>
<adapter name="IcePatch2" endpoints="${endpoints}" id="${server}.IcePatch2">
<object identity="${instance-name}/server" type="::IcePatch2::FileServer"/>
</adapter>
</server>
</server-template>
<node name="node1">
<variable name="Ice.StdErr" value="/tmp/db/node1/err.txt"/>
<variable name="Ice.StdOut" value="/tmp/db/node1/out.txt"/>
<server id="Container" activation="always" exe="./Container.py" pwd="${application.distrib}">
<properties>
</properties>
<distrib icepatch="${application}.IcePatch2/server"/>
<adapter name="ContainerAdapter" endpoints="tcp -p 10010" id="${server}.ContainerAdapter">
<object identity="container" type="::services::Container" property="Identity"/>
</adapter>
</server>
<server-instance template="FactoryTemplate" index="1"/>
<server-instance template="IcePatch2" directory="/tmp/db/deploy/"/>
</node>
<node name="node2">
<variable name="Ice.StdErr" value="/tmp/db/node2/err.txt"/>
<variable name="Ice.StdOut" value="/tmp/db/node2/out.txt"/>
<server-instance template="FactoryTemplate" index="2"/>
<server id="Player" activation="manual" exe="./Client.py" pwd="${application.distrib}">
<env>directory=/tmp/db/player</env>
<properties>
<property name="Game.Locator" value="IceGrid/Locator -t:tcp -h atclab.esi.uclm.es -p 4061"/>
<property name="Game" value="drobots12"/>
<property name="Private" value="factory"/>
<property name="Private.Locator" value="IceGrid/Locator -t:tcp -h atclab.esi.uclm.es -p 4061"/>
</properties>
<distrib icepatch="${application}.IcePatch2/server"/>
<adapter name="PlayerAdapter" endpoints="tcp" id="${server}.PlayerAdapter">
<object identity="player"/>
</adapter>
</server>
</node>
<node name="node3">
<variable name="Ice.StdErr" value="/tmp/db/node3/err.txt"/>
<variable name="Ice.StdOut" value="/tmp/db/node3/out.txt"/>
<server-instance template="FactoryTemplate" index="3"/>
<server id="Player2" activation="manual" exe="./Client2.py" pwd="${application.distrib}">
<env>directory=/tmp/db/player2</env>
<properties>
<property name="Game.Locator" value="IceGrid/Locator -t:tcp -h atclab.esi.uclm.es -p 4061"/>
<property name="Game" value="drobots12"/>
<property name="Private" value="factory"/>
<property name="Private.Locator" value="IceGrid/Locator -t:tcp -h atclab.esi.uclm.es -p 4061"/>
</properties>
<distrib icepatch="${application}.IcePatch2/server"/>
<adapter name="PlayerAdapter" endpoints="tcp" id="${server}.PlayerAdapter">
<object identity="player2"/>
</adapter>
</server>
</node>
</application>
</icegrid>