TheSchwartz::Worker::PubSubHubbubPublish - ping pubsubhubbub hub servers
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
This is a worker class for sending pings to PubSubHubbub hub servers. See TheSchwartz and Net::PubSubHubbub::Publisher for more information.
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.
coalesce
Brad Fitzpatrick -- brad@danga.com
Copyright 2009, Brad Fitzpatrick.
License to use under the same terms as Perl itself.
This software comes with no warranty of any kind.
TheSchwartz
http://code.google.com/p/pubsubhubbub/
To install TheSchwartz::Worker::PubSubHubbubPublish, copy and paste the appropriate command in to your terminal.
cpanm
cpanm TheSchwartz::Worker::PubSubHubbubPublish
CPAN shell
perl -MCPAN -e shell install TheSchwartz::Worker::PubSubHubbubPublish
For more information on module installation, please visit the detailed CPAN module installation guide.