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

Contributed pipeline stages from Mark Southern

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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. UngroupStage.java
          2 kB
          Ken Tanaka
        2. SessionStage.java
          3 kB
          Ken Tanaka
        3. pom.xml
          2 kB
          Ken Tanaka
        4. GroupStage.java
          2 kB
          Ken Tanaka
        5. CommitStage.java
          2 kB
          Ken Tanaka

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            kentanaka Ken Tanaka

            Dates

              Created:
              Updated:

              Slack

                Issue deployment