You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

(currently work-in-progress)

OdysseusNet allows the configuration of each OdysseusNode using a separate XML-based configuration file. This file is located in the ODYSSEUS_HOME folder and is called odysseusNet.conf. With the activation of OdysseusNet, the contents of the file are read once. Further changes to the file during execution are not applied (Odysseus has to be started again, then). The configuration of OdysseusNet is based on key-value-pairs,whereas each key has to be unique. Developers can add/reuse own configuration keys (and values) described in Configuration for developers.

The following text is an example of such a OdysseusNet configuration file:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
<comment>OdysseusNet Property File edit only if you know what you are doing</comment>
<entry key="net.querydistribute.maxport">20000</entry>
<entry key="net.remoteUpdate">false</entry>
<entry key="net.discoverer.name">BroadcastOdysseusNodeDiscoverer</entry>
<entry key="net.source.lifetime">3600000</entry>
<entry key="net.querydistribute.minport">10000</entry>
<entry key="net.node.preserveid">false</entry>
<entry key="net.data.lifetime">3600000</entry>
<entry key="net.autostart">false</entry>
<entry key="net.querydistribute.randomport">false</entry>
<entry key="net.dd.local">true</entry>
<entry key="net.node.group">OdysseusGroup</entry>
<entry key="net.querydistribute.partition">querycloud</entry>
<entry key="net.querydistribute.allocation">querycount</entry>
<entry key="net.node.name">OdysseusNode_1554</entry>
<entry key="net.discoverer.interval">5000</entry>
<entry key="net.dd.checkinterval">30000</entry>
<entry key="net.logging.receive">false</entry>
<entry key="net.connect.selector.name">GroupSelectorComponent</entry>
</properties>

By default, the following configuration settings are supported:

KeyDefault valueDescription
net.node.name  
net.node.group  
net.node.preserveid  
net.autostart  
net.remoteUpdate  
net.logging.receive  
net.querydistribute.minport  
net.querydistribute.maxport  
net.querydistribute.randomport  
net.querydistribute.partition  
net.querydistribute.allocation  
net.discoverer.interval  
net.discoverer.name  
net.source.lifetime  
net.data.lifetime  
net.dd.local  
net.dd.checkinterval  
net.connect.selector.name  
  • No labels