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

Contributed pipeline stages from Mark Southern

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Pipeline
    • None

    Description

      Some stages were submitted. I'm not sure where they should go. Maybe SessionStage and CommitStage could go under

      package org.apache.commons.pipeline.stage.contrib.hibernate;

      and GroupStage and UngroupStage could go into

      package org.apache.commons.pipeline.stage.contrib;

      I've looked over the code but haven't run these yet. These are here so people can work with them and comment on improvements and how to add them to the pipeline codebase.

      Mark Southern wrote:
      > I've had a chance to use Commons Pipeline recently and I'm a fan . I wondered if I might contribute back a few Stages that I've written? The first two have dependencies on commons-collections and the last two on Hibernate. Maybe they could go into a user-contrib project?
      >
      > GroupStage: Add single objects to an ArrayList. Emits at a predetermined size.
      > UngroupStage: Emit single objects by iterating over an Iterable, Iterator, Array or single object.
      > SessionStage: Ensures that each Thread operating on a Stage gets its own Hibernate session.
      > CommitStage: Calls Session.save on each Hibernate object and commits with a predefined frequency.
      >
      > Best regards,
      > ~Mark.

      Attachments

        1. CommitStage.java
          2 kB
          Ken Tanaka
        2. GroupStage.java
          2 kB
          Ken Tanaka
        3. pom.xml
          2 kB
          Ken Tanaka
        4. SessionStage.java
          3 kB
          Ken Tanaka
        5. UngroupStage.java
          2 kB
          Ken Tanaka

        Activity

          People

            Unassigned Unassigned
            kentanaka Ken Tanaka
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: