OSID Logo
OSID Specifications
metering package
Version 3.1.0
Interfaceosid.metering.MeteringManager
Implementsosid.OsidManager
osid.metering.MeteringProfile
Used Byosid.orchestration.OrchestrationManager
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.MeterReadingSession a MeterReadingSession
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsMeterReading() is false
Complianceoptional This 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.IdutilityId the Id of the Utility
Returnosid.metering.MeterReadingSession a MeterReadingSession
ErrorsNOT_FOUND no Utility found by the given Id
NULL_ARGUMENT utilityId is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsMeterReading() or supportsVisibleFederation() is false
Complianceoptional This method must be implemented if supportsMeterReading() and supportsVisibleFederation() are true
MethodgetStatisticLookupSession
Description

Gets the OsidSession associated with the statistic lookup service.

Returnosid.metering.StatisticLookupSession a StatisticLookupSession
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsStatisticLookup() is false
Complianceoptional This 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.IdutilityId the Id of the Utility
Returnosid.metering.StatisticLookupSession a StatisticLookupSession
ErrorsNOT_FOUND no Utility found by the given Id
NULL_ARGUMENT utilityId is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsStatisticLookup() or supportsVisibleFederation() is false
Complianceoptional This method must be implemented if supportsStatisticLookup() and supportsVisibleFederation() are true
MethodgetStatisticQuerySession
Description

Gets the OsidSession associated with the statistic query service.

Returnosid.metering.StatisticQuerySession a StatisticQuerySession
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsStatisticQuery() is false
Complianceoptional This 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.IdutilityId the Id of the Utility
Returnosid.metering.StatisticQuerySession a StatisticQuerySession
ErrorsNOT_FOUND no Utility found by the given Id
NULL_ARGUMENT utilityId is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsStatisticQuery() or supportsVisibleFederation() is false
Complianceoptional This method must be implemented if supportsStatisticQuery() and supportsVisibleFederation() are true
MethodgetStatisticSearchSession
Description

Gets the OsidSession associated with the statistic search service.

Returnosid.metering.StatisticSearchSession a StatisticSearchSession
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsStatisticSearch() is false
Complianceoptional This 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.IdutilityId the Id of the Utility
Returnosid.metering.StatisticSearchSession a StatisticSearchSession
ErrorsNOT_FOUND no Utility found by the given Id
NULL_ARGUMENT utilityId is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsStatisticSearch() or supportsVisibleFederation() is false
Complianceoptional This method must be implemented if supportsStatisticSearch() and supportsVisibleFederation() are true
MethodgetStatisticNotificationSession
Description

Gets the OsidSession associated with the statistic notification service.

Parametersosid.metering.StatisticReceiverstatisticReceiver the receiver
Returnosid.metering.MeterNotificationSession a StatisticNotificationSession
ErrorsNULL_ARGUMENT statisticReceiver is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsStatisticNotification() is false
Complianceoptional This 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.StatisticReceiverstatisticReceiver the receiver
osid.id.IdutilityId the Id of the Utility
Returnosid.metering.MeterNotificationSession a StatisticNotificationSession
ErrorsNOT_FOUND no Utility found by the given Id
NULL_ARGUMENT statisticReceiver or utilityId is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsStatisticNotification() or supportsVisibleFederation() is false
Complianceoptional This method must be implemented if supportsStatisticNotification() and supportsVisibleFederation() are true
MethodgetStatisticSmartUtilitySession
Description

Gets the OsidSession associated with the statistic smart utility session.

Parametersosid.id.IdutilityId the Id of the Utility
Returnosid.metering.StatisticSmartUtilitySession a StatisticSmartUtilitySession
ErrorsNOT_FOUND no Utility found by the given Id
NULL_ARGUMENT utilityId is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsStatisticSmartUtility() or supportsVisibleFederation() is false
Complianceoptional This method must be implemented if supportsStatisticUtility() and supportsVisibleFederation() are true
MethodgetMeterLookupSession
Description

Gets the OsidSession associated with the meter lookup service.

Returnosid.metering.MeterLookupSession a MeterLookupSession
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsMeterLookup() is false
Complianceoptional This 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.IdutilityId the Id of the Utility
Returnosid.metering.MeterLookupSession a MeterLookupSession
ErrorsNOT_FOUND no Utility found by the given Id
NULL_ARGUMENT utilityId is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsMeterLookup() or supportsVisibleFederation() is false
Complianceoptional This method must be implemented if supportsMeterLookup() and supportsVisibleFederation() are true
MethodgetMeterQuerySession
Description

Gets the OsidSession associated with the meter query service.

Returnosid.metering.MeterQuerySession a MeterQuerySession
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsMeterQuery() is false
Complianceoptional This 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.IdutilityId the Id of the Utility
Returnosid.metering.MeterQuerySession a MeterQuerySession
ErrorsNOT_FOUND no Utility found by the given Id
NULL_ARGUMENT utilityId is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsMeterQuery() or supportsVisibleFederation() is false
Complianceoptional This method must be implemented if supportsMeterQuery() and supportsVisibleFederation() are true
MethodgetMeterSearchSession
Description

Gets the OsidSession associated with the metering search service.

Returnosid.metering.MeterSearchSession a MeterSearchSession
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsMeterSearch() is false
Complianceoptional This 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.IdutilityId the Id of the Utility
Returnosid.metering.MeterSearchSession a MeterSearchSession
ErrorsNOT_FOUND no Utility found by the given Id
NULL_ARGUMENT utilityId is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsMeterSearch() or supportsVisibleFederation() is false
Complianceoptional This method must be implemented if supportsMeterSearch() and supportsVisibleFederation() are true
MethodgetMeterAdminSession
Description

Gets the OsidSession associated with the meter administrative service.

Returnosid.metering.MeterAdminSession a MeterAdminSession
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsMeterAdmin() is false
Complianceoptional This 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.IdutilityId the Id of the Utility
Returnosid.metering.MeterAdminSession a MeterAdminSession
ErrorsNOT_FOUND no Utility found by the given Id
NULL_ARGUMENT utilityId is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsMeterAdmin() or supportsVisibleFederation() is false
Complianceoptional This method must be implemented if supportsMeterAdmin() and supportsVisibleFederation() are true
MethodgetMeterNotificationSession
Description

Gets the OsidSession associated with the meter notification service.

Parametersosid.metering.MeterReceivermeterReceiver the receiver
Returnosid.metering.MeterNotificationSession a MeterNotificationSession
ErrorsNULL_ARGUMENT meterReceiver is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsMeterNotification() is false
Complianceoptional This 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.MeterReceivermeterReceiver the receiver
osid.id.IdutilityId the Id of the Utility
Returnosid.metering.MeterNotificationSession a MeterNotificationSession
ErrorsNOT_FOUND no Utility found by the given Id
NULL_ARGUMENT meterReceiver or utilityId is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsMeterNotification() or supportsVisibleFederation() is false
Complianceoptional This 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.MeterUtilitySession a MeterUtilitySession
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsMeterUtility() is false
Complianceoptional This method must be implemented if supportsMeterUtility() is true.
MethodgetMeterUtilityAssignmentSession
Description

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

Returnosid.metering.MeterUtilityAssignmentSession a MeterUtilityAssignmentSession
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsMeterUtilityAssignment() is false
Complianceoptional This method must be implemented if supportsMeterUtilityAssignment() is true.
MethodgetMeterSmartUtilitySession
Description

Gets the OsidSession associated with the meter smart utility session.

Parametersosid.id.IdutilityId the Id of the Utility
Returnosid.metering.MeterSmartUtilitySession a MeterSmartUtilitySession
ErrorsNOT_FOUND no Utility found by the given Id
NULL_ARGUMENT utilityId is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsMeterSmartUtility() or supportsVisibleFederation() is false
Complianceoptional This method must be implemented if supportsMeterUtility() and supportsVisibleFederation() are true
MethodgetUtilityLookupSession
Description

Gets the OsidSession associated with the utility lookup service.

Returnosid.metering.UtilityLookupSession a UtilityLookupSession
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsUtilityLookup() is false
Complianceoptional This method must be implemented if supportsUtilityLookup() is true.
MethodgetUtilityQuerySession
Description

Gets the OsidSession associated with the utility query service.

Returnosid.metering.UtilityQuerySession a UtilityQuerySession
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsUtilityQuery() is false
Complianceoptional This method must be implemented if supportsUtilityQuery() is true.
MethodgetUtilitySearchSession
Description

Gets the OsidSession associated with the utility search service.

Returnosid.metering.UtilitySearchSession a UtilitySearchSession
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsUtilitySearch() is false
Complianceoptional This method must be implemented if supportsUtilitySearch() is true.
MethodgetUtilityAdminSession
Description

Gets the OsidSession associated with the utility administrative service.

Returnosid.metering.UtilityAdminSession a UtilityAdminSession
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsUtilityAdmin() is false
Complianceoptional This method must be implemented if supportsUtilityAdmin() is true.
MethodgetUtilityNotificationSession
Description

Gets the OsidSession associated with the utility notification service.

Parametersosid.metering.UtilityReceiverutilityReceiver the receiver
Returnosid.metering.UtilityNotificationSession a UtilityNotificationSession
ErrorsNULL_ARGUMENT utilityReceiver is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsUtilityNotification() is false
Complianceoptional This method must be implemented if supportsUtilityNotification() is true.
MethodgetUtilityHierarchySession
Description

Gets the OsidSession associated with the utility hierarchy service.

Returnosid.metering.UtilityHierarchySession a UtilityHierarchySession for utilities
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsUtilityHierarchy() is false
Complianceoptional This method must be implemented if supportsUtilityHierarchy() is true.
MethodgetUtilityHierarchyDesignSession
Description

Gets the OsidSession associated with the utility hierarchy design service.

Returnosid.metering.UtilityHierarchyDesignSession a HierarchyDesignSession for utilities
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsUtilityHierarchyDesign() is false
Complianceoptional This method must be implemented if supportsUtilityHierarchyDesign() is true.
MethodgetMeteringBatchManager
Description

Gets a MeteringBatchManager.

Returnosid.metering.batch.MeteringBatchManager a MeteringBatchManager
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsMeteringBatch() is false
Complianceoptional This method must be implemented if supportsMeteringBatch() is true.
MethodgetMeteringThresholdManager
Description

Gets a MeteringThresholdManager.

Returnosid.metering.threshold.MeteringThresholdManager a MeteringThresholdManager
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsMeteringThreshold() is false
Complianceoptional This method must be implemented if supportsMeteringThreshold() is true.