[
https://issues.apache.org/jira/browse/SANDBOX-325?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ken Tanaka updated SANDBOX-325:
-------------------------------
Attachment: SessionStage.java
SessionStage.java code submission.
> Contributed stages from Mark Southern
> -------------------------------------
>
> Key: SANDBOX-325
> URL: https://issues.apache.org/jira/browse/SANDBOX-325
> Project: Commons Sandbox
> Issue Type: New Feature
> Components: Pipeline
> Reporter: Ken Tanaka
> Attachments: CommitStage.java, GroupStage.java, SessionStage.java,
> UngroupStage.java
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.