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


TheSchwartz-Worker-PubSubHubbubPublish documentation  | view source Contained in the TheSchwartz-Worker-PubSubHubbubPublish distribution.

Index


NAME

Top

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

SYNOPSIS

Top

  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

Top

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

JOB ARGUMENTS

Top

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

Top

Brad Fitzpatrick -- brad@danga.com

COPYRIGHT, LICENSE, and WARRANTY

Top

SEE ALSO

Top

TheSchwartz

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


TheSchwartz-Worker-PubSubHubbubPublish documentation  | view source Contained in the TheSchwartz-Worker-PubSubHubbubPublish distribution.