WANdisco
Download Call me Whitepaper
 
 
Subsections

2 Configuration File

All configuration parameters are specified in a single file. The file uses XML syntax. Typically named prefs.xml. This can be easily over-ridden using the following system properties:

Preferences Root
-Dprefs.root=prefs-dir-name. Points to the directory which contains the prefs file. Default is current working directory.
Preferences file name
-Dprefs.file.name=myconfig.xml. Defaults to prefs.xml.

2.1 Basic Syntax

As noted above, we use an XML syntax to specify preferences(prefs). Root element is Preferences. There can only be one root element as required by XML. All other prefs are specified inside this root.

Look at the shipped prefs.xml file for sample syntax. Here is a snippet:

<?xml version="1.0" encoding="UTF-8"?>

<Preferences>

  <ProviderDescriptor>
     <DefaultProviderId>3bfbf219-2918-11d7-80c5-00065be02953</DefaultProviderId>
   </ProviderDescriptor>

  <MemberList>
    <Member name="3bfbf219-2918-11d7-80c5-00065be02953">
      <Profiles>
        <TransportPolicy>AlwaysDConeNet</TransportPolicy>
        <Transport>
          <DConeNet>
            <ListenerIP>localhost</ListenerIP>
            <ListenerPort>6020</ListenerPort>
          </DConeNet>
          <DConeFTP>
            <ListenerIP>localhost</ListenerIP>
            <ListenerPort>6021</ListenerPort>
          </DConeFTP>
        </Transport>
      </Profiles>
    </Member>
  </MemberList>

  <AgreementManagerList>
    <AgreementManager name="6e49ad70-10d9-11d9-af41-00065be02953">
      <DisplayName>cvs-am</DisplayName>
    </AgreementManager>
  </AgreementManagerList>


  <DConeNet>
    <UseNonBlockingIO>true</UseNonBlockingIO>
    <ReadStage>
      <!-- In a thread per conn model, this is really the max conns we can do -->
      <MaxThreads>5</MaxThreads>
    </ReadStage>
    <WriteStage>
      <!-- -1 means no timeout /-->
      <ThreadKeepAliveTimeOut>-1</ThreadKeepAliveTimeOut>
      <MaxConnectionsPerThread>1</MaxConnectionsPerThread>
      <MaxThreads>5</MaxThreads>
      <UseBlockingConnect>true</UseBlockingConnect>
    </WriteStage>
  </DConeNet>
  
  <ThreadPool>
    <AgreementThreads>2</AgreementThreads>
  </ThreadPool>
  <MessageQueue>
    <MaxThreads>2</MaxThreads>
    <BufferSize>5000</BufferSize>
  </MessageQueue>


  <org>
    <nirala>
      <util>
        <guid>
          <MACAddress>00:06:5B:E0:29:53</MACAddress>
        </guid>
      </util>
    </nirala>
  </org>

</Preferences>