Inca::DepotClient - A perl module for defining clients of Inca depots.
use Inca::DepotClient; my $client = new Inca::DepotClient( host => 'localhost', port => 6362, auth => 1, cert => 'etc/mycert.pem', init => 'etc/inca.properties', key => 'etc/mykey.pem', prefix => 'inca.depot.', trusted => 'etc/mycert.pem', password => '1ncaD1nkaD00' );
This module creates clients for Inca depots. It handles both unauthenticated and (where available) authenticated communication between client and server and implements methods that are supported by the inca depot.
Class constructor which returns a new Inca::DepotClient object. The constructor may be called with any of the following named parameters.
A boolean value indicating whether or not the connection to the depot should use certificate-based authentication. The default is false.
The path to the certificate file. Required for authenticated connections.
The IP or DNS name of the depot to contact. Required.
Optional path to an Inca properties file specifying values for other parameters.
The path to the private key file. Required for authenticated connections.
The password for decripting the private key file. Required for authenticated connections.
The server port to contact. Required.
Optional prefix for properties in the init file. The constructor ignores properties that lack this prefix and strips the prefix from those that have it. Default 'inca.depot.'.
The path to the trusted ca certificate file. Required for authenticated connections.
Asks the depot to insert a new report into the database. $resource is the name of the resource that generated the report; $context is the execution context for the reporter; $reportDoc the XML for the report itself (see Inca Report schema); $sysusage a string indicating cpu, wall clock, and memory usage, and $stderr optional stderr output from the reporter. Returns any successful reply from the depot.
Asks the depot to return XML that represents the structure of its database. Returns any succesful reply from the depot.
Asks the depot to return a newline-separated list of known suite guids. Returns any succesful reply from the depot.
Asks the depot use the HQL select statement $hql to extract and return information from the DB. On success, returns a reference to an array that contains the objects selected by the select statement.
Asks the depot to report details about one particular invocation of a reporter. $instanceId is the DB id of the instance for the invocation; $configId the related series configuration DB id. On success, returns a reference to a single-element array that contains a ReportDetails document (see ReportDetails schema) describing the instance.
Asks the depot to retrieve information about all instances related to the series configuration identified by $id, which may be either a numeric config id or a series nickname. On success, returns a reference to an array that contains a set of ReportDetail documents (see ReportDetails schema) related to the series.
Asks the depot to retrieve information about all the series of the suite identified by $guid. On success, returns a reference to an array that contains a set of ReportSummary documents (see ReportSummary schema) related to the series configurations of the suite.
Asks the depot to update its information about a suite configuration based on the contents of the Suite document $suiteDoc (see Suite schema). Returns any successful reply from the depot.
An internal method that reads a list of QUERYRESULT message from the depot and returns their data in an array reference.