stash_cache
[Net-SNMP Agent handler and extensibility API]

Automatically caches data for certain handlers. [詳細]

関数

netsnmp_stash_cache_infonetsnmp_get_new_stash_cache (void)
netsnmp_mib_handlernetsnmp_get_timed_bare_stash_cache_handler (int timeout, oid *rootoid, size_t rootoid_len)
 returns a stash_cache handler that can be injected into a given handler chain (with the specified timeout and root OID values), but *only* if that handler chain explicitly supports stash cache processing.
netsnmp_mib_handlernetsnmp_get_bare_stash_cache_handler (void)
 returns a single stash_cache handler that can be injected into a given handler chain (with a fixed timeout), but *only* if that handler chain explicitly supports stash cache processing.
netsnmp_mib_handlernetsnmp_get_stash_cache_handler (void)
 returns a stash_cache handler sub-chain that can be injected into a given (arbitrary) handler chain, using a fixed cache timeout.
netsnmp_mib_handlernetsnmp_get_timed_stash_cache_handler (int timeout, oid *rootoid, size_t rootoid_len)
 returns a stash_cache handler sub-chain that can be injected into a given (arbitrary) handler chain, using a configurable cache timeout.
netsnmp_oid_stash_node ** netsnmp_extract_stash_cache (netsnmp_agent_request_info *reqinfo)
 extracts a pointer to the stash_cache info from the reqinfo structure.
int netsnmp_stash_cache_helper (netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, netsnmp_request_info *requests)
int _netsnmp_stash_cache_load (netsnmp_cache *cache, void *magic)
 updates a given cache depending on whether it needs to or not.
void _netsnmp_stash_cache_free (netsnmp_cache *cache, void *magic)
void netsnmp_init_stash_cache_helper (void)
 initializes the stash_cache helper which then registers a stash_cache handler as a run-time injectable handler for configuration file use.

説明

Automatically caches data for certain handlers.

This handler caches data in an optimized way which may aleviate the need for the lower level handlers to perform as much optimization. Specifically, somewhere in the lower level handlers must be a handler that supports the MODE_GET_STASH operation. Note that the table_iterator helper supports this.


関数

int _netsnmp_stash_cache_load ( netsnmp_cache cache,
void *  magic 
)

updates a given cache depending on whether it needs to or not.

stash_cache.c190 行で定義されています。

参照先 netsnmp_stash_cache_info_s::cachenetsnmp_cache_s::cache_hintnetsnmp_handler_args_s::handlernetsnmp_cache_s::magicnetsnmp_agent_request_info_s::modenetsnmp_agent_add_list_data()netsnmp_call_next_handler()netsnmp_create_data_list()netsnmp_get_new_stash_cache()netsnmp_mib_handler_s::nextNULLnetsnmp_handler_args_s::reginfonetsnmp_handler_args_s::reqinfonetsnmp_handler_args_s::requests.

参照元 netsnmp_get_timed_bare_stash_cache_handler().

netsnmp_oid_stash_node** netsnmp_extract_stash_cache ( netsnmp_agent_request_info reqinfo  ) 

extracts a pointer to the stash_cache info from the reqinfo structure.

stash_cache.c112 行で定義されています。

参照先 netsnmp_agent_get_list_data().

参照元 netsnmp_stash_to_next_helper()netsnmp_table_iterator_helper_handler().

netsnmp_mib_handler* netsnmp_get_bare_stash_cache_handler ( void   ) 

returns a single stash_cache handler that can be injected into a given handler chain (with a fixed timeout), but *only* if that handler chain explicitly supports stash cache processing.

stash_cache.c78 行で定義されています。

参照先 netsnmp_get_timed_bare_stash_cache_handler()NULL.

参照元 netsnmp_get_stash_cache_handler().

netsnmp_mib_handler* netsnmp_get_stash_cache_handler ( void   ) 

returns a stash_cache handler sub-chain that can be injected into a given (arbitrary) handler chain, using a fixed cache timeout.

stash_cache.c87 行で定義されています。

参照先 netsnmp_get_bare_stash_cache_handler()netsnmp_get_stash_to_next_handler()netsnmp_mib_handler_s::next.

参照元 netsnmp_init_stash_cache_helper().

netsnmp_mib_handler* netsnmp_get_timed_bare_stash_cache_handler ( int  timeout,
oid *  rootoid,
size_t  rootoid_len 
)

returns a stash_cache handler that can be injected into a given handler chain (with the specified timeout and root OID values), but *only* if that handler chain explicitly supports stash cache processing.

stash_cache.c44 行で定義されています。

参照先 _netsnmp_stash_cache_free()_netsnmp_stash_cache_load()netsnmp_mib_handler_s::myvoidnetsnmp_cache_create()netsnmp_cache_handler_get()netsnmp_create_handler()netsnmp_handler_free()netsnmp_stash_cache_helper()netsnmp_mib_handler_s::nextNULL.

参照元 netsnmp_get_bare_stash_cache_handler()netsnmp_get_timed_stash_cache_handler().

netsnmp_mib_handler* netsnmp_get_timed_stash_cache_handler ( int  timeout,
oid *  rootoid,
size_t  rootoid_len 
)

returns a stash_cache handler sub-chain that can be injected into a given (arbitrary) handler chain, using a configurable cache timeout.

stash_cache.c100 行で定義されています。

参照先 netsnmp_get_stash_to_next_handler()netsnmp_get_timed_bare_stash_cache_handler()netsnmp_mib_handler_s::next.

void netsnmp_init_stash_cache_helper ( void   ) 

initializes the stash_cache helper which then registers a stash_cache handler as a run-time injectable handler for configuration file use.

stash_cache.c233 行で定義されています。

参照先 netsnmp_get_stash_cache_handler()netsnmp_register_handler_by_name().

参照元 netsnmp_init_helpers().


net-snmpに対してSat Sep 5 13:14:29 2009に生成されました。  doxygen 1.4.7