OSID Logo
OSID Specifications
metering package
Version 3.0.0
Release Candidate Preview
Interfaceosid.metering.MeteringProxyManager
Implementsosid.OsidProxyManager
osid.metering.MeteringProfile
Description

The metering manager provides access to metering sessions and provides interoperability tests for various aspects of this service. Methods in this manager support the passing of a Proxy for the purposes of passing information from a server environment. The sessions included in this manager are:

  • MeterReadingSession: a session to write to a utility
  • StatisticLookupSession: a session for retrieving some statistics from a meter
  • StatisticQuerySession: a session for querying statistics
  • StatisticSearchSession: a session for searching statistics
  • StatisticNotificationSession: a session for subscribing to statistical notifications
  • StatisticSmartUtilitySession: a session for managing smart utilities of statistics
  • MeterLookupSession: a session to look up meters
  • MeterQuerySession: a session to query meters
  • MeterSearchSession: a session to search meters
  • MeterAdminSession: a session to manage meters
  • MeterNotificationSession: a session to subscribe to notifications of new or changed meters
  • MeterUtilitySession: a session to look up meter to utility mappings
  • MeterUtilityAssignmentSession: a session to manage meter to utility mappings
  • MeterSmartUtilitySession: a session tomanage meter smart utilities
  • UtilityLookupSession: a session to retrieve utility objects
  • UtilityQuerySession: a session to query utilities
  • UtilitySearchSession: a session to search for utilities
  • UtilityAdminSession: a session to create, update and delete utilities
  • UtilityNotificationSession: a session to receive notifications for changes in utilities
  • UtilityHierarchyTraversalSession: a session to traverse hierarchies of utilities
  • UtilityHierarchyDesignSession: a session to manage hierarchues of utilities

The metering manager also provides a profile for determing the supported search types supported by this service.

MethodgetMeterReadingSession
Description

Gets the OsidSession associated with the meter reading service.

Parametersosid.proxy.Proxyproxya proxy
Returnosid.metering.MeterReadingSessiona MeterReadingSession
ErrorsNULL_ARGUMENT proxy is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsMeterreading() is false
ComplianceoptionalThis method must be implemented if supportsMeterReading() is true.
MethodgetMeterReadingSessionForUtility
Description

Gets the OsidSession associated with the meter reading service for the given utility.

Parametersosid.id.IdutilityIdthe Id of the Utility
osid.proxy.Proxyproxya proxy
Returnosid.metering.MeterReadingSessiona MeterReadingSession
ErrorsNOT_FOUNDno Utility found by the given Id
NULL_ARGUMENT utilityId or proxy is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsMeterReading() or supportsVisibleFederation() is false
ComplianceoptionalThis method must be implemented if supportsMeterReading() and supportsVisibleFederation() are true
MethodgetStatisticLookupSession
Description

Gets the OsidSession associated with the statistic lookup service.

Parametersosid.proxy.Proxyproxya proxy
Returnosid.metering.StatisticLookupSessiona MeterStatisticsSession
ErrorsNULL_ARGUMENT proxy is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsStatisticLookup() is false
ComplianceoptionalThis method must be implemented if supportsStatisticLookup() is true.
MethodgetStatisticLookupSessionForUtility
Description

Gets the OsidSession associated with the statistic lookup service for the given utility.

Parametersosid.id.IdutilityIdthe Id of the Utility
osid.proxy.Proxyproxya proxy
Returnosid.metering.StatisticLookupSessiona MeterStatisticsSession
ErrorsNOT_FOUNDno Utility found by the given Id
NULL_ARGUMENT utilityId or proxy is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsStatisticLookup() or supportsVisibleFederation() is false
ComplianceoptionalThis method must be implemented if supportsStatisticLookup() and supportsVisibleFederation() are true
MethodgetStatisticQuerySession
Description

Gets the OsidSession associated with the statistic query service.

Parametersosid.proxy.Proxyproxya proxy
Returnosid.metering.StatisticQuerySessiona StatisticQuerySession
ErrorsNULL_ARGUMENT proxy is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsStatisticQuery() is false
ComplianceoptionalThis method must be implemented if supportsStatisticQuery() is true.
MethodgetStatisticQuerySessionForUtility
Description

Gets the OsidSession associated with the statistic query service for the given utility.

Parametersosid.id.IdutilityIdthe Id of the Utility
osid.proxy.Proxyproxya proxy
Returnosid.metering.StatisticQuerySessiona StatisticQuerySession
ErrorsNOT_FOUNDno Utility found by the given Id
NULL_ARGUMENT utilityId or proxy is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsStatisticQuery() or supportsVisibleFederation() is false
ComplianceoptionalThis method must be implemented if supportsStatisticQuery() and supportsVisibleFederation() are true
MethodgetStatisticSearchSession
Description

Gets the OsidSession associated with the statistic search service.

Parametersosid.proxy.Proxyproxya proxy
Returnosid.metering.StatisticSearchSessiona StatisticSearchSession
ErrorsNULL_ARGUMENT proxy is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsStatisticSearch() is false
ComplianceoptionalThis method must be implemented if supportsStatisticSearch() is true.
MethodgetStatisticSearchSessionForUtility
Description

Gets the OsidSession associated with the statistic search service for the given utility.

Parametersosid.id.IdutilityIdthe Id of the Utility
osid.proxy.Proxyproxya proxy
Returnosid.metering.StatisticSearchSessiona StatisticSearchSession
ErrorsNOT_FOUNDno Utility found by the given Id
NULL_ARGUMENT utilityId or proxy is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsStatisticSearch() or supportsVisibleFederation() is false
ComplianceoptionalThis method must be implemented if supportsStatisticSearch() and supportsVisibleFederation() are true
MethodgetStatisticNotificationSession
Description

Gets the OsidSession associated with the statistic notification service.

Parametersosid.metering.StatisticReceiverstatisticReceiverthe receiver
osid.proxy.Proxyproxya proxy
Returnosid.metering.StatisticNotificationSessiona StatisticNotificationSession
ErrorsNULL_ARGUMENT statisticReceiver or proxy is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsStatisticNotification() is false
ComplianceoptionalThis method must be implemented if supportsStatisticNotification() is true.
MethodgetStatisticNotificationSessionForUtility
Description

Gets the OsidSession associated with the statistic notification service for the given utility.

Parametersosid.metering.StatisticReceiverstatisticReceiverthe receiver
osid.id.IdutilityIdthe Id of the Utility
osid.proxy.Proxyproxya proxy
Returnosid.metering.StatisticNotificationSessiona StatisticNotificationSession
ErrorsNOT_FOUNDno Utility found by the given Id
NULL_ARGUMENT statisticReceiver, utilityId or proxy is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsStatisticNotification() or supportsVisibleFederation() is false
ComplianceoptionalThis method must be implemented if supportsStatisticNotification() and supportsVisibleFederation() are true
MethodgetStatisticSmartUtilitySession
Description

Gets the OsidSession associated with the statistic smart utility session.

Parametersosid.id.IdutilityIdthe Id of the Utility
osid.proxy.Proxyproxya proxy
Returnosid.metering.StatisticSmartUtilitySessiona StatisticSmartUtilitySession
ErrorsNOT_FOUNDno Utility found by the given Id
NULL_ARGUMENT utilityId or proxy is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsStatisticSmartUtility() or supportsVisibleFederation() is false
ComplianceoptionalThis method must be implemented if supportsStatisticSmartUtility() and supportsVisibleFederation() are true
MethodgetMeterLookupSession
Description

Gets the OsidSession associated with the meter lookup service.

Parametersosid.proxy.Proxyproxya proxy
Returnosid.metering.MeterLookupSessiona MeterLookupSession
ErrorsNULL_ARGUMENT proxy is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsMeterLookup() is false
ComplianceoptionalThis method must be implemented if supportsMeterLookup() is true.
MethodgetMeterLookupSessionForUtility
Description

Gets the OsidSession associated with the utility reading service for the given utility.

Parametersosid.id.IdutilityIdthe Id of the Utility
osid.proxy.Proxyproxya proxy
Returnosid.metering.MeterLookupSessiona MeterLookupSession
ErrorsNOT_FOUNDno Utility found by the given Id
NULL_ARGUMENT utilityId or proxy is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsMeterLookup() or supportsVisibleFederation() is false
ComplianceoptionalThis method must be implemented if supportsMeterLookup() and supportsVisibleFederation() are true
MethodgetMeterQuerySession
Description

Gets the OsidSession associated with the meter query service.

Parametersosid.proxy.Proxyproxya proxy
Returnosid.metering.MeterQuerySessiona MeterQuerySession
ErrorsNULL_ARGUMENT proxy is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsMeterQuery() is false
ComplianceoptionalThis method must be implemented if supportsMeterQuery() is true.
MethodgetMeterQuerySessionForUtility
Description

Gets the OsidSession associated with the utility query service for the given utility.

Parametersosid.id.IdutilityIdthe Id of the Utility
osid.proxy.Proxyproxya proxy
Returnosid.metering.MeterQuerySessiona MeterQuerySession
ErrorsNOT_FOUNDno Utility found by the given Id
NULL_ARGUMENT utilityId or proxy is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsMeterQuery() or supportsVisibleFederation() is false
ComplianceoptionalThis method must be implemented if supportsMeterQuery() and supportsVisibleFederation() are true
MethodgetMeterSearchSession
Description

Gets the OsidSession associated with the meter search service.

Parametersosid.proxy.Proxyproxya proxy
Returnosid.metering.MeterSearchSessiona MeterSearchSession
ErrorsNULL_ARGUMENT proxy is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsMeterSearch() is false
ComplianceoptionalThis method must be implemented if supportsMeterSearch() is true.
MethodgetMeterSearchSessionForUtility
Description

Gets the OsidSession associated with the meter search service for the given utility.

Parametersosid.id.IdutilityIdthe Id of the Utility
osid.proxy.Proxyproxya proxy
Returnosid.metering.MeterSearchSessiona MeterSearchSession
ErrorsNOT_FOUNDno Utility found by the given Id
NULL_ARGUMENT utilityId or proxy is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsMeterSearch() or supportsVisibleFederation() is false
ComplianceoptionalThis method must be implemented if supportsMeterSearch() and supportsVisibleFederation() are true
MethodgetMeterAdminSession
Description

Gets the OsidSession associated with the meter administrative service.

Parametersosid.proxy.Proxyproxya proxy
Returnosid.metering.MeterAdminSessiona MeterAdminSession
ErrorsNULL_ARGUMENT proxy is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsMeterAdmin() is false
ComplianceoptionalThis method must be implemented if supportsMeterAdmin() is true.
MethodgetMeterAdminSessionForUtility
Description

Gets the OsidSession associated with the meter administrative service for the given utility.

Parametersosid.id.IdutilityIdthe Id of the Utility
osid.proxy.Proxyproxya proxy
Returnosid.metering.MeterAdminSessiona MeterAdminSession
ErrorsNOT_FOUNDno Utility found by the given Id
NULL_ARGUMENT utilityId or proxy is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsMeterAdmin() or supportsVisibleFederation() is false
ComplianceoptionalThis method must be implemented if supportsMeterAdmin() and supportsVisibleFederation() are true
MethodgetMeterNotificationSession
Description

Gets the OsidSession associated with the meter notification service.

Parametersosid.metering.MeterReceivermeterReceiverthe receiver
osid.proxy.Proxyproxya proxy
Returnosid.metering.MeterNotificationSessiona MeterNotificationSession
ErrorsNULL_ARGUMENT meterReceiver or proxy is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsMeterNotification() is false
ComplianceoptionalThis method must be implemented if supportsMeterNotification() is true.
MethodgetMeterNotificationSessionForUtility
Description

Gets the OsidSession associated with the meter notification service for the given utility.

Parametersosid.metering.MeterReceivermeterReceiverthe receiver
osid.id.IdutilityIdthe Id of the Utility
osid.proxy.Proxyproxya proxy
Returnosid.metering.MeterNotificationSessiona MeterNotificationSession
ErrorsNOT_FOUNDno Utility found by the given Id
NULL_ARGUMENT meterReceiver, utilityId or proxy is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsMeterNotification() or supportsVisibleFederation() is false
ComplianceoptionalThis method must be implemented if supportsMeterNotification() and supportsVisibleFederation() are true
MethodgetMeterUtilitySession
Description

Gets the OsidSession associated with looking up mapping of meters and utilities.

Parametersosid.proxy.Proxyproxya proxy
Returnosid.metering.MeterUtilitySessiona MeterUtilitySession
ErrorsNULL_ARGUMENT proxy is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsMeterUtility() is false
ComplianceoptionalThis method must be implemented if supportsMeterUtility() is true.
MethodgetMeterUtilityAssignmentSession
Description

Gets the OsidSession associated with managing the mapping of meters and utilities.

Parametersosid.proxy.Proxyproxya proxy
Returnosid.metering.MeterUtilityAssignmentSessiona MeterUtilityAssignmentSession
ErrorsNULL_ARGUMENT proxy is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsMeterUtilityAssignment() is false
ComplianceoptionalThis method must be implemented if supportsMeterUtilityAssignment() is true.
MethodgetMeterSmartUtilitySession
Description

Gets the OsidSession associated with the meter smart utility session.

Parametersosid.id.IdutilityIdthe Id of the Utility
osid.proxy.Proxyproxya proxy
Returnosid.metering.MeterSmartUtilitySessiona MeterSmartUtilitySession
ErrorsNOT_FOUNDno Utility found by the given Id
NULL_ARGUMENT utilityId or proxy is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsMeterSmartUtility() or supportsVisibleFederation() is false
ComplianceoptionalThis method must be implemented if supportsMeterSmartUtility() and supportsVisibleFederation() are true
MethodgetUtilityLookupSession
Description

Gets the OsidSession associated with the utility lookup service.

Parametersosid.proxy.Proxyproxya proxy
Returnosid.metering.UtilityLookupSessiona UtilityLookupSession
ErrorsNULL_ARGUMENT proxy is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsUtilityLookup() is false
ComplianceoptionalThis method must be implemented if supportsUtilityLookup() is true.
MethodgetUtilityQuerySession
Description

Gets the OsidSession associated with the utility query service.

Parametersosid.proxy.Proxyproxya proxy
Returnosid.metering.UtilityQuerySessiona UtilityQuerySession
ErrorsNULL_ARGUMENT proxy is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsUtilityQuery() is false
ComplianceoptionalThis method must be implemented if supportsUtilityQuery() is true.
MethodgetUtilitySearchSession
Description

Gets the OsidSession associated with the utility search service.

Parametersosid.proxy.Proxyproxya proxy
Returnosid.metering.UtilitySearchSessiona UtilitySearchSession
ErrorsNULL_ARGUMENT proxy is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsUtilitySearch() is false
ComplianceoptionalThis method must be implemented if supportsUtilitySearch() is true.
MethodgetUtilityAdminSession
Description

Gets the OsidSession associated with the utility administrative service.

Parametersosid.proxy.Proxyproxya proxy
Returnosid.metering.UtilityAdminSessiona UtilityAdminSession
ErrorsNULL_ARGUMENT proxy is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsUtilityAdmin() is false
ComplianceoptionalThis method must be implemented if supportsUtilityAdmin() is true.
MethodgetUtilityNotificationSession
Description

Gets the OsidSession associated with the utility notification service.

Parametersosid.metering.UtilityReceiverutilityReceiverthe receiver
osid.proxy.Proxyproxya proxy
Returnosid.metering.UtilityNotificationSessiona UtilityNotificationSession
ErrorsNULL_ARGUMENT utilityReceiver or proxy is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsUtilityNotification() is false
ComplianceoptionalThis method must be implemented if supportsUtilityNotification() is true.
MethodgetUtilityHierarchySession
Description

Gets the OsidSession associated with the utility hierarchy service.

Parametersosid.proxy.Proxyproxya proxy
Returnosid.metering.UtilityHierarchySessiona UtilityHierarchySession for utilities
ErrorsNULL_ARGUMENT proxy is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsUtilityHierarchy() is false
ComplianceoptionalThis method must be implemented if supportsUtilityHierarchy() is true.
MethodgetUtilityHierarchyDesignSession
Description

Gets the OsidSession associated with the utility hierarchy design service.

Parametersosid.proxy.Proxyproxya proxy
Returnosid.metering.UtilityHierarchyDesignSessiona HierarchyDesignSession for utilities
ErrorsNULL_ARGUMENT proxy is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsUtilityHierarchyDesign() is false
ComplianceoptionalThis method must be implemented if supportsUtilityHierarchyDesign() is true.
MethodgetMeteringBatchProxyManager
Description

Gets a MeteringBatchProxyManager.

Returnosid.metering.batch.MeteringBatchProxyManagera MeteringBatchProxyManager
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsMeteringBatch() is false
ComplianceoptionalThis method must be implemented if supportsMeteringBatch() is true.
MethodgetMeteringThresholdProxyManager
Description

Gets a MeteringThresholdProxyManager.

Returnosid.metering.threshold.MeteringThresholdProxyManagera MeteringThresholdProxyManager
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsMeteringThreshold() is false
ComplianceoptionalThis method must be implemented if supportsMeteringThreshold() is true.