root / branches / multithread / conf / chord_dht.properties

Revision 28, 10.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.dht.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
80SIMULATOR_SIMULATION_STEPS = 2
81
82# The log level (to use by Logger.log(...) )
83# Default possible values (from more to less important logs): 0 (error), 1 (events), 2 (node info), 3 (message)
84SIMULATOR_LOG_LEVEL = 0
85
86# The print level for whole network (to use by GenericApp.printNetwork() method)
87# Default possible values: 0 (no print), 1 (pretty print), 2 (full print)
88SIMULATOR_PRINT_LEVEL = 1
89
90# The environment for the current simulation
91# Default possible values: SIMULATION (by steps), EXPERIMENTAL (by threads and real TCP connections)
92# Only SIMULATION has available
93SIMULATOR_ENVIRONMENT = SIMULATION
94
95# The queue size for the incomming and outgoing queues
96SIMULATOR_QUEUE_SIZE = 128
97
98# The maximum number of messages to be processed per node per step
99SIMULATOR_PROCESSED_MESSAGES = 128
100
101########## OPTIONAL ATTRIBUTES: Test dependant
102
103# The events filename to load
104SIMULATOR_EVENT_FILE = ./data/test_join1000r.txt
105
106#Number of processors
107SIMULATOR_PROCESSORS = 2
108################################################################################
109# SERIALIZATION PART                                                           #
110################################################################################
111
112########## OPTIONAL ATTRIBUTES: Test dependant
113
114# Serialized file that contains the network to be loaded
115SERIALIZATION_INPUT_FILE =
116
117# Filename to which serialize the final state
118SERIALIZATION_OUTPUT_FILE =
119
120# Identifies if the output file must be replaced with new outputs, when the
121# state is serialized
122SERIALIZATION_REPLACE_OUTPUT_FILE = false
123
124
125################################################################################
126# BEHAVIOURS PART                                                              #
127################################################################################
128   
129########## OPTIONAL ATTRIBUTES: Overlay dependant
130
131# The default BehaviourFactory class
132BEHAVIOURS_FACTORY =
133
134# The default BehavioursPool class
135BEHAVIOURS_POOL =
136
137# The default BehavioursRoleSelector class
138BEHAVIOURS_ROLESELECTOR =
139
140# The default BehavioursInvoker class
141BEHAVIOURS_INVOKER =
142
143# The default BehavioursFilter class
144BEHAVIOURS_FILTER =
145
146# The default BehavioursPattern class
147BEHAVIOURS_PATTERN =
148
149# The default PropertiesInitializaer class for the behaviours properties
150BEHAVIOURS_PROPERTIES =
151
152# The default number of message types used in the current overlay
153BEHAVIOURS_NUMBEROFTYPES =
154
155# The default number of message modes used in the current overlay
156BEHAVIOURS_NUMBEROFMODES =
157
158################################################################################
159# SPECIFIC PROPERTIES OF BEHAVIOURS PART                                       #
160################################################################################
161
162########## OPTIONAL ATTRIBUTES: Overlay dependant
163
164# The default percentage of faulty nodes
165BEHAVIOURS_PROPERTIES_FAULTY_NODES =
166
167# The default distribution of malicious node
168BEHAVIOURS_PROPERTIES_MALICIOUS_DISTRIBUTION =
169
170# Identifies when to show specific debug info for behaviours
171BEHAVIOURS_PROPERTIES_DEBUG =
172
173# NOTE: The following keys start by 'BEHAVIOURS_PROPERTIES_INSTANCE', ended
174#       with an incremental integer number to make them different
175
176# All required instances for the current behaviours implementation
177BEHAVIOURS_PROPERTIES_INSTANCE_1 =
178
179
180################################################################################
181# OVERLAY PART                                                                 #
182################################################################################
183
184########## MANDATORY ATTRIBUTES
185
186# The default Id class
187OVERLAY_ID = planet.chord.ChordId
188
189# The default Node class
190OVERLAY_NODE = planet.chord.ChordNode
191
192# The default OverlayProperties implementation class
193OVERLAY_PROPERTIES = planet.chord.ChordProperties
194
195# Identifies if this overlay implementation uses behaviours
196# Default possible values: false | true
197OVERLAY_WITH_BEHAVIOURS = false
198
199################################################################################
200# CHORD SPECIFIC PART                                                          #
201################################################################################
202
203########## MANDATORY ATTRIBUTES
204
205# The default number of stabilize steps
206CHORD_STABILIZATION_STEPS = 10
207
208# The default number of steps to fix finger tables
209CHORD_FIX_FINGER_STEPS = 5
210
211# The default size of successor list
212CHORD_SUCCESSOR_LIST_SIZE = 16
213
214# The default number of bits for ChordIds
215CHORD_BITS_PER_KEY = 32
216
217
218################################################################################
219# RESULTS PART                                                                 #
220################################################################################
221
222#
223# IMPORTANT: All different results attributes must appear in comma separated
224# format, using each position for the same results type for all attributes.
225#
226
227########## OPTIONAL ATTRIBUTES: Test dependant
228
229# The default ResultsFactory class
230RESULTS_FACTORY =               planet.generic.commonapi.results.ResultsFactoryImpl, \
231                                                planet.generic.commonapi.results.ResultsFactoryImpl
232
233# The default ResultsEdge class
234RESULTS_EDGE =                  planet.generic.commonapi.results.ResultsEdgeImpl, \
235                                                planet.generic.commonapi.results.ResultsEdgeImpl
236
237# The default ResultsConstraint class
238RESULTS_CONSTRAINT =    planet.generic.commonapi.results.ResultsIdleConstraint, \
239                                                planet.generic.commonapi.results.ResultsIdleConstraint
240
241# The default ResultsGenerator class
242RESULTS_GENERATOR =     planet.generic.commonapi.results.ResultsGMLGenerator, \
243                                                planet.generic.commonapi.results.ResultsPajekGenerator
244
245# The default PropertiesInitializer for results properties
246RESULTS_PROPERTIES =    planet.generic.commonapi.results.ResultsGMLProperties, \
247                                                planet.generic.commonapi.results.ResultsGMLProperties
248
249# The unique names for each results type
250RESULTS_UNIQUE_NAME =   GML, \
251                                                PAJEK
252
253################################################################################
254# GML SPECIFIC RESULTS PART                                                    #
255################################################################################
256
257########## OPTIONAL ATTRIBUTES: Test dependant
258
259# The default width of the virual bounding box
260RESULTS_PROPERTIES_GML_WIDTH = 20.0f
261
262# The default height of the virtual bounding box
263RESULTS_PROPERTIES_GML_HEIGHT = 20.0f
264
265# The default shape of the node
266RESULTS_PROPERTIES_GML_SHAPE = ellipse
267
268# The default fill color for the shape of the node (in #'RRGGBB' format)
269RESULTS_PROPERTIES_GML_FILL = CCCCFF
270
271# The default alternative fill color for the shape of the node (in #'RRGGBB' format)
272RESULTS_PROPERTIES_GML_ALTERNATIVE_FILL = 00FF66
273
274# The default color of the border line (in #'RRGGBB' format)
275RESULTS_PROPERTIES_GML_OUTLINE = 000000
276
277# The default font size of the node Id lavel
278RESULTS_PROPERTIES_GML_FONT_SIZE = 12
279
280# The default font name of the node Id label
281RESULTS_PROPERTIES_GML_FONT_NAME = dialog
282
283# The default minimal node distance arranged on a circle
284RESULTS_PROPERTIES_GML_MINIMAL_NODE_DISTANCE = 50
Note: See TracBrowser for help on using the browser.