NAME

Net::Telnet::Gearman::Function

SYNOPSIS

use Net::Telnet::Gearman;

my $session = Net::Telnet::Gearman->new(
    Host => '127.0.0.1',
    Port => 4730,
);

my @functions = $session->status();

print Dumper @functions

# $VAR1 = bless(
#     {
#         'busy'    => 10,
#         'free'    => 0,
#         'name'    => 'resize_image',
#         'queue'   => 74,
#         'running' => 10
#     },
#     'Net::Telnet::Gearman::Function'
# );

METHODS

name

Returns the name of the function.

queue

Returns the amount of queued jobs for this function.

busy

Returns the amount of workers currently working on this function.

free

Returns the amount of free workers that can do this function.

running

Returns the amount of running workers registered for this function.

AUTHOR

Johannes Plunien <plu@cpan.org>

COPYRIGHT AND LICENSE

Copyright 2009 by Johannes Plunien

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO