Pipeline::Segment - basic class for a segment
use Pipeline::Segment; my $ps = Pipeline::Segment->new(); $ps->dispatch();
Pipeline::Segment is designed as a part of the Pipeline system. The Pipeline::Segment class is designed to be subclassed as a part of the Pipeline system. The primary method that needs to be overloaded is the dispatch method, which the Pipeline class uses to enter each individual segment that it contains.
Pipeline::Segment
Pipeline
dispatch
The Pipeline::Segment class inherits from Pipeline::Base and therefore also has any additional methods that its superclass may have.
Pipeline::Base
The init method is called at construction time. Any arguments passed to the new method are passed to it.
init
new
The dispatch method causes the segment to perform its action.
The dispatch_method gets and sets the method that gets called on dispatch, by default this is the dispatch() method.
dispatch_method
dispatch()
The cleanup_dispatch method does post-processing on the segment to ensure no nasty circular references are lying around, as well as disconnecting various objects that are only useful during a dispatch.
cleanup_dispatch
The store method gets the current store.
store
The parent method returns the pipeline that the segment is current operating from. It is set at dispatch time by the calling pipeline.
parent
Pipeline, Pipeline::Segment::Async
Pipeline::Segment::Async
James A. Duncan <jduncan@fotango.com>
Copyright 2003 Fotango Ltd. All Rights Reserved.
This software is released under the same terms as Perl itself.
To install Pipeline, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Pipeline
CPAN shell
perl -MCPAN -e shell install Pipeline
For more information on module installation, please visit the detailed CPAN module installation guide.