GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  QUDO::MANUAL::JA::FUNCTIONS (3)

.ds Aq ’

NAME

Qudo::Manual::JA::Function - Qudo’s major function document lang:ja

CONTENTS

DESCRIPTION

XXXXQudoXXXXXXXXXXXXXXXXXX

Hook

QudoXXXXXHookXXXXXXXXXXHookXXXXXXXXXXXXXXXXXXXXXXX

Job X enqueueXXXXXXXXXXXXXXXXXXXXX

XXXXXenqueueXXXXXXXXJSONXXXXXXXXXXXXX



    my $client = Qudo->new(...);
    $client->register_hooks(Qudo::Hook::Serialize::JSON);
    $client->enqueue(Test::Worker, { arg => {name => nekokak}, uniqkey => uniq});



XXXXXHookXXXXXXregister_hooksXXXXXXXXXX XXXXXXXJSONXXXXXXXXXXXXXXXXX

HookXXXXXXXXXXXXXXXXXXQudoXXXXXXXXXXXXXXXXXXXXXX

Hook PointXXXXXXXXXXX



    pre_enqueue
    post_enqueue
    serialize
    deserialize
    pre_work
    post_work



    pre_enqueue

jobXdatabaseXenqueueXXXXXXXXXXXX

    post_enqueue

jobXdatabaseXenqueueXXXXXXXXXXXXX

    pre_work

jobXXXXXXXXXXXXXXXXXXXXX

    post_work

jobXXXXXXXXXXXXXXXXXXXXX

    serialize

jobXdatabaseXenqueueXXXXXpre_enqueueXXXXXXXXXXXXXXXX

    deserialize

jobXXXXXXXXXXXXXXpre_workXXXXXXXXXXXXXXXX

Plugin

QudoXXXXXPluginXXXXXXXXXX

XXXXworkerXXXdebug printXXPluginXXXXXXXXXX



    package Your::Plugin::DebugPrint;
    use strict;
    use warnings;
    use base Qudo::Plugin;
   
    sub plugin_name { debug }
   
    sub load {
        my $class = shift;
        $class->register(
            sub {
                my $val = shift;
                print STDOUT $val;
            }
        );
    }



XXXXPluginXloadXXXX



    $worker->register_plugins(qw/Your::Plugin::DebugPrint/);



XXXXXregister_pluginsXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

XXXXXXXXXXXX



    package Worker::Test;
    use base Qudo::Worker;
    sub work {
        my ($self, $job) = @_;
        $job->manager->plugin->{debug}->(debug message in Worker::Test::work);
    }



XXXXXXXXX

Your::Plugin::DebugPrintXXXXXplugin_nameXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXX

XXXXXXXXXXPluginXXXXXXXXXXXXXXXX:)

Error Handling

jobXXXXcompleteXXXXXXXXexception_logXXXXXXXXXXXXXXXXXXX TheSchwartzXXXXXjobXXXXXXXXXXXerrorXXXXXXXXXXXXXXXXXXXX errorXXXXXXXXXXXXXXXXXXXXXXXXXXXdeleteXXXXX QudoXXXXexception_logXXXXXXXXXXQudoXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    exception_list

QudoXXexception_logXXXXXXXXXXXXXXXXXXXXXXXX



    $client->exception_list;



exception_listXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXX



    my $exceptions = $client->exception_list
    $client->enqueue_from_failed_job($exceptions->[0]);



XXXXXXXXXXXXXXXXXJobXXXXXXJobXXXXXXXXX

XXXXXXXXXXXretriedX1XXXXXXXXXXXXXXJobXXXXXXXXXXXX

Job Handling

JobXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    job_count

QudoXXJobXXXXXXXXXXXXXXXXXXXXXXXXX



    $client->job_count([qw/Your::Worker::Mail/]);



job_countXXXXXXXXXXXXXXXXXXXXXXXXXXXXXJobXXXXXXXXXXXXXXX

    job_status_list

job_status_listXXXXXXXXXXXXXXJobXXXXXXXXXXXXXXX job_status_listXXXXXXXXXX



    package Worker::Test;
    use base Qudo::Worker;
    sub set_job_status { 1 }
    sub work {
        my ($self, $job) = @_;
        $job->completed();
    }



XXXXXXset_job_statusX1XXXXXXXXXX XXXXXXXset_job_statusX0XXXXXXXXXXX JobXXXXXXXXXXXXXX

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 QUDO::MANUAL::JA::FUNCTIONS (3) 2010-11-08

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.