You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by sc...@apache.org on 2014/12/16 16:27:38 UTC

svn commit: r1645975 - /uima/uimaj/trunk/uima-docbook-references/src/docbook/ref.config.xml

Author: schor
Date: Tue Dec 16 15:27:38 2014
New Revision: 1645975

URL: http://svn.apache.org/r1645975
Log:
no Jira, format text a bit better

Modified:
    uima/uimaj/trunk/uima-docbook-references/src/docbook/ref.config.xml

Modified: uima/uimaj/trunk/uima-docbook-references/src/docbook/ref.config.xml
URL: http://svn.apache.org/viewvc/uima/uimaj/trunk/uima-docbook-references/src/docbook/ref.config.xml?rev=1645975&r1=1645974&r2=1645975&view=diff
==============================================================================
--- uima/uimaj/trunk/uima-docbook-references/src/docbook/ref.config.xml (original)
+++ uima/uimaj/trunk/uima-docbook-references/src/docbook/ref.config.xml Tue Dec 16 15:27:38 2014
@@ -59,18 +59,18 @@ under the License.
     global JVM properties to control it.  The suggested way to operation with these is as follows.
     <itemizedlist>
 	    <listitem><para>At the beginning, run with automatic protection enabled (the default), but
-	    turn on explicit reporting (<code>uima.report_fs_update_corrupts_index</code>))</para></listitem>
+	    turn on explicit reporting (<code>-Duima.report_fs_update_corrupts_index</code>)</para></listitem>
 	    <listitem><para>For all reported instances, examine your code to see if you can restructure to
 	    do the updates before adding the FS to the indices.  Where you cannot, surround the code doing 
-	    these updates with a try / finally or block protectIndices() form (see documentation in the CAS Javadocs).
+	    these updates with a try / finally or block <code>protectIndices()</code> form (see documentation in the CAS Javadocs).
 	    </para></listitem>
-	    <listitem><para>After no further reports, for maximum performance, you can leave in the protections 
+	    <listitem><para>After no further reports, for maximum performance, leave in the protections 
 	    you may have installed in the above step, and then disable the reporting and runtime checking, by setting 
-	    <code>uima.protect_indices_from_key_updates</code> to false, and removing any 
-	    <code>uima.report_fs_update_corrupts_index</code> JVM property.</para></listitem>
+	    <code>-Duima.protect_indices_from_key_updates</code> to false, and removing any 
+	    <code>-Duima.report_fs_update_corrupts_index</code> JVM property.</para></listitem>
     </itemizedlist>
-    One additional JVM property, <code>uima.throw_exception_when_fs_update_corrupts_index</code>, will throw
-    a UIMARuntimeException if an update outside of a protectIndices block occurs that could corrupt the indices,
+    One additional JVM property, <code>-Duima.throw_exception_when_fs_update_corrupts_index</code>, will throw
+    a UIMARuntimeException if an update outside of a <code>protectIndices</code> block occurs that could corrupt the indices,
     rather than "recovering" this.  This is useful for automated builds, where you may want a strong signal if
     this kind of mistake gets into the build.
     </para>
@@ -79,6 +79,9 @@ under the License.
   <section id="ugr.ref.config.property-table">
     <title>Properties Table</title>
       
+    <para>This table describes the various JVM defined properties; specify these on the Java command line
+    using -Dxxxxxx, where the xxxxxx is one of
+    the properties starting with <code>uima.</code> from the table below.</para>  
     <informaltable frame="all" rowsep="1" colsep="1">
      <tgroup cols="3">
        <colspec colnum="1" colname="Title" colwidth="1*"/>
@@ -96,7 +99,7 @@ under the License.
            
            <entry><para><code>uima.disable_enhanced_check_wrong_add_to_index</code></para>
            
-                  <para>See <ulink url="https://issues.apache.org/jira/browse/UIMA-4099"/>.
+                  <para>See <ulink url="https://issues.apache.org/jira/browse/UIMA-4099">UIMA-4099</ulink>.
                         Feature Structures which are subtypes of AnnotationBase             
                         may only be added to the View corresponding to their
                         Sofa reference.  From version 2.7.0, there is additional 
