17 #ifndef PAGESPEED_SYSTEM_SYSTEM_SERVER_CONTEXT_H_ 
   18 #define PAGESPEED_SYSTEM_SYSTEM_SERVER_CONTEXT_H_ 
   20 #include "net/instaweb/http/public/request_context.h" 
   31 namespace net_instaweb {
 
   39 class RewriteDriverFactory;
 
   42 class SharedMemStatistics;
 
   44 class SystemCachePath;
 
   46 class SystemRewriteDriverFactory;
 
   47 class SystemRewriteOptions;
 
   49 class UrlAsyncFetcherStats;
 
   79   GoogleString hostname_identifier() { 
return hostname_identifier_; }
 
  130                       const QueryParams& query_params, AsyncFetch* fetch);
 
  143   void AdminPage(
bool is_global, 
const GoogleUrl& stripped_gurl,
 
  144                  const QueryParams& query_params, 
const RewriteOptions* options,
 
  152   void StatisticsPage(
bool is_global, 
const QueryParams& query_params,
 
  153                       const RewriteOptions* options,
 
  156   AdminSite* admin_site() { 
return admin_site_.get(); }
 
  187                    const GoogleUrl& stripped_gurl,
 
  188                    const QueryParams& query_params,
 
  189                    const RewriteOptions* options,
 
  197   Variable* statistics_404_count();
 
  209   void CheckLegacyGlobalCacheFlushFile();
 
  211   scoped_ptr<AdminSite> admin_site_;
 
  214   bool use_per_vhost_statistics_;
 
  219   scoped_ptr<AbstractMutex> cache_flush_mutex_;
 
  220   int64 last_cache_flush_check_sec_; 
 
  222   Variable* cache_flush_count_;
 
  223   UpDownCounter* cache_flush_timestamp_ms_;
 
  225   Histogram* html_rewrite_time_us_histogram_;
 
  228   scoped_ptr<Statistics> split_statistics_;
 
  231   SharedMemStatistics* local_statistics_;
 
  234   scoped_ptr<RewriteStats> local_rewrite_stats_;
 
  235   scoped_ptr<UrlAsyncFetcherStats> stats_fetcher_;
 
  242   SystemCaches* system_caches_;
 
  244   SystemCachePath* cache_path_;
 
void UpdateCachePurgeSet(const CopyOnWrite< PurgeSet > &purge_set)
 
void MessageHistoryHandler(const RewriteOptions &options, AdminSite::AdminSource source, AsyncFetch *fetch)
Displays recent Info/Warning/Error messages. 
 
SystemServerContext(RewriteDriverFactory *factory, StringPiece hostname, int port)
 
virtual void CollapseConfigOverlaysAndComputeSignatures()
 
void ConsoleJsonHandler(const QueryParams ¶ms, AsyncFetch *fetch)
Returns JSON used by the PageSpeed Console JavaScript. 
 
Base class for implementations of monitoring statistics. 
Definition: statistics.h:342
 
void AddHtmlRewriteTimeUs(int64 rewrite_time_us)
 
void AdminPage(bool is_global, const GoogleUrl &stripped_gurl, const QueryParams &query_params, const RewriteOptions *options, AsyncFetch *fetch)
 
A server context with features specific to a psol port on a unix system. 
Definition: system_rewrite_driver_factory.h:57
 
void StatisticsPage(bool is_global, const QueryParams &query_params, const RewriteOptions *options, AsyncFetch *fetch)
 
virtual bool UpdateCacheFlushTimestampMs(int64 timestamp_ms)
 
Definition: system_rewrite_options.h:40
 
void CreateLocalStatistics(Statistics *global_statistics, SystemRewriteDriverFactory *factory)
 
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_. 
Definition: string.h:24
 
void PrintCaches(bool is_global, AdminSite::AdminSource source, const GoogleUrl &stripped_gurl, const QueryParams &query_params, const RewriteOptions *options, AsyncFetch *fetch)
 
void FlushCacheIfNecessary()
 
bool initialized() const 
Definition: system_server_context.h:101
 
Definition: rewrite_driver.h:100
 
void StatisticsGraphsHandler(Writer *writer)
Deprecated handler for graphs in the PSOL console. 
 
Definition: server_context.h:99
 
A server context with features specific to a PSOL port on a unix system. 
Definition: system_server_context.h:53
 
void PrintHistograms(bool is_global_request, AdminSite::AdminSource source, AsyncFetch *fetch)
Print histograms showing the dynamics of server activity. 
 
AdminSource
Definition: admin_site.h:52
 
Definition: copy_on_write.h:34
 
const GoogleString & hostname() const 
Returns the current server hostname. 
Definition: server_context.h:554
 
virtual void PostInitHook()
Initialize this SystemServerContext to set up its admin site. 
 
void ConsoleHandler(const SystemRewriteOptions &options, AdminSite::AdminSource source, const QueryParams &query_params, AsyncFetch *fetch)
 
virtual void ApplySessionFetchers(const RequestContextPtr &req, RewriteDriver *driver)
 
void PrintConfig(AdminSite::AdminSource source, AsyncFetch *fetch)
Print details for configuration. 
 
Definition: system_cache_path.h:49
 
virtual void ChildInit(SystemRewriteDriverFactory *factory)
Called by SystemRewriteDriverFactory::ChildInit. See documentation there. 
 
void StatisticsHandler(const RewriteOptions &options, bool is_global_request, AdminSite::AdminSource source, AsyncFetch *fetch)
 
Definition: rewrite_driver_factory.h:70