Page Speed Optimization Libraries  1.7.30.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Member Functions | Protected Attributes
net_instaweb::SystemRewriteOptions Class Reference

#include "system_rewrite_options.h"

Inheritance diagram for net_instaweb::SystemRewriteOptions:
net_instaweb::RewriteOptions net_instaweb::ApacheConfig

List of all members.

Public Member Functions

 SystemRewriteOptions (const StringPiece &description, ThreadSystem *thread_system)
 SystemRewriteOptions (ThreadSystem *thread_system)
int64 file_cache_clean_interval_ms () const
void set_file_cache_clean_interval_ms (int64 x)
int64 file_cache_clean_size_kb () const
void set_file_cache_clean_size_kb (int64 x)
int64 file_cache_clean_inode_limit () const
void set_file_cache_clean_inode_limit (int64 x)
int64 lru_cache_byte_limit () const
void set_lru_cache_byte_limit (int64 x)
int64 lru_cache_kb_per_process () const
void set_lru_cache_kb_per_process (int64 x)
bool use_shared_mem_locking () const
void set_use_shared_mem_locking (bool x)
bool compress_metadata_cache () const
void set_compress_metadata_cache (bool x)
bool statistics_enabled () const
void set_statistics_enabled (bool x)
const GoogleString & statistics_handler_path () const
void set_statistics_handler_path (const GoogleString &x)
bool statistics_logging_enabled () const
void set_statistics_logging_enabled (bool x)
int64 statistics_logging_max_file_size_kb () const
const GoogleString & statistics_logging_charts_css () const
const GoogleString & statistics_logging_charts_js () const
int64 statistics_logging_interval_ms () const
void set_statistics_logging_interval_ms (int64 x)
const GoogleString & file_cache_path () const
void set_file_cache_path (const GoogleString &x)
const GoogleString & log_dir () const
void set_log_dir (const GoogleString &x)
const GoogleString & memcached_servers () const
void set_memcached_servers (const GoogleString &x)
int memcached_threads () const
void set_memcached_threads (int x)
int memcached_timeout_us () const
bool has_memcached_timeout_us () const
void set_memcached_timeout_us (int x)
const GoogleString & fetcher_proxy () const
void set_fetcher_proxy (const GoogleString &x)
void set_cache_flush_poll_interval_sec (int64 num_seconds)
 Cache flushing configuration.
int64 cache_flush_poll_interval_sec () const
void set_cache_flush_filename (const StringPiece &sp)
const GoogleString & cache_flush_filename () const
const GoogleString & ssl_cert_directory () const
const GoogleString & ssl_cert_file () const
int64 slurp_flush_limit () const
void set_slurp_flush_limit (int64 x)
bool slurp_read_only () const
void set_slurp_read_only (bool x)
bool rate_limit_background_fetches () const
const GoogleString & slurp_directory () const
void set_slurp_directory (GoogleString x)
bool disable_loopback_routing () const
bool fetch_with_gzip () const
int64 ipro_max_response_bytes () const
int64 ipro_max_concurrent_recordings () const
int64 default_shared_memory_cache_kb () const
void set_default_shared_memory_cache_kb (int64 x)
bool test_proxy () const
void set_test_proxy (bool x)
GoogleString test_proxy_slurp () const
bool slurping_enabled () const
 Helper functions.
bool slurping_enabled_read_only () const
virtual SystemRewriteOptionsClone () const
virtual SystemRewriteOptionsNewOptions () const
 Make an empty options object of the same type as this.
StringPiece description () const
void set_description (const StringPiece &x)

Static Public Member Functions

static void Initialize ()
static void Terminate ()
static const SystemRewriteOptionsDynamicCast (const RewriteOptions *instance)
static SystemRewriteOptionsDynamicCast (RewriteOptions *instance)

Protected Attributes

Option< GoogleString > statistics_handler_path_
 Apache and Nginx options classes need access to this.

Detailed Description

This manages configuration options specific to server implementations of pagespeed optimization libraries, such as mod_pagespeed and ngx_pagespeed.


Member Function Documentation

Make an identical copy of these options and return it. This does not* copy the signature, and the returned options are not in a frozen state.

Reimplemented from net_instaweb::RewriteOptions.

Reimplemented in net_instaweb::ApacheConfig.

StringPiece net_instaweb::SystemRewriteOptions::description ( ) const [inline]

Human-readable description of what this configuration is for. This may be a directory, or a string indicating a combination of directives for multiple directories. Should only be used for debugging.

Returns a suitably down cast version of 'instance' if it is an instance of this class, NULL if not.

Reimplemented in net_instaweb::ApacheConfig.

Static initialization of members. Calls to Initialize and Terminate must be matched. Returns 'true' for the first Initialize call and the last Terminate call.

Reimplemented from net_instaweb::RewriteOptions.

Reimplemented in net_instaweb::ApacheConfig.

If this is set to true, we'll turn on our fallback proxy-like behavior on non-.pagespeed. URLs without changing the main fetcher from Serf (the way the slurp options would).

This configures the fetcher we use for fallback handling if test_proxy() is on:

  • If this is empty, we use the usual fetcher (e.g. Serf)
  • If it's non-empty, the fallback URLs will be fetched from the given slurp directory. PageSpeed resource fetches, however, will still use the usual fetcher (e.g. Serf).

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines