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

The metering manager provides access to metering sessions and provides interoperability tests for various aspects of this service. 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.

Returnosid.metering.MeterReadingSessiona MeterReadingSession
ErrorsOPERATION_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
Returnosid.metering.MeterReadingSessiona MeterReadingSession
ErrorsNOT_FOUNDno Utility found by the given Id
NULL_ARGUMENT utilityId 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.

Returnosid.metering.StatisticLookupSessiona StatisticLookupSession
ErrorsOPERATION_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
Returnosid.metering.StatisticLookupSessiona StatisticLookupSession
ErrorsNOT_FOUNDno Utility found by the given Id
NULL_ARGUMENT utilityId 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.

Returnosid.metering.StatisticQuerySessiona StatisticQuerySession
ErrorsOPERATION_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
Returnosid.metering.StatisticQuerySessiona StatisticQuerySession
ErrorsNOT_FOUNDno Utility found by the given Id
NULL_ARGUMENT utilityId 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.

Returnosid.metering.StatisticSearchSessiona StatisticSearchSession
ErrorsOPERATION_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
Returnosid.metering.StatisticSearchSessiona StatisticSearchSession
ErrorsNOT_FOUNDno Utility found by the given Id
NULL_ARGUMENT utilityId 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
Returnosid.metering.MeterNotificationSessiona StatisticNotificationSession
ErrorsNULL_ARGUMENT statisticReceiver is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsStatisticNotification() is false
ComplianceoptionalThis method must be implemented if supportsMeterNotification() 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
Returnosid.metering.MeterNotificationSessiona StatisticNotificationSession
ErrorsNOT_FOUNDno Utility found by the given Id
NULL_ARGUMENT statisticReceiver or utilityId 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
Returnosid.metering.StatisticSmartUtilitySessiona StatisticSmartUtilitySession
ErrorsNOT_FOUNDno Utility found by the given Id
NULL_ARGUMENT utilityId is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsStatisticSmartUtility() or supportsVisibleFederation() is false
ComplianceoptionalThis method must be implemented if supportsStatisticUtility() and supportsVisibleFederation() are true
MethodgetMeterLookupSession
Description

Gets the OsidSession associated with the meter lookup service.

Returnosid.metering.MeterLookupSessiona MeterLookupSession
ErrorsOPERATION_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 meter lookup service for the given utility.

Parametersosid.id.IdutilityIdthe Id of the Utility
Returnosid.metering.MeterLookupSessiona MeterLookupSession
ErrorsNOT_FOUNDno Utility found by the given Id
NULL_ARGUMENT utilityId 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.

Returnosid.metering.MeterQuerySessiona MeterQuerySession
ErrorsOPERATION_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 meter query service for the given utility.

Parametersosid.id.IdutilityIdthe Id of the Utility
Returnosid.metering.MeterQuerySessiona MeterQuerySession
ErrorsNOT_FOUNDno Utility found by the given Id
NULL_ARGUMENT utilityId 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 metering search service.

Returnosid.metering.MeterSearchSessiona MeterSearchSession
ErrorsOPERATION_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
Returnosid.metering.MeterSearchSessiona MeterSearchSession
ErrorsNOT_FOUNDno Utility found by the given Id
NULL_ARGUMENT utilityId 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.

Returnosid.metering.MeterAdminSessiona MeterAdminSession
ErrorsOPERATION_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
Returnosid.metering.MeterAdminSessiona MeterAdminSession
ErrorsNOT_FOUNDno Utility found by the given Id
NULL_ARGUMENT utilityId 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
Returnosid.metering.MeterNotificationSessiona MeterNotificationSession
ErrorsNULL_ARGUMENT meterReceiver 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
Returnosid.metering.MeterNotificationSessiona MeterNotificationSession
ErrorsNOT_FOUNDno Utility found by the given Id
NULL_ARGUMENT meterReceiver or utilityId 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.

Returnosid.metering.MeterUtilitySessiona MeterUtilitySession
ErrorsOPERATION_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.

Returnosid.metering.MeterUtilityAssignmentSessiona MeterUtilityAssignmentSession
ErrorsOPERATION_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
Returnosid.metering.MeterSmartUtilitySessiona MeterSmartUtilitySession
ErrorsNOT_FOUNDno Utility found by the given Id
NULL_ARGUMENT utilityId is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsMeterSmartUtility() or supportsVisibleFederation() is false
ComplianceoptionalThis method must be implemented if supportsMeterUtility() and supportsVisibleFederation() are true
MethodgetUtilityLookupSession
Description

Gets the OsidSession associated with the utility lookup service.

Returnosid.metering.UtilityLookupSessiona UtilityLookupSession
ErrorsOPERATION_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.

Returnosid.metering.UtilityQuerySessiona UtilityQuerySession
ErrorsOPERATION_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.

Returnosid.metering.UtilitySearchSessiona UtilitySearchSession
ErrorsOPERATION_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.

Returnosid.metering.UtilityAdminSessiona UtilityAdminSession
ErrorsOPERATION_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
Returnosid.metering.UtilityNotificationSessiona UtilityNotificationSession
ErrorsNULL_ARGUMENT utilityReceiver 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.

Returnosid.metering.UtilityHierarchySessiona UtilityHierarchySession for utilities
ErrorsOPERATION_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.

Returnosid.metering.UtilityHierarchyDesignSessiona HierarchyDesignSession for utilities
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsUtilityHierarchyDesign() is false
ComplianceoptionalThis method must be implemented if supportsUtilityHierarchyDesign() is true.
MethodgetMeteringBatchManager
Description

Gets a MeteringBatchManager.

Returnosid.metering.batch.MeteringBatchManagera MeteringBatchManager
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsMeteringBatch() is false
ComplianceoptionalThis method must be implemented if supportsMeteringBatch() is true.
MethodgetMeteringThresholdManager
Description

Gets a MeteringThresholdManager.

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