@@ -110,14 +113,14 @@ under the License.
            
            <entry><para><code>uima.report_fs_update_corrupts_index</code> (default is not to report)</para>
                       
-                  <para>See <ulink url="https://issues.apache.org/jira/browse/UIMA-4059">UIMA-4059</ulink>.
+                  <para>See <ulink url="https://issues.apache.org/jira/browse/UIMA-4135">UIMA-4135</ulink>.
                         Updating Features which are used in Set and Sorted
                         indices as "keys" may corrupt the indices, if the Feature Structure (FS)
                         has been added to the indices.  To update these, you must first
                         completely remove the FS from the indexes in all views, then do the updates, and then
                         add it back.  UIMA now checks for this (unless specifically disabled, see below),
                         and if this property is set, will log WARN messages for each occurrence unless
-                        the user does explicit protectIndices (see CAS Javadocs), if this
+                        the user does explicit <code>protectIndices</code> (see CAS JavaDocs for CAS <code>protectIndices</code> methods), if this
                         property is defined.</para>
                    
                    <para>Specifying this property also forces <code>uima.protect_indices_from_key_updates</code> to true
@@ -125,7 +128,7 @@ under the License.
                          
                    <para>Users would run with this property defined, and then for high performance, 
                         would use the report to manually change their code to avoid the problem or 
-                        to wrap the updates with a protectIndices kind of protection (see the
+                        to wrap the updates with a <code>protectIndices</code> kind of protection (see the
                         reference manual, in the CAS or JCas chapters, for examples of user code doing this, 
                         and then run with the protection turned off (see below).
                         
@@ -137,13 +140,15 @@ under the License.
          <row>
            <entry><para>Throw exception on illegal Index-key Feature Updates</para></entry>
            
-           <entry><para><code>uima.exception_when_fs_update_corrupts_index</code>(default is automatically handle)</para>
+           <entry><para><code>uima.exception_when_fs_update_corrupts_index</code> (default is false)</para>
                       
                   <para>See <ulink url="https://issues.apache.org/jira/browse/UIMA-4150">UIMA-4150</ulink>.
                         Throws a UIMARuntimeException if an Indexed FS feature used as a key in one or more 
-                        indices is updated, outside of an explicit protectIndices block..  \
+                        indices is updated, outside of an explicit <code>protectIndices</code> block..  \
                         This is intended for use in automated build and test environments,
-                        to provide a strong signal if this kind of mistake gets into the build.</para>
+                        to provide a strong signal if this kind of mistake gets into the build.
+                        If it is not set, then the other properties specify if corruption should be checked for, 
+                        recovered automatically, and / or reported</para>
                    
                    <para>Specifying this property also forces <code>uima.report_fs_update_corrupts_index</code>
                          to true even if it was set to false.</para>
@@ -168,12 +173,12 @@ under the License.
          </row>
 
          <row>
-           <entry><para>Disallow duplicate addToIndexes for identical Feature Structures</para></entry>
+           <entry><para>Allow duplicate addToIndexes for identical Feature Structures</para></entry>
            
-           <entry><para><code>uima.allow_duplicate_add_to_indices</code></para>
+           <entry><para><code>uima.allow_duplicate_add_to_indices</code> (default is false)</para>
            
-                  <para>See <ulink url="https://issues.apache.org/jira/browse/UIMA-4059"/>
-                        and <ulink url="https://issues.apache.org/jira/browse/UIMA-3399"/>.
+                  <para>See <ulink url="https://issues.apache.org/jira/browse/UIMA-4135">UIMA-4135</ulink>
+                        and <ulink url="https://issues.apache.org/jira/browse/UIMA-3399">UIMA-3399</ulink>.
                         As of version 2.7.0, adding a particular Feature Structure
                         to the indices more than once is ignored.  The old behavior
                         may be restored by this property.</para></entry>