|
static const char | kNumRewritesRequested [] |
|
static const char | kNumRewritesSucceeded [] |
|
static const char | kNumRewritesFailed [] |
|
static const char | kNumRewritesRejectedQueueSize [] |
|
static const char | kNumRewritesRejectedInProgress [] |
|
static const char | kRewriteQueueSize [] |
|
static const char | kNumRewritesRunning [] |
|
static const char | kNumRewritesAwaitingRetry [] |
|
|
class | PopularityContestScheduleRewriteControllerTest |
|
net_instaweb::PopularityContestScheduleRewriteController::PopularityContestScheduleRewriteController |
( |
ThreadSystem * |
thread_system, |
|
|
Statistics * |
statistics, |
|
|
Timer * |
timer, |
|
|
int |
max_running_rewrites, |
|
|
int |
max_queued_rewrites |
|
) |
| |
max_running_rewrites and max_queued_rewrites are CHECKed to be > 0. Since max_running_rewrites is implicity bounded by the queue size, you probably want queued >= running, but this isn't enforced by the code.
void net_instaweb::PopularityContestScheduleRewriteController::NotifyRewriteComplete |
( |
const GoogleString & |
key | ) |
|
|
overridevirtual |
Inform controller that the rewrite has been completed. Should only be called if Run() was invoked on callback above. Controller implemenations may wish to behave differently depending on success or failure of the result, for instance by retrying failures ASAP. Failure should not be used in the case of permanent failure, such as a badly formed input.
Implements net_instaweb::ScheduleRewriteController.
The documentation for this class was generated from the following file: