faban
  1. faban
  2. FABAN-10

Faban should allow override of cycle times via run.xml

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Labels:
      None

      Description

      Cycle times for benchmark operations are presently set through code annotations. We should have the ability to override those annotations with data in the run.xml file, the same way that the operationMix can be overridden for the Mix class.

      The attached patch is a proposed implementation.

        Activity

        Hide
        yaominchen added a comment -

        Code has been checked in.

        Project: faban
        Repository: source
        Revision: f19c873667f5b4a1a0ac8f913c1b173428a474d2
        Author: sheetalpatil
        Date: 2011-05-20 19:09:07 UTC
        Link:

        Log Message:
        ------------
        FABAN-10 :Faban should allow override of cycle times via run.xml
        USAGE:
        In the run.xml file, in the <driverConfig> block, you need to add,
        <cycleDistribution name="1">
        <classname>FixedTime</classname>
        <operationNames>MyOperation1, MyOperation2</operationNames>
        <cycleType>ThinkTIME</cycleType>
        <cycleTime>100</cycleTime>
        <cycleDeviation>0</cycleDeviation>
        </cycleDistribution>
        For multiple cycleDistribution,
        <cycleDistribution name="1">
        <classname>FixedTime</classname>
        <operationNames>MyOperation1</operationNames>
        <cycleType>CycleTime</cycleType>
        <cycleTime>100</cycleTime>
        <cycleDeviation>0</cycleDeviation>
        </cycleDistribution>
        <cycleDistribution name="2">
        <classname>NegativeExponential</classname>
        <operationNames>MyOperation2</operationNames>
        <cycleType>ThinkTIME</cycleType>
        <cycleMean>500</cycleMean>
        <cycleDeviation>0</cycleDeviation>
        </cycleDistribution>
        Merge branch 'master' of ssh://git.java.net/faban~source
        Conflicts:
        driver/src/com/sun/faban/driver/engine/AgentImpl.java
        driver/src/com/sun/faban/driver/engine/RunInfo.java
        driver/src/com/sun/faban/driver/util/Timer.java

        Revisions:
        ----------
        8281ab1d0636e936acc8bbe0f76544cc08cc20b9
        f19c873667f5b4a1a0ac8f913c1b173428a474d2

        Show
        yaominchen added a comment - Code has been checked in. Project: faban Repository: source Revision: f19c873667f5b4a1a0ac8f913c1b173428a474d2 Author: sheetalpatil Date: 2011-05-20 19:09:07 UTC Link: Log Message: ------------ FABAN-10 :Faban should allow override of cycle times via run.xml USAGE: In the run.xml file, in the <driverConfig> block, you need to add, <cycleDistribution name="1"> <classname>FixedTime</classname> <operationNames>MyOperation1, MyOperation2</operationNames> <cycleType>ThinkTIME</cycleType> <cycleTime>100</cycleTime> <cycleDeviation>0</cycleDeviation> </cycleDistribution> For multiple cycleDistribution, <cycleDistribution name="1"> <classname>FixedTime</classname> <operationNames>MyOperation1</operationNames> <cycleType>CycleTime</cycleType> <cycleTime>100</cycleTime> <cycleDeviation>0</cycleDeviation> </cycleDistribution> <cycleDistribution name="2"> <classname>NegativeExponential</classname> <operationNames>MyOperation2</operationNames> <cycleType>ThinkTIME</cycleType> <cycleMean>500</cycleMean> <cycleDeviation>0</cycleDeviation> </cycleDistribution> Merge branch 'master' of ssh://git.java.net/faban~source Conflicts: driver/src/com/sun/faban/driver/engine/AgentImpl.java driver/src/com/sun/faban/driver/engine/RunInfo.java driver/src/com/sun/faban/driver/util/Timer.java Revisions: ---------- 8281ab1d0636e936acc8bbe0f76544cc08cc20b9 f19c873667f5b4a1a0ac8f913c1b173428a474d2
        Hide
        yaominchen added a comment -

        Fixed by code change.

        Show
        yaominchen added a comment - Fixed by code change.

          People

          • Assignee:
            sheetalpatil
            Reporter:
            Scott Oaks
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: