Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
net_instaweb::CentralController Class Referenceabstract

#include "central_controller.h"

Inheritance diagram for net_instaweb::CentralController:
net_instaweb::CentralControllerRpcClient net_instaweb::InProcessCentralController net_instaweb::CompatibleCentralController

Public Member Functions

virtual void ScheduleExpensiveOperation (ExpensiveOperationCallback *callback)=0
 
virtual void ScheduleRewrite (ScheduleRewriteCallback *callback)=0
 
virtual void ShutDown ()=0
 

Detailed Description

Abstract interface class that supports various PSOL operations which should be performed in a centralized fashion, instead of once per worker process.

Member Function Documentation

virtual void net_instaweb::CentralController::ScheduleExpensiveOperation ( ExpensiveOperationCallback callback)
pure virtual

Runs callback at an indeterminate time in the future when it is safe to perform a CPU intensive operation. Or may Cancel the callback at some point if it is determined that the work cannot be performed.

Implemented in net_instaweb::CentralControllerRpcClient, and net_instaweb::InProcessCentralController.

virtual void net_instaweb::CentralController::ScheduleRewrite ( ScheduleRewriteCallback callback)
pure virtual

Runs callback at an indeterminate time in the future when the associated rewrite should be performed. May Cancel the callback immediately or at some point in the future if the rewrite should not be performed by the caller. Only one rewrite per callback.key() will be scheduled at once.

Implemented in net_instaweb::CentralControllerRpcClient, and net_instaweb::InProcessCentralController.

virtual void net_instaweb::CentralController::ShutDown ( )
pure virtual

Implementations of this method should try to cancel any pending operations ASAP, and immediately reject new incoming ones. This method should behave safely when called more than once.

Implemented in net_instaweb::CentralControllerRpcClient, and net_instaweb::InProcessCentralController.


The documentation for this class was generated from the following file: