The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

TAP::Parser::SourceHandler::Worker - Stream TAP from an IO::Handle or a GLOB.

VERSION

Version 0.08

@workers

Class static variable to keep track of workers.

$number_of_workers

Class static variable to keep track of number of workers.

$listener

Class static variable to store the worker listener.

$use_local_public_ip

Class static variable to flag the local public ip is needed. Some of the home network might not have name server setup. Therefore, the public local ip is needed.

$local_public_ip

Class static variable to store the local public ip is needed. Some of the home network might not have name server setup. Therefore, the public local ip is needed.

$sync_type

Syncronize the source directory that will be used for testing to the remote host with the directory specified on the variable $destination_dir.

Currently it only support syncronize type of rsync.

$destination_dir

Syncronize the source to destination directory.

If it is not specified, it will be created with File::Temp::tempdir.

can_handle

  my $vote = $class->can_handle( $source );

Casts the following votes:

  Vote the same way as the L<TAP::Parser::SourceHandler::Perl> 
  but with 0.01 higher than perl source.

SYNOPSIS

make_iterator

  my $iterator = $class->make_iterator( $source );

Returns a new TAP::Parser::Iterator::Stream::Selectable for the source.

get_a_worker

  my $worker = $class->get_a_worker();

Returns a new workder IO::Socket

listener

  my $listener = $class->listener();

Returns worker listener IO::Socket::INET

iterator_class

The class of iterator to use, override if you're sub-classing. Defaults to TAP::Parser::Iterator::Worker.

workers

Returns list of workers.

get_active_workers

  my @active_workers = $class->get_active_workers;

Returns list of active workers.

load_options

Setup the worker specific options.

  my @active_workers = $class->load_options($app_prove_object, \@ARGV);

Returns boolean.