The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

TheSchwartz::Worker::PubSubHubbubPublish - ping pubsubhubbub hub servers

SYNOPSIS

  use TheSchwartz;
  use TheSchwartz::Worker::PubSubHubbubPublish;
  my $sclient = TheSchwartz->new(databases => \@Conf::YOUR_DBS);
  $sclient->can_do("TheSchwartz::Worker::PubSubHubbubPublish");
  $sclient->work; # main loop of program; goes forever, pinging as needed

DESCRIPTION

This is a worker class for sending pings to PubSubHubbub hub servers. See TheSchwartz and Net::PubSubHubbub::Publisher for more information.

JOB ARGUMENTS

When constructing a job using TheSchwartz's insert_job method, construct your TheSchwartz::Job instance with its 'argument' of the following form:

   {
      hub => $hub_url,   # the hub's endpoint URL
      topic_url => $url, # Atom URL that was updated 
   }

Also, if you set your TheSchwartz::Job's coalesce property to be the hub URL, this worker will do batch pings instead, vastly reducing the number of HTTP requests it does.

AUTHOR

Brad Fitzpatrick -- brad@danga.com

COPYRIGHT, LICENSE, and WARRANTY

Copyright 2009, Brad Fitzpatrick.

License to use under the same terms as Perl itself.

This software comes with no warranty of any kind.

SEE ALSO

TheSchwartz

http://code.google.com/p/pubsubhubbub/