root / branches / multithread / conf / symphony.properties

Revision 28, 13.7 kB (checked in by max, 1 year ago)
Line 
1################################################################################
2# Chord configuration file:                                                    #
3# -----------------------------                                                #
4# This file specifies all properties (including the Chord specifics ones) to   #
5# run any test with the Chord overlay.                                         #
6#                                                                              #
7# How to use:                                                                  #
8# -----------------------------                                                #
9# All properties are divided into different semantical parts.                  #
10# You must specify the desired properties values into the following lines.     #
11#                                                                              #
12# Made by:                                                                     #
13#  Jordi Pujol Ahullo (jordi.pujol@estudiants.urv.es)                          #
14# Under:                                                                       #
15#  Planet Project: http://ants.etse.urv.es/planet                              #
16#  PlanetSim:      htpp://ants.etse.urv.es/planetsim                           #
17################################################################################
18
19
20################################################################################
21# FACTORIES PART                                                               #
22################################################################################
23
24########## MANDATORY ATTRIBUTES
25
26# The default NetworkFactory class
27FACTORIES_NETWORKFACTORY = planet.generic.commonapi.factory.NetworkFactoryImpl
28
29# The default IdFactory class
30FACTORIES_IDFACTORY = planet.generic.commonapi.factory.IdFactoryImpl
31
32# The default NodeHandleFactory class
33FACTORIES_NODEHANDLEFACTORY = planet.generic.commonapi.factory.NodeHandleFactoryImpl
34
35# The default NodeFactory class
36FACTORIES_NODEFACTORY = planet.generic.commonapi.factory.NodeFactoryImpl
37
38# The default RouteMessagePool class
39FACTORIES_ROUTEMESSAGEPOOL = planet.generic.commonapi.factory.RouteMessagePoolImpl
40
41# The default Network class
42FACTORIES_NETWORK = planet.generic.commonapi.MultiThreadedNetworkImpl
43
44# The default NodeHandle class
45FACTORIES_NODEHANDLE = planet.generic.commonapi.NodeHandleImpl
46
47# The default RouteMessage class
48FACTORIES_ROUTEMESSAGE = planet.generic.commonapi.RouteMessageImpl
49
50# The default network topology.
51# Default possible values: RANDOM |CIRCULAR | SERIALIZED
52FACTORIES_NETWORKTOPOLOGY = RANDOM
53
54# The default initial network size
55FACTORIES_NETWORKSIZE = 1000
56
57
58########## OPTIONAL ATTRIBUTES: Test dependant
59
60# The default ApplicationFactory class
61FACTORIES_APPLICATIONFACTORY = planet.generic.commonapi.factory.ApplicationFactoryImpl
62
63# The default EndPointFactory class
64FACTORIES_ENDPOINTFACTORY = planet.generic.commonapi.factory.EndPointFactoryImpl
65
66# The default Application class
67FACTORIES_APPLICATION = planet.test.helloworld.DHTApplication
68
69# The default EndPoint class
70FACTORIES_ENDPOINT = planet.generic.commonapi.EndPointImpl
71
72
73################################################################################
74# SIMULATOR PART                                                               #
75################################################################################
76
77########## MANDATORY ATTRIBUTES
78
79# The number of stabilization steps for any node at join or leave
80# Default value: 2
81SIMULATOR_SIMULATION_STEPS = 2
82
83# The log level (to use by Logger.log(...) )
84# Default possible values (from more to less important logs): 0 (error), 1 (events), 2 (node info), 3 (message)
85SIMULATOR_LOG_LEVEL = 0
86
87# The print level for whole network (to use by GenericApp.printNetwork() method)
88# Default possible values: 0 (no print), 1 (pretty print), 2 (full print)
89SIMULATOR_PRINT_LEVEL = 2
90
91# The environment for the current simulation
92# Default possible values: SIMULATION (by steps), EXPERIMENTAL (by threads and real TCP connections)
93# Only SIMULATION has available
94SIMULATOR_ENVIRONMENT = SIMULATION
95
96# The queue size for the incomming and outgoing queues
97# Default value: 128
98SIMULATOR_QUEUE_SIZE = 128
99
100# The maximum number of messages to be processed per node per step
101# Default value: 128
102SIMULATOR_PROCESSED_MESSAGES = 128
103
104########## OPTIONAL ATTRIBUTES: Test dependant
105
106# The events filename to load
107SIMULATOR_EVENT_FILE =
108
109#Number of processors
110SIMULATOR_PROCESSORS = 1
111################################################################################
112# SERIALIZATION PART                                                           #
113################################################################################
114
115########## OPTIONAL ATTRIBUTES: Test dependant
116
117# Serialized file that contains the network to be loaded
118SERIALIZATION_INPUT_FILE = network.psim
119
120# Filename to which serialize the final state
121SERIALIZATION_OUTPUT_FILE = network.psim
122
123# Identifies if the output file must be replaced with new outputs, when the
124# state is serialized
125SERIALIZATION_REPLACE_OUTPUT_FILE = false
126
127
128################################################################################
129# BEHAVIOURS PART                                                              #
130################################################################################
131   
132########## OPTIONAL ATTRIBUTES: Overlay dependant
133
134# The default BehaviourFactory class
135BEHAVIOURS_FACTORY = planet.generic.commonapi.behaviours.BehavioursFactoryImpl
136
137# The default BehavioursPool class
138BEHAVIOURS_POOL = planet.generic.commonapi.behaviours.BehavioursPoolImpl
139
140# The default BehavioursRoleSelector class
141BEHAVIOURS_ROLESELECTOR = planet.generic.commonapi.behaviours.BehavioursRoleSelectorImpl
142
143# The default BehavioursInvoker class
144BEHAVIOURS_INVOKER = planet.generic.commonapi.behaviours.BehavioursInvokerImpl
145
146# The default BehavioursFilter class
147BEHAVIOURS_FILTER = planet.generic.commonapi.behaviours.BehavioursIdleFilter
148
149# The default BehavioursPattern class
150BEHAVIOURS_PATTERN = planet.generic.commonapi.behaviours.BehavioursPatternImpl
151
152# The default PropertiesInitializaer class for the behaviours properties
153BEHAVIOURS_PROPERTIES = planet.generic.commonapi.behaviours.BehavioursPropertiesImpl
154
155# The default number of message types used in the current overlay
156# Default value for Symphony: 8
157BEHAVIOURS_NUMBEROFTYPES = 8
158
159# The default number of message modes used in the current overlay
160# Default value for Symphony: 3
161BEHAVIOURS_NUMBEROFMODES = 3
162
163################################################################################
164# SPECIFIC PROPERTIES OF BEHAVIOURS PART                                       #
165################################################################################
166
167########## OPTIONAL ATTRIBUTES: Overlay dependant
168
169# The default percentage of faulty nodes
170# Default possible values: [0..100]
171BEHAVIOURS_PROPERTIES_FAULTY_NODES = 0
172
173# The default distribution of malicious node
174# Default possible values: UNIFORM | CHAIN
175BEHAVIOURS_PROPERTIES_MALICIOUS_DISTRIBUTION = CHAIN
176
177# Identifies when to show specific debug info for behaviours
178BEHAVIOURS_PROPERTIES_DEBUG = false
179
180# NOTE: The following keys start by 'BEHAVIOURS_PROPERTIES_INSTANCE', ended
181#       with an incremental integer number to make them different
182
183# All required instances for the current behaviours implementation
184# COLUMN NAMES:                                                                                MESSAGE                 MESSAGE
185# UNIQUE NAME                    =             BEHAVIOUR CLASS                              ,   TYPE                 ,  MODE  , PROBABILITY , LOCALITY , ROLE
186#-----------------------------------------------------------------------------------------------------------------------------------------------------------------
187BEHAVIOURS_PROPERTIES_INSTANCE_1 = planet.symphony.behaviours.RoutingBehaviour,               ?,                       *,       1.0,          REMOTE,    NEUTRAL
188BEHAVIOURS_PROPERTIES_INSTANCE_2 = planet.symphony.behaviours.QueryJoinBehaviour,             QUERY_JOIN,              REFRESH, 1.0,          LOCAL,     NEUTRAL
189BEHAVIOURS_PROPERTIES_INSTANCE_3 = planet.symphony.behaviours.SetInfoBehaviour,               SET_INFO,                REFRESH, 1.0,          LOCAL,     NEUTRAL
190BEHAVIOURS_PROPERTIES_INSTANCE_4 = planet.symphony.behaviours.QueryConnectBehaviour,          QUERY_CONNECT,           REFRESH, 1.0,          LOCAL,     NEUTRAL
191BEHAVIOURS_PROPERTIES_INSTANCE_5 = planet.symphony.behaviours.AcceptConnectBehaviour,         ACCEPT_CONNECT,          REFRESH, 1.0,          LOCAL,     NEUTRAL
192BEHAVIOURS_PROPERTIES_INSTANCE_6 = planet.symphony.behaviours.CancelConnectBehaviour,         CANCEL_CONNECT,          REFRESH, 1.0,          LOCAL,     NEUTRAL
193BEHAVIOURS_PROPERTIES_INSTANCE_7 = planet.symphony.behaviours.CloseLongConnectBehaviour,      CLOSE_LONG_CONNECT,      REFRESH, 1.0,          LOCAL,     NEUTRAL
194BEHAVIOURS_PROPERTIES_INSTANCE_8 = planet.symphony.behaviours.CloseNeighbourConnectBehaviour, CLOSE_NEIGHBOUR_CONNECT, REFRESH, 1.0,          LOCAL,     NEUTRAL
195BEHAVIOURS_PROPERTIES_INSTANCE_9 = planet.symphony.behaviours.DataBehaviour,                  DATA,                    *,       1.0,          ALWAYS,    NEUTRAL
196
197# Default possible values:
198# BEHAVIOUR CLASS, MESSAGE TYPE, MESSAGE MODE ==> Overlay dependant
199# PROBABILITY ==> [0.0 .. 1.0] (never ..  always)
200# LOCALITY    ==> LOCAL | REMOTE | ALWAYS
201# ROLE        ==> GOOD  | BAD    | NEUTRAL
202
203
204################################################################################
205# OVERLAY PART                                                                 #
206################################################################################
207
208########## MANDATORY ATTRIBUTES
209
210# The default Id class
211OVERLAY_ID = planet.symphony.SymphonyId
212
213# The default Node class
214OVERLAY_NODE = planet.symphony.SymphonyNode
215
216# The default OverlayProperties implementation class
217OVERLAY_PROPERTIES = planet.symphony.SymphonyProperties
218
219# Identifies if this overlay implementation uses behaviours
220# Default possible values: false | true
221OVERLAY_WITH_BEHAVIOURS = true
222
223################################################################################
224# SYMPHONY SPECIFIC PART                                                       #
225################################################################################
226
227########## MANDATORY ATTRIBUTES
228
229# The default number of long distance connections
230# Default value: 2
231SYMPHONY_MAX_LONG_DISTANCE = 2
232
233# The default maximum number of members in successor list
234# Default value: 2
235SYMPHONY_MAX_SUCCESSOR_LIST = 2
236
237# The default maximum number of retries to obtain a connection
238# to the same long distance node
239# Default value: 3
240SYMPHONY_MAX_RETRIES_NEW_LONG_DISTANCE = 3
241
242# The default maximum number of retries to enter to the network by the
243# same bootstrap
244# Default value: 10
245SYMPHONY_MAX_JOIN_RETRIES = 10
246
247# The default number of stabilize steps
248# Default value: 3
249SYMPHONY_STABILIZATION_STEPS = 3
250
251################################################################################
252# RESULTS PART                                                                 #
253################################################################################
254
255#
256# IMPORTANT: All different results attributes must appear in comma separated
257# format, using each position for the same results type for all attributes.
258#
259
260########## OPTIONAL ATTRIBUTES: Test dependant
261
262# The default ResultsFactory class
263RESULTS_FACTORY =               planet.generic.commonapi.results.ResultsFactoryImpl, \
264                                                planet.generic.commonapi.results.ResultsFactoryImpl
265
266# The default ResultsEdge class
267RESULTS_EDGE =                  planet.generic.commonapi.results.ResultsEdgeImpl, \
268                                                planet.generic.commonapi.results.ResultsEdgeImpl
269
270# The default ResultsConstraint class
271RESULTS_CONSTRAINT =    planet.generic.commonapi.results.ResultsIdleConstraint, \
272                                                planet.generic.commonapi.results.ResultsIdleConstraint
273
274# The default ResultsGenerator class
275RESULTS_GENERATOR =     planet.generic.commonapi.results.ResultsGMLGenerator, \
276                                                planet.generic.commonapi.results.ResultsPajekGenerator
277
278# The default PropertiesInitializer for results properties
279RESULTS_PROPERTIES =    planet.generic.commonapi.results.ResultsGMLProperties, \
280                                                planet.generic.commonapi.results.ResultsGMLProperties
281
282# The unique names for each results type
283RESULTS_UNIQUE_NAME =   GML, \
284                                                PAJEK
285
286################################################################################
287# GML SPECIFIC RESULTS PART                                                    #
288################################################################################
289
290########## OPTIONAL ATTRIBUTES: Test dependant
291
292# The default width of the virual bounding box
293RESULTS_PROPERTIES_GML_WIDTH = 20.0f
294
295# The default height of the virtual bounding box
296RESULTS_PROPERTIES_GML_HEIGHT = 20.0f
297
298# The default shape of the node
299RESULTS_PROPERTIES_GML_SHAPE = ellipse
300
301# The default fill color for the shape of the node (in #'RRGGBB' format)
302RESULTS_PROPERTIES_GML_FILL = CCCCFF
303
304# The default alternative fill color for the shape of the node (in #'RRGGBB' format)
305RESULTS_PROPERTIES_GML_ALTERNATIVE_FILL = 00FF66
306
307# The default color of the border line (in #'RRGGBB' format)
308RESULTS_PROPERTIES_GML_OUTLINE = 000000
309
310# The default font size of the node Id lavel
311RESULTS_PROPERTIES_GML_FONT_SIZE = 12
312
313# The default font name of the node Id label
314RESULTS_PROPERTIES_GML_FONT_NAME = dialog
315
316# The default minimal node distance arranged on a circle
317RESULTS_PROPERTIES_GML_MINIMAL_NODE_DISTANCE = 50
Note: See TracBrowser for help on using the browser.