NAME
MyCPAN::Indexer::NullTester - Do nothing components
SYNOPSIS
Use this in backpan_indexer.pl by specifying it as the class you want to do nothing:
# in backpan_indexer.config
worker_class MyCPAN::Indexer::NullTester
DESCRIPTION
This class implements all of the methods needed by all of the component classes. Thes methods don't do anything, so they can be useful to ignore parts of the system while you focus on developing another. For instance, you might use this module as the reporter_class, since it does nothing, which you work on the dispatcher_class.
Methods
- component_type
-
This is a composite component, although you don't have to use all of them at the same time.
- Indexer class: get_indexer( HASH_REF )
-
get_indexer
adds aindexer_callback
key to HASH_REF. The value ofindexer_callback
is a no-op subroutine.The
run
subroutine is a no-op too. - Queue class: get_queue( HASH_REF )
-
get_queue
adds aqueue
key to HASH_REF. The value ofqueue
is an empty - Worker class: get_task( HASH_REF )
-
get_task
adds achild_task
key to HASH_REF. The value ofchild_task
is a code reference that returns 1 and does nothing else. - Reporter class: get_reporter( HASH_REF )
-
get_reporter
adds areporter
key to HASH_REF. The value ofreporter
is a code reference that returns 1 and does nothing else. - Dispatcher class: get_dispatcher()
-
get_dispatcher
adds a dispatcher key to HASH_REF. The value is an object that responds to the start and finish methods, but does nothing.get_dispatcher
also sets theinterface_callback
key to a code reference that returns 1 and does nothing else. - Interface class: do_interface( HASH_REF )
-
do_interface
simly returns 1.
SEE ALSO
MyCPAN::Indexer::Tutorial
SOURCE AVAILABILITY
This code is in Github:
git://github.com/briandfoy/mycpan-indexer.git
AUTHOR
brian d foy, <bdfoy@cpan.org>
COPYRIGHT AND LICENSE
Copyright © 2008-2018, brian d foy <bdfoy@cpan.org>. All rights reserved.
You may redistribute this under the terms of the Artistic License 2.0.