Uploaded image for project: 'Commons Sandbox'
  1. Commons Sandbox
  2. SANDBOX-133

[pipeline] Numerous changes and updates for Java 1.5

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • None
    • Pipeline
    • None
    • Operating System: All
      Platform: All

    • 32299

    Description

      After some new use cases arose that I wasn't properly able to handle under my
      initial contributed version of commons-pipeline, I've done a substantial rewrite
      and added a "hello world" unit test to serve as an example of how to use the
      library.

      The primary intent of this rewrite is to remove the necessessity for classes
      implementing StageHandler to extend a particular StageQueue implementation. It
      also updates the package to be Java 1.5-centric, with the hope that future
      updates can more readily use some of the new stuff in java.util.concurrent.
      The StageQueue and StageHandler interfaces have been aggregated into the
      abstract class Stage, and a new class, StageDriver, allows different threading
      models and failure tolerance policies to be applied to Stage implementations.
      Overall, it should be significantly cleaner.

      I am submitting these changes through bugzilla because I don't yet have
      committer permissions in the sandbox.

      Due to the changes, and the youth of this project, there are some source files
      that should be removed from the cvs repository as they're incompatible with the
      API changes. These are:

      src/java/org/apache/commons/pipeline/StageHandler.java
      src/java/org/apache/commons/pipeline/StageQueue.java
      src/java/org/apache/commons/pipeline/config/PipelineFactory.java
      src/java/org/apache/commons/pipeline/impl/SingleThreadStageQueue.java

      New and changed source files and test resources will be attached to this ticket.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kris.nuttycombe@noaa.gov Kris Nuttycombe
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: