OSID Logo
OSID Specifications
metering package
Version 3.1.0
Interfaceosid.metering.MeterSearchSession
Implementsosid.metering.MeterQuerySession
Used Byosid.metering.MeteringManager
osid.metering.MeteringProxyManager
Description

This session provides methods for searching among meters. The search query is constructed using the MeterQuery.

getMetersByQuery() is the basic search method and returns a list of meters. A more advanced search may be performed with getMetersBySearch().It accepts a MeterSearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getMetersBySearch() returns a MeterSearchResults that can be used to access the resulting MeterList or be used to perform a search within the result set through MeterSearch.

This session defines views that offer differing behaviors for searching.

  • federated utility view: searches include meters in utilities of which this utility is an ancestor in the utility hierarchy
  • isolated utility view: searches are restricted to meters in this utility only
MethodgetMeterSearch
Description

Gets a meter search.

Returnosid.metering.MeterSearch the meter search
Compliancemandatory This method must be implemented.
MethodgetMeterSearchOrder
Description

Gets a meter search order. The MeterSearchOrder is supplied to a MeterSearch to specify the ordering of results.

Returnosid.metering.MeterSearchOrder the meter search order
Compliancemandatory This method must be implemented.
MethodgetMetersBySearch
Description

Gets the search results matching the given search query using the given search.

Parametersosid.metering.MeterQuerymeterQuery the meter query
osid.metering.MeterSearchmeterSearch the meter search
Returnosid.metering.MeterSearchResults the returned search results
ErrorsNULL_ARGUMENT meterQuery or meterSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED meterQuery or meterSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetMeterQueryFromInspector
Description

Gets a meter query from an inspector. The inspector is available from a MeterSearchResults.

Parametersosid.metering.MeterQueryInspectormeterQueryInspector a meter query inspector
Returnosid.metering.MeterQuery the meter query
ErrorsNULL_ARGUMENT meterQueryInspector is null
UNSUPPORTED meterQueryInspector is not of this service
Compliancemandatory This method must be implemented.