Agent-TCLI
view release on metacpan or search on metacpan
lib/Agent/TCLI/Transport/Test.pm view on Meta::CPAN
=item dispatch_counter
A running counter of Dispatch attempts to prevent stalling.
B<dispatch_counter> will only contain numeric values.
=cut
my @dispatch_counter :Field
:Type('numeric')
:All('dispatch_counter');
=item dispatch_retries
The number of times to retry the dispatching of queued requests. Increments are in 5 second blocks. Default is 6 or 30 seconds. This is a user adjustable setting.
When the count is reached, the next test is dispatched without regard to the state of the previous test.
The timeout will not start until dispatching is done or exceeded its retries. This allows for other requests to complete.
B<dispatch_retries> will only contain numeric values.
=cut
my @dispatch_retries :Field
:Type('numeric')
:Arg('name'=>'dispatch_retries','default'=>6)
:Acc('dispatch_retries');
=item timeout_counter
A running counter for timing out all requests.
B<timeout_counter> will only contain numeric values.
=cut
my @timeout_counter :Field
:Type('numeric')
:All('timeout_counter');
=item timeout_retries
The number of times to retry the timeout. Increments are in 5 second blocks. Default is 6 or 30 seconds.
Timeout checks periodically to make sure we're still running requests. It begins the countdown when
all requests have been dispatched, so that we don't wait forever for something to complete. This is user adjustable.
B<timeout_retries> will only contain numeric values.
=cut
my @timeout_retries :Field
:Type('numeric')
:Arg('name'=>'timeout_retries','default'=>6)
:Acc('timeout_retries');
=item timeout_id
The id of the timeout event so that it can be rescheduled if necessary.
=cut
my @timeout_id :Field
# :Type('type')
:All('timeout_id');
=item running
A flag to indicate if we've started the POE kernel fully, rather than just running slices.
This is set when B<run> is called.
B<running> should only contain boolean values.
=cut
my @running :Field
# :Type('boolean')
:Arg('name'=>'running','default'=>0)
:Acc('running');
=item last_testee
Internally used when building a new test to check what the last testee was.
B<last_testee> will only contain scalar values.
=cut
my @last_testee :Field
# :Type('scalar')
:Arg('name'=>'last_testee','default'=>'')
:Acc('last_testee');
=item dispatch_id
Holds the POE event ID for the Dispatch so it can be rescheduled.
B<dispatch_id> should only contain scalar values.
=cut
my @dispatch_id :Field
# :Type('scalar')
:All('dispatch_id');
# Standard class utils are inherited
=back
=head2 METHODS
Most of these methods are for internal use within the TCLI system and may
be of interest only to developers trying to enhance TCLI.
The first three are the exception.
=over
=item done( <timeout>, <name> )
When B<done> is called, it will attempt to complete all previous requests before
continuing. If done is provided a name parameter, it will report its
results as a test. That is, it will pass if all previous tests are
completed before the timeout. In either case, it will return true if all tests
are complete and false otherwise.
It takes an optional timeout parameter, an integer in seconds. The default timeout
is 31 seconds if none is supplied.
It takes an option parameter of a test name.
=cut
sub done {
my ($self, $wait, $name) = @_;
( run in 1.429 second using v1.01-cache-2.11-cpan-75ffa21a3d4 )