perfSONAR_PS::Services::MA::General - A module that provides methods for general tasks that MAs need to perform, such as querying for results.
This module is a catch all for common methods (for now) of MAs in the perfSONAR-PS framework. As such there is no 'common thread' that each method shares. This module IS NOT an object, and the methods can be invoked directly (and sparingly).
Given a metadata node, constructs and returns an XQuery statement.
Helper function for the subject and parameters portion of a metadata element. Used by 'getMetadataXQuery', not to be called externally.
Helper function for the eventType portion of a metadata element. Used by 'getMetadataXQuery', not to be called externally.
Given a data node, constructs and returns an XQuery statement.
Helper function for the parameters portion of NMWG elements, not to be called externally.
Helper function for the attributes portion of NMWG elements, not to be called externally.
Helper function for the text portion of NMWG elements, not to be called externally.
Helper function for the eventTYpe portion of NMWG elements, not to be called externally.
Returns either an error or the actual results of an RRD database query.
Given an MA object, this will 'adjust' the time values in an data request that will end up quering an RRD database. The time values are only 'adjusted' if the resolution value makes them 'uneven' (i.e. if you are requesting data between 1 and 70 with a resolution of 60, RRD will default to a higher resolution becaues the boundaries are not exact). We adjust the start/end times to better fit the requested resolution.
Extract the filter parameters from the filter metadata block.
Checks the various nesting combinations possible when specifying time.
Given an elemenet (normally time based), checks to see if it is 'complex', i.e. if there are nested elements inside. If there are none, return the text that is enclosed.
Log::Log4perl, Params::Validate, perfSONAR_PS::Common, perfSONAR_PS::Messages
To join the 'perfSONAR-PS' mailing list, please visit:
The perfSONAR-PS subversion repository is located at:
Questions and comments can be directed to the author, or the mailing list. Bugs, feature requests, and improvements can be directed here:
$Id: General.pm 1877 2008-03-27 16:33:01Z aaron $
Jason Zurawski, firstname.lastname@example.org
You should have received a copy of the Internet2 Intellectual Property Framework along with this software. If not, see <http://www.internet2.edu/membership/ip.html>
Copyright (c) 2004-2008, Internet2 and the University of Delaware
All rights reserved.
To install perfSONAR_PS::Services::MA::General, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.