NAME
Fennec::Collector - Base class for fennec output collectors.
DESCRIPTION
Fennec runs tests in parallel. All results must be sent from the child processes to the parent process. That is the collectors job.
SEE ALSO
API
ABSTRACT METHODS
- $obj->write( $output )
-
Write an output object so that it can be found by the parent process. The write may occur in a process other than the parent.
- @outputs = $obj->cull()
-
Read the written output objects. This read will be done in the parent process.
CLASS METHODS
- $obj = $class->new( @handler_package_tails )
-
Create a new instance. @handler_package_taisl should be a list of handler packages, but only the part of the package name after 'Fennec::Handler::'. These packages will be loaded and instansiated.
OBJECT METHODS
- $handlers = $obj->handlers()
- $obj->handlers( \@handlers )
-
Get or set the list of handler objects.
- $obj->start()
-
Tell all handlers to start.
- $obj->finish()
-
Calls handle_output, then tells all handlers to finish.
- $obj->handle_output()
-
Culls all output objects and sends them to the handlers. Also handles bail_out objects.
AUTHORS
Chad Granum exodist7@gmail.com
COPYRIGHT
Copyright (C) 2010 Chad Granum
Fennec is free software; Standard perl licence.
Fennec is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the license for more details.