Configuring Sun Master Indexes

Configuring the Default Survivor Strategy

Once you define a default survivor strategy, you might need to specify certain parameters for the strategy. One parameter is required for the WeightedSurvivorStrategy and for the DefaultSurvivorStrategy. If you create a custom strategy, additional parameters can be used.

ProcedureTo Configure the Default Survivor Strategy

  1. In the Projects window, expand the Configuration node in the project you want to modify, and then double-click update.xml.

    The file opens in the NetBeans XML editor.

  2. Scroll to the default-survivor-strategy element, and then to the strategy-class element.

  3. Do any of the following:

    • To modify an existing parameter value, scroll to the parameter you want to modify, and then change the value of the parameter-value element.

      For example:


      <default-survivor-strategy>
         <strategy-class>com.sun.mdm.index.survivor.impl.MySurvivorStrategy
         </strategy-class>
         <parameters>
            <parameter>
               <parameter-name>ConfigModuleName</parameter-name>
               <parameter-type>java.lang.String</parameter-type>
               <parameter-value>MySurvivorCalculator</parameter-value>
            </parameter>
         </parameters>
      </default-survivor-strategy>
    • To add a new parameter, create a new parameter element within the parameters element, and then define the parameter elements described in Master Index Default Survivor Strategy Parameter Elements.

    • To delete a parameter, scroll to the parameters element, and then delete all text between and including the parameter element that define the parameter.

    • To delete all parameters, delete the all text between and including the parameters element.

  4. Save and close the file.