NAME

Labrador::Dispatcher::Commands

DESCRIPTION

This module contains all the event handlers for all verbs.

METHODS

new($config)

Constructor. Called init()

init($event_handler)

Registers all commands with the event handler, at their appropraite privielege level.

helo($invocation)

Logon a client.

quit($invocation)

Disconnect a client.

work($invocation)

Any work to be done?

noop

Do nothing - a ping essentially.

conf($invocation)

Sends the configuration file to the client.

next($invocation)

Obtain the next URLs to crawl

finished($invocation)

Mark this URL as finished.

failed($invocation)

Mark this URL as failed.

allowed($invocation)

Returns whether a URL is OK to crawl or not. Not used by any client code currently.

robots($invocation)

Sends back the robots.txt file for the mentioned host if available.

fingerprint($invocation)

Marks the provided fingerprint as seen.

robotsfile($invocation)

Adds the provided robots.txt file to the cache.

stats($invocation)

Adds submitted stats to running totals.

monitor($invocation)

Obtains the dispatchers running totals.

checkpoint($invocation)

Force a checkpoint of all data structures to disk.

shutdown($invocation)

Shutdown the dispatcher

pause($invocation)

Temporarily pause the dispatcher from allocating more URLs.

start($invocation)

Restart the dispacher after a pause.

eval($invocation)

Eval this code. EXPERIMENTAL

REVISION

	$Revision: 1.27 $