NAME

Xango::Broker::Push - Xango's Push-Crawler

SYNOPSIS

use Xango::Broker::Push;

Xango::Broker::Push->spawn(
  
);

# in some other session...
foreach my $job (@jobs) {
  $kernel->post($broker_session, 'dispatch_job', $job);
}

DESCRIPTION

Xango::Broker::Push implements the push-model crawler for Xango. A separate session must notify the crawler that there are jobs to be fetched.

This is the preferred model if:

(a) Crawling is triggered by an event, not in a periodic manner
(b) You have long intervals between when jobs are available
(c) You have external entities that can work in a separate process to generate
the list of jobs to be processed

STATES

enqueue_job($job)

Enqueues a job to be processed.

flush_pending

flushes pending jobs, if possible

finalize_job

SEE ALSO

Xango::Broker::Base Xango::Broker::Pull

AUTHOR

Copyright (c) 2005 Daisuke Maki <dmaki@cpan.org>. All rights reserved. Development funded by Brazil, Ltd. <http://b.razil.jp>