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

#include "in_process_central_controller.h"

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

Public Member Functions

 InProcessCentralController (ExpensiveOperationController *expensive_operation_controller, ScheduleRewriteController *schedule_rewrite_controller)
 Takes ownership of both controllers.
 
void ScheduleExpensiveOperation (ExpensiveOperationCallback *callback) override
 
void ScheduleRewrite (ScheduleRewriteCallback *callback) override
 
void ShutDown () override
 

Static Public Member Functions

static void InitStats (Statistics *stats)
 

Detailed Description

Concrete implementation of CentralController, suitable for calling directly by workers that run in the same process as the controller. Implemented by delegating to pluggable implementations of the component tasks.

Member Function Documentation

void net_instaweb::InProcessCentralController::ScheduleExpensiveOperation ( ExpensiveOperationCallback callback)
overridevirtual

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.

Implements net_instaweb::CentralController.

void net_instaweb::InProcessCentralController::ScheduleRewrite ( ScheduleRewriteCallback callback)
overridevirtual

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.

Implements net_instaweb::CentralController.

void net_instaweb::InProcessCentralController::ShutDown ( )
overridevirtual

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.

Implements net_instaweb::CentralController.


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