Big Sister
List of all members
Requester::expedap Class Reference

The (Ex)ternal (Pe)rformance (Da)ta (P)rovider requester. More...

Inheritance diagram for Requester::expedap:
Requester::SlowRequester Requester::Requester

Public Class Methods

 new ()
 create a requester.

Public Object Methods

scalar startup (list args)
 Starts the expedap external command (and extends the path so that it contains the expedap directory).
hashref getinfo (arrayref vars, arrayref indexes)
 Just calls walk with parameter list extended by an empty walks list.
hashref getwalk (arrayref vars, arrayref indexes, arrayref walks)
 Mainly determines the command from the variable list and the tester environment and then uses the superclass' getinfo() method.
void do (scalar srq)
 Accepts lines of the form.

Additional Inherited Members

- Public Member Functions inherited from Requester::SlowRequester
 TCP_port (scalar port)
 command (scalar command)
 timeout (scalar timeout)
 criticalness (scalar criticalness)
 returns criticalness of the handler
 consumes (scalar consumes)
 returns consumes of the handler
 startup (scalar gets, scalar indexes)
 open a connection / start a command / whatever and return a file handle
 setup (scalar srq, scalar gets, scalar indexes)
 called immediately before SlowReqWorker takes over setup() may copy any volatile data (like "env") over into the $srq object
 error (scalar srq)
 called if an error condition (e.g.
- Public Member Functions inherited from Requester::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?
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.

Detailed Description

The (Ex)ternal (Pe)rformance (Da)ta (P)rovider requester.

This requester requires an external program to handle the actual requests and return it to print "variable=value" lines on STDOUT.

Member Function Documentation

void Requester::expedap::do ( scalar  srq)

Accepts lines of the form.

variable=value

as written to the STDOUT of the expedap external program.

Reimplemented from Requester::SlowRequester.

hashref Requester::expedap::getinfo ( arrayref  vars,
arrayref  indexes 
)

Just calls walk with parameter list extended by an empty walks list.

Reimplemented from Requester::SlowRequester.

hashref Requester::expedap::getwalk ( arrayref  vars,
arrayref  indexes,
arrayref  walks 
)

Mainly determines the command from the variable list and the tester environment and then uses the superclass' getinfo() method.

Reimplemented from Requester::Requester.

Requester::expedap::new ( )

create a requester.

Reimplemented from Requester::Requester.

scalar Requester::expedap::startup ( list  args)

Starts the expedap external command (and extends the path so that it contains the expedap directory).

Passes arguments and return values through to/from the superclass method.


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