Big Sister
List of all members
Requester::CommandWatchRequester Class Reference
Inheritance diagram for Requester::CommandWatchRequester:
Requester::WatchRequester Requester::Requester Requester::sysvsar Requester::vmstat

Public Member Functions

Public Object Methods
retval start_sensor (scalar handle, scalar duration)
retval request (list args)
retval set_command (scalar command_template)
retval command (scalar duration)
retval getresults (scalar handle)
retval abort_sensor (scalar handle)
- Public Member Functions inherited from Requester::WatchRequester
retval request (scalar env, scalar domain, scalar variables)
retval getinfo ()
retval criticalness (scalar criticalness)
retval consumes (scalar consumes)
retval DESTROY ()
retval setup_sensor (scalar frequency)
- Public Member Functions inherited from Requester::Requester
 new ()
 create a requester.
void register (list domains)
 Register a requester for one or multiple domains.
hashref request (hashref env, scalar domain, arrayref variables)
 Computes (or requests) the values of the variables listed in variables.
boolean fail_novar (boolean fail)
 Not used any more?
hashref getinfo (arrayref gets, arrayref indexes)
 Called by the default request() method with gets set to the list of the variables, indexes set to the list of variable indexes to be retrieved.
hashref getwalk (arrayref gets, arrayref indexes, arrayref walks)
 Similiar to getinfo(), but getwalk() is called by the default request() method if the request includes a "walk" and passes the list of variables to be walked via the walks parameter.
boolean available (hashref env)
 Determine if a requester is willing to perform (handle requests) for a given tester environment.
boolean command_available (list cmd)
 Tests if cmd is runnable - usually called by classes inherited from Requester::Requester in their available() method in order to find out if a system command they require is present or not.
int criticalness (int criticalness)
 Get/Set the criticalness of a handler.
int consumes (int consumes)
 Get/set consume level of a handler.
list probe_consumes (hashref env, arrayref variables)
 Given a list of variable names and an environment, probe_consumes() will try to determine the criticalness/consumes values for the requests that it takes to get all those variable's values.
hashref get (hashref env, arrayref variables)
 Given a list of variable names and a tester environment requests all the variables and returns the result in a hash ref.
Requester::Requester get_handler (scalar domain)
 Given the name of a domain this function searches for a request handler that is willing to perform requests for this domain.
boolean load_module (scalar module)
 Given the name of a module tries to dynamically load Requester::modulename.
protected void preexit ()
 This function is called during program shutdown.
protected hashref _get (hashref env, arrayref variables, scalar probe_only)
 Implements both the get() and probe_consumes() call.
protected void set_cache (hashref env, scalar domain, scalar name, hashref value)
 Given a domain, variable name and a value stores the value in the cache under the given domain/name.
protected void clear_cache ()
 Clear the variable cache.

Member Function Documentation

retval Requester::CommandWatchRequester::abort_sensor ( scalar  handle)

Reimplemented from Requester::WatchRequester.

retval Requester::CommandWatchRequester::command ( scalar  duration)
retval Requester::CommandWatchRequester::getresults ( scalar  handle)

Reimplemented from Requester::WatchRequester.

retval Requester::CommandWatchRequester::request ( list  args)
retval Requester::CommandWatchRequester::set_command ( scalar  command_template)
retval Requester::CommandWatchRequester::start_sensor ( scalar  handle,
scalar  duration 
)

Reimplemented from Requester::WatchRequester.


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