Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "CDO Server Configuration"

 
(30 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__TOC__
+
This article has moved: [[CDO Server Configuration Reference]]
<br>
+
==Example XML==
+
This section shows an example XML configuration file for the CDO server. It must be located in the folder that you declared via system property <code>net4j.config</code>. The subsequent section explains the used [[#Element cdoServer|XML Elements]]. You can also click directly on the links in the XML file to navigate to the respective descriptions.
+
 
+
  01  <?xml version="1.0" encoding="UTF-8"?>
+
  02  <[[#Element cdoServer|'''cdoServer''']]>
+
  03 
+
  04    <[[#Element acceptor|'''acceptor''']] type="tcp" listenAddr="0.0.0.0" port="2036">
+
  05      <font color="green">''&lt;!--''</font>
+
  06      <font color="green">''<[[#Element negotiator |negotiator]] type="challenge" description="/temp/users.db"/> ''</font>
+
  07      <font color="green">''--&gt;''</font>
+
  08    </'''acceptor'''>
+
  09 
+
  10    <[[#Element repository|'''repository''']] name="repo1">
+
  11      <'''property''' name="[[#Property overrideUUID|overrideUUID]]" value="1ff5d226-b1f0-40fb-aba2-0c31b38c764f"/>
+
  12      <'''property''' name="[[#Property supportingAudits|supportingAudits]]" value="true"/>
+
  13      <'''property''' name="[[#Property verifyingRevisions|verifyingRevisions]]" value="false"/>
+
  14      <'''property''' name="[[#Property rememberingKnownTypes|rememberingKnownTypes]]" value="false"/>
+
  15      <'''property''' name="[[#Property currentLRUCapacity|currentLRUCapacity]]" value="10000"/>
+
  16      <'''property''' name="[[#Property revisedLRUCapacity|revisedLRUCapacity]]" value="100"/>
+
  17     
+
  18      <[[#Element store|'''store''']] type="db">
+
  19        <font color="green">''&lt;!-- mode: OFF | EXPRESS | NORMAL | GUARANTEED --&gt;''</font>
+
  20        <[[#Element invalidationStrategy|'''invalidationStrategy''']] mode="EXPRESS"/>
+
  21       
+
  22        <font color="green">''&lt;!-- type: horizontal | vertical | <any user-contributed type>--&gt;''</font>
+
  23        <[[#Element mappingStrategy|'''mappingStrategy''']] type="horizontal">
+
  24          <font color="green">''&lt;!-- ONE_TABLE_PER_REFERENCE | ONE_TABLE_PER_CLASS | ONE_TABLE_PER_PACKAGE | ONE_TABLE_PER_REPOSITORY | LIKE_ATTRIBUTES --&gt;''</font>
+
  25          <'''property''' name="[[#Property toManyReferences|toManyReferences]]" value="ONE_TABLE_PER_REFERENCE"/>
+
  26 
+
  27          <font color="green">''&lt;!-- LIKE_ATTRIBUTES | LIKE_TO_MANY_REFERENCES--&gt;''</font>
+
  28          <'''property''' name="[[#Property toOneReferences|toOneReferences]]" value="LIKE_ATTRIBUTES"/>
+
  29         
+
  30          <font color="green">''&lt;!-- MODEL | STRATEGY--&gt;''</font>
+
  31          <'''property''' name="[[#Property mappingPrecedence|mappingPrecedence]]" value="MODEL"/>
+
  32        </'''mappingStrategy'''>
+
  33       
+
  34        <font color="green">''&lt;!--<dbAdapter name="derby"/>''</font>
+
  35        <font color="green">''<dataSource''</font>
+
  36          <font color="green">''driverClass="org.apache.derby.jdbc.EmbeddedDataSource"''</font>
+
  37          <font color="green">''databaseName="/temp/cdodb1"''</font>
+
  38          <font color="green">''createDatabase="create"/>--&gt;''</font>
+
  39 
+
  40        <[[#Element dbAdapter|'''dbAdapter''']] name="derby"/>
+
  41        <[[#Element dataSource|'''dataSource''']]
+
  42          driverClass="org.apache.derby.jdbc.ClientDataSource"
+
  43          databaseName="cdodb1"
+
  44          createDatabase="create"/>
+
  45 
+
  46        <font color="green">''&lt;!--<dbAdapter name="hsqldb"/>''</font>
+
  47        <font color="green">''<dataSource''</font>
+
  48          <font color="green">''driverClass="org.eclipse.net4j.db.hsqldb.HSQLDBDataSource"''</font>
+
  49          <font color="green">''database="jdbc:hsqldb:mem:cdodb1"''</font>
+
  50          <font color="green">''user="sa"/>--&gt;''</font>
+
  51 
+
  52        <font color="green">''&lt;!--<dbAdapter name="mysql"/>''</font>
+
  53        <font color="green">''<dataSource''</font>
+
  54          <font color="green">''driverClass="com.mysql.jdbc.jdbc2.optional.MysqlDataSource"''</font>
+
  55          <font color="green">''url="jdbc:mysql://localhost/cdodb1"''</font>
+
  56          <font color="green">''user="sa"/>--&gt;''</font>
+
  57      </'''store'''>
+
  58    </'''repository'''>
+
  59 
+
  60  </'''cdoServer'''>
+
<br>
+
 
+
==Element cdoServer==
+
The root element of the <code>cdo-server.xml</code> file. It can contain zero, one or several [[#Element acceptor|'''acceptor''']] elements and zero, one or several [[#Element repository|'''repository''']] elements.
+
<br>
+
 
+
===Element acceptor===
+
Defines an [http://download.eclipse.org/modeling/emft/net4j/javadoc/0.8.0/org/eclipse/net4j/IAcceptor.html|<code>IAcceptor</code>] instance. Please refer to the [[Net4j]] documentation for details about acceptors and connectors. The <code>type</code> attribute corresponds to the type of an acceptor factory that is contributed via the <code>org.eclipse.net4j.util.factories</code> extension point with a product group of <code>org.eclipse.net4j.acceptors</code>. The remaining attributes depend on the specified type attribute value. The following values are possible with the shipped distribution (subject to user supplied extension):
+
 
+
* '''tcp:''' Acceptor for fast, new I/O based socket connections. The following additional attributes are recognized:
+
** '''listenAddr:''' The network address the server socket shall be bound to. A value of <code>"0.0.0.0"</code> is the default (whole attribute can be omitted) and tells the socket to listen on ''all'' available addresses.
+
** '''port:''' The network port the server socket shall be bound to. A value of <code>"2036"</code> is the default (whole attribute can be omitted).
+
<br>
+
 
+
====Element negotiator====
+
<br>
+
 
+
===Element repository===
+
<br>
+
 
+
====Property overrideUUID====
+
<br>
+
 
+
====Property supportingAudits====
+
<br>
+
 
+
====Property verifyingRevisions====
+
<br>
+
 
+
====Property rememberingKnownTypes====
+
<br>
+
 
+
====Property currentLRUCapacity====
+
<br>
+
 
+
====Property revisedLRUCapacity====
+
<br>
+
 
+
===Element store===
+
<br>
+
 
+
====Element invalidationStrategy====
+
<br>
+
 
+
====Element mappingStrategy====
+
<br>
+
 
+
=====Property toManyReferences=====
+
<br>
+
 
+
=====Property toOneReferences=====
+
<br>
+
 
+
=====Property mappingPrecedence=====
+
<br>
+
 
+
====Element dbAdapter====
+
<br>
+
 
+
====Element dataSource====
+
<br>
+
<br>
+
----
+
Wikis: [[CDO]] | [[Net4j]] | [[EMF]] | [[Eclipse]]
+

Latest revision as of 09:56, 6 August 2008

This article has moved: CDO Server Configuration Reference

Back to the top