| 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 |
|---|
| 27 | FACTORIES_NETWORKFACTORY = planet.generic.commonapi.factory.NetworkFactoryImpl |
|---|
| 28 | |
|---|
| 29 | # The default IdFactory class |
|---|
| 30 | FACTORIES_IDFACTORY = planet.generic.commonapi.factory.IdFactoryImpl |
|---|
| 31 | |
|---|
| 32 | # The default NodeHandleFactory class |
|---|
| 33 | FACTORIES_NODEHANDLEFACTORY = planet.generic.commonapi.factory.NodeHandleFactoryImpl |
|---|
| 34 | |
|---|
| 35 | # The default NodeFactory class |
|---|
| 36 | FACTORIES_NODEFACTORY = planet.generic.commonapi.factory.NodeFactoryImpl |
|---|
| 37 | |
|---|
| 38 | # The default RouteMessagePool class |
|---|
| 39 | FACTORIES_ROUTEMESSAGEPOOL = planet.generic.commonapi.factory.RouteMessagePoolImpl |
|---|
| 40 | |
|---|
| 41 | # The default Network class |
|---|
| 42 | FACTORIES_NETWORK = planet.generic.commonapi.MultiThreadedNetworkImpl |
|---|
| 43 | |
|---|
| 44 | # The default NodeHandle class |
|---|
| 45 | FACTORIES_NODEHANDLE = planet.generic.commonapi.NodeHandleImpl |
|---|
| 46 | |
|---|
| 47 | # The default RouteMessage class |
|---|
| 48 | FACTORIES_ROUTEMESSAGE = planet.generic.commonapi.RouteMessageImpl |
|---|
| 49 | |
|---|
| 50 | # The default network topology. |
|---|
| 51 | # Default possible values: RANDOM, CIRCULAR, SERIALIZED |
|---|
| 52 | FACTORIES_NETWORKTOPOLOGY = RANDOM |
|---|
| 53 | |
|---|
| 54 | # The default initial network size |
|---|
| 55 | FACTORIES_NETWORKSIZE = 3000 |
|---|
| 56 | |
|---|
| 57 | |
|---|
| 58 | ########## OPTIONAL ATTRIBUTES: Test dependant |
|---|
| 59 | |
|---|
| 60 | # The default ApplicationFactory class |
|---|
| 61 | FACTORIES_APPLICATIONFACTORY = planet.generic.commonapi.factory.ApplicationFactoryImpl |
|---|
| 62 | |
|---|
| 63 | # The default EndPointFactory class |
|---|
| 64 | FACTORIES_ENDPOINTFACTORY = planet.generic.commonapi.factory.EndPointFactoryImpl |
|---|
| 65 | |
|---|
| 66 | # The default Application class |
|---|
| 67 | FACTORIES_APPLICATION = planet.test.helloworld.DHTApplication |
|---|
| 68 | |
|---|
| 69 | # The default EndPoint class |
|---|
| 70 | FACTORIES_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 | SIMULATOR_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) |
|---|
| 84 | SIMULATOR_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) |
|---|
| 88 | SIMULATOR_PRINT_LEVEL = 2 |
|---|
| 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 |
|---|
| 93 | SIMULATOR_ENVIRONMENT = SIMULATION |
|---|
| 94 | |
|---|
| 95 | # The queue size for the incomming and outgoing queues |
|---|
| 96 | SIMULATOR_QUEUE_SIZE = 128 |
|---|
| 97 | |
|---|
| 98 | # The maximum number of messages to be processed per node per step |
|---|
| 99 | SIMULATOR_PROCESSED_MESSAGES = 128 |
|---|
| 100 | |
|---|
| 101 | ########## OPTIONAL ATTRIBUTES: Test dependant |
|---|
| 102 | |
|---|
| 103 | # The events filename to load |
|---|
| 104 | SIMULATOR_EVENT_FILE = data/test_join1000r.txt |
|---|
| 105 | |
|---|
| 106 | #Number of processors |
|---|
| 107 | SIMULATOR_PROCESSORS = 2 |
|---|
| 108 | ################################################################################ |
|---|
| 109 | # SERIALIZATION PART # |
|---|
| 110 | ################################################################################ |
|---|
| 111 | |
|---|
| 112 | ########## OPTIONAL ATTRIBUTES: Test dependant |
|---|
| 113 | |
|---|
| 114 | # Serialized file that contains the network to be loaded |
|---|
| 115 | SERIALIZATION_INPUT_FILE = network.psim |
|---|
| 116 | |
|---|
| 117 | # Filename to which serialize the final state |
|---|
| 118 | SERIALIZATION_OUTPUT_FILE = network.psim |
|---|
| 119 | |
|---|
| 120 | # Identifies if the output file must be replaced with new outputs, when the |
|---|
| 121 | # state is serialized |
|---|
| 122 | SERIALIZATION_REPLACE_OUTPUT_FILE = false |
|---|
| 123 | |
|---|
| 124 | |
|---|
| 125 | ################################################################################ |
|---|
| 126 | # BEHAVIOURS PART # |
|---|
| 127 | ################################################################################ |
|---|
| 128 | |
|---|
| 129 | ########## OPTIONAL ATTRIBUTES: Overlay dependant |
|---|
| 130 | |
|---|
| 131 | # The default BehaviourFactory class |
|---|
| 132 | BEHAVIOURS_FACTORY = |
|---|
| 133 | |
|---|
| 134 | # The default BehavioursPool class |
|---|
| 135 | BEHAVIOURS_POOL = |
|---|
| 136 | |
|---|
| 137 | # The default BehavioursRoleSelector class |
|---|
| 138 | BEHAVIOURS_ROLESELECTOR = |
|---|
| 139 | |
|---|
| 140 | # The default BehavioursInvoker class |
|---|
| 141 | BEHAVIOURS_INVOKER = |
|---|
| 142 | |
|---|
| 143 | # The default BehavioursFilter class |
|---|
| 144 | BEHAVIOURS_FILTER = |
|---|
| 145 | |
|---|
| 146 | # The default BehavioursPattern class |
|---|
| 147 | BEHAVIOURS_PATTERN = |
|---|
| 148 | |
|---|
| 149 | # The default PropertiesInitializaer class for the behaviours properties |
|---|
| 150 | BEHAVIOURS_PROPERTIES = |
|---|
| 151 | |
|---|
| 152 | # The default number of message types used in the current overlay |
|---|
| 153 | BEHAVIOURS_NUMBEROFTYPES = |
|---|
| 154 | |
|---|
| 155 | # The default number of message modes used in the current overlay |
|---|
| 156 | BEHAVIOURS_NUMBEROFMODES = |
|---|
| 157 | |
|---|
| 158 | ################################################################################ |
|---|
| 159 | # SPECIFIC PROPERTIES OF BEHAVIOURS PART # |
|---|
| 160 | ################################################################################ |
|---|
| 161 | |
|---|
| 162 | ########## OPTIONAL ATTRIBUTES: Overlay dependant |
|---|
| 163 | |
|---|
| 164 | # The default percentage of faulty nodes |
|---|
| 165 | BEHAVIOURS_PROPERTIES_FAULTY_NODES = |
|---|
| 166 | |
|---|
| 167 | # The default distribution of malicious node |
|---|
| 168 | BEHAVIOURS_PROPERTIES_MALICIOUS_DISTRIBUTION = |
|---|
| 169 | |
|---|
| 170 | # Identifies when to show specific debug info for behaviours |
|---|
| 171 | BEHAVIOURS_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 |
|---|
| 177 | BEHAVIOURS_PROPERTIES_INSTANCE_1 = |
|---|
| 178 | |
|---|
| 179 | |
|---|
| 180 | ################################################################################ |
|---|
| 181 | # OVERLAY PART # |
|---|
| 182 | ################################################################################ |
|---|
| 183 | |
|---|
| 184 | ########## MANDATORY ATTRIBUTES |
|---|
| 185 | |
|---|
| 186 | # The default Id class |
|---|
| 187 | OVERLAY_ID = planet.chord.ChordId |
|---|
| 188 | |
|---|
| 189 | # The default Node class |
|---|
| 190 | OVERLAY_NODE = planet.chord.ChordNode |
|---|
| 191 | |
|---|
| 192 | # The default OverlayProperties implementation class |
|---|
| 193 | OVERLAY_PROPERTIES = planet.chord.ChordProperties |
|---|
| 194 | |
|---|
| 195 | # Identifies if this overlay implementation uses behaviours |
|---|
| 196 | # Default possible values: false | true |
|---|
| 197 | OVERLAY_WITH_BEHAVIOURS = false |
|---|
| 198 | |
|---|
| 199 | ################################################################################ |
|---|
| 200 | # CHORD SPECIFIC PART # |
|---|
| 201 | ################################################################################ |
|---|
| 202 | |
|---|
| 203 | ########## MANDATORY ATTRIBUTES |
|---|
| 204 | |
|---|
| 205 | # The default number of stabilize steps |
|---|
| 206 | CHORD_STABILIZATION_STEPS = 10 |
|---|
| 207 | |
|---|
| 208 | # The default number of steps to fix finger tables |
|---|
| 209 | CHORD_FIX_FINGER_STEPS = 5 |
|---|
| 210 | |
|---|
| 211 | # The default size of successor list |
|---|
| 212 | CHORD_SUCCESSOR_LIST_SIZE = 16 |
|---|
| 213 | |
|---|
| 214 | # The default number of bits for ChordIds |
|---|
| 215 | CHORD_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 |
|---|
| 230 | RESULTS_FACTORY = planet.generic.commonapi.results.ResultsFactoryImpl, \ |
|---|
| 231 | planet.generic.commonapi.results.ResultsFactoryImpl |
|---|
| 232 | |
|---|
| 233 | # The default ResultsEdge class |
|---|
| 234 | RESULTS_EDGE = planet.generic.commonapi.results.ResultsEdgeImpl, \ |
|---|
| 235 | planet.generic.commonapi.results.ResultsEdgeImpl |
|---|
| 236 | |
|---|
| 237 | # The default ResultsConstraint class |
|---|
| 238 | RESULTS_CONSTRAINT = planet.generic.commonapi.results.ResultsIdleConstraint, \ |
|---|
| 239 | planet.generic.commonapi.results.ResultsIdleConstraint |
|---|
| 240 | |
|---|
| 241 | # The default ResultsGenerator class |
|---|
| 242 | RESULTS_GENERATOR = planet.generic.commonapi.results.ResultsGMLGenerator, \ |
|---|
| 243 | planet.generic.commonapi.results.ResultsPajekGenerator |
|---|
| 244 | |
|---|
| 245 | # The default PropertiesInitializer for results properties |
|---|
| 246 | RESULTS_PROPERTIES = planet.generic.commonapi.results.ResultsGMLProperties, \ |
|---|
| 247 | planet.generic.commonapi.results.ResultsGMLProperties |
|---|
| 248 | |
|---|
| 249 | # The unique names for each results type |
|---|
| 250 | RESULTS_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 |
|---|
| 260 | RESULTS_PROPERTIES_GML_WIDTH = 20.0f |
|---|
| 261 | |
|---|
| 262 | # The default height of the virtual bounding box |
|---|
| 263 | RESULTS_PROPERTIES_GML_HEIGHT = 20.0f |
|---|
| 264 | |
|---|
| 265 | # The default shape of the node |
|---|
| 266 | RESULTS_PROPERTIES_GML_SHAPE = ellipse |
|---|
| 267 | |
|---|
| 268 | # The default fill color for the shape of the node (in #'RRGGBB' format) |
|---|
| 269 | RESULTS_PROPERTIES_GML_FILL = CCCCFF |
|---|
| 270 | |
|---|
| 271 | # The default alternative fill color for the shape of the node (in #'RRGGBB' format) |
|---|
| 272 | RESULTS_PROPERTIES_GML_ALTERNATIVE_FILL = 00FF66 |
|---|
| 273 | |
|---|
| 274 | # The default color of the border line (in #'RRGGBB' format) |
|---|
| 275 | RESULTS_PROPERTIES_GML_OUTLINE = 000000 |
|---|
| 276 | |
|---|
| 277 | # The default font size of the node Id lavel |
|---|
| 278 | RESULTS_PROPERTIES_GML_FONT_SIZE = 12 |
|---|
| 279 | |
|---|
| 280 | # The default font name of the node Id label |
|---|
| 281 | RESULTS_PROPERTIES_GML_FONT_NAME = dialog |
|---|
| 282 | |
|---|
| 283 | # The default minimal node distance arranged on a circle |
|---|
| 284 | RESULTS_PROPERTIES_GML_MINIMAL_NODE_DISTANCE = 50 |
|---|