Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Perl Modules

    Verby::Dispatcher 0.05

    Download button

    No screenshots available
    Downloads: 274  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Yuval Kogman | More programs
    Perl Artistic License / FREE
    December 10th, 2007, 23:11 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Verby::Dispatcher description

    Verby::Dispatcher is a Perl module that takes steps and executes them.

    Verby::Dispatcher is a Perl module that takes steps and executes them. Sort of like what make is to a Makefile.

    SYNOPSIS

    use Verby::Dispatcher;
    use Verby::Config::Data; # or something equiv

    my $c = Verby::Config::Data->new(); # ... needs the "logger" field set

    my $d = Verby::Dispatcher->new;
    $d->config_hub($c);

    $d->add_steps(@steps);

    $d->do_all;


    METHODS

    new

    Returns a new Verby::Dispatcher. Duh!

    add_steps *@steps
    add_step *@steps


    Add a number of steps into the dispatcher pool.

    Anything returned from "depends" in Verby::Step is aggregated recursively here, and added into the batch too.

    do_all

    Calculate all the dependencies using Algorithm::Dependency::Objects, and then dispatch in order.

    dep_engine_class

    The class used to instantiate the dependecy resolver. Defaults to Algorithm::Dependency::Objects::Ordered. Subclass if you don't like it.

    config_hub ?$new_config_hub

    A setter getter for the Verby::Config::Data (or compatible) object from which we will derive the global context, and it's sub-contexts.

    global_context

    Returns the global context for the dispatcher.

    If necessary derives a context from "config_hub".

    is_running $step

    Whether or not $step is currently executing.

    is_satisfied $step

    Whether or not $step does not need to be executed (because it was already executed or because it didn't need to be in the first place).

    get_cxt $step

    Returns the context associated with $step. This is where $step will write it's data.

    get_derivable_cxts $step

    Returns the contexts to derive from, when creating a context for $step.

    If $step starts a new context ("provides_cxt" in Step is true) then a new context is created here, derived from get_parent_cxts($step). Otherwise it simply returns get_parent_cxts($step).

    Note that when a step 'provides a context' this really means that a new context is created, and this context is derived for the step, and any step that depends on it.

    get_parent_cxts $step

    If $step depends on any other steps, take their contexts. Otherwise, returns the global context.

    start_step $step

    If step supports the async interface, start it and put it in the running step queue. If it's synchroneous, call it's "do" in Step method.

    finish_step $step

    Finish step, and mark it as satisfied. Only makes sense for async steps.

    mark_running $step

    Put $step in the running queue, and mark it in the running step set.

    push_running $step

    Push $step into the running step queue.

    pop_running

    Pop a step from the running queue.

    mk_dep_engine

    Creates a new object using "dep_engine_class".

    ordered_steps

    Returns the steps to be executed in order.

    pump_running

    Give every running step a bit of time to move things forward.

    This method is akin to "pump" in IPC::Run.

    It also calls "finish_step" on each step that returns false.

    steps

    Returns a list of steps that the dispatcher cares about.

    step_set

    Returns the Set::Object that is used for internal bookkeeping of the steps involved.

    running_steps

    Returns a list of steps currently running.

    running_set

    Returns the Set::Object that is used to track which steps are running.

    satisfied_set

    Returns the Set::Object that is used to track which steps are satisfied.

    wait_all

    Wait for all the running steps to finish.

    wait_one

    Effectively finish_step(pop_running).

    wait_specific $step

    Waits for a specific step to finish. Called by pump_running when a step claims that it's ready.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    Perl dispatcher | Perl makefile | Perl module | Makefile | dispatcher | Perl

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM