MyCPAN::Indexer::NullTester - Do nothing components
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
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.
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 )
indexer_callbackkey to HASH_REF. The value of
indexer_callbackis a no-op subroutine.
runsubroutine is a no-op too.
- Queue class: get_queue( HASH_REF )
queuekey to HASH_REF. The value of
queueis an empty
- Worker class: get_task( HASH_REF )
child_taskkey to HASH_REF. The value of
child_taskis a code reference that returns 1 and does nothing else.
- Reporter class: get_reporter( HASH_REF )
reporterkey to HASH_REF. The value of
reporteris a code reference that returns 1 and does nothing else.
- Dispatcher class: get_dispatcher()
get_dispatcheradds a dispatcher key to HASH_REF. The value is an object that responds to the start and finish methods, but does nothing.
get_dispatcheralso sets the
interface_callbackkey to a code reference that returns 1 and does nothing else.
- Interface class: do_interface( HASH_REF )
do_interfacesimly returns 1.
This code is in Github:
brian d foy,
Copyright © 2008-2018, brian d foy <firstname.lastname@example.org>. All rights reserved.
You may redistribute this under the terms of the Artistic License 2.0.