OSID Logo
OSID Specifications
metering package
Version 3.1.0
Interfaceosid.metering.MeteringProxyManager
Implementsosid.OsidProxyManager
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. 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.Proxyproxy a proxy
Returnosid.metering.MeterReadingSession a MeterReadingSession
ErrorsNULL_ARGUMENT proxy is null
OPERATION_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
osid.proxy.Proxyproxy a proxy
Returnosid.metering.MeterReadingSession a MeterReadingSession
ErrorsNOT_FOUND no Utility found by the given Id
NULL_ARGUMENT utilityId or proxy 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.

Parametersosid.proxy.Proxyproxy a proxy
Returnosid.metering.StatisticLookupSession a MeterStatisticsSession
ErrorsNULL_ARGUMENT proxy is null
OPERATION_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
osid.proxy.Proxyproxy a proxy
Returnosid.metering.StatisticLookupSession a MeterStatisticsSession
ErrorsNOT_FOUND no Utility found by the given Id
NULL_ARGUMENT utilityId or proxy 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.

Parametersosid.proxy.Proxyproxy a proxy
Returnosid.metering.StatisticQuerySession a StatisticQuerySession
ErrorsNULL_ARGUMENT proxy is null
OPERATION_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
osid.proxy.Proxyproxy a proxy
Returnosid.metering.StatisticQuerySession a StatisticQuerySession
ErrorsNOT_FOUND no Utility found by the given Id
NULL_ARGUMENT utilityId or proxy 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.

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

Gets the OsidSession associated with the meter lookup service.

Parametersosid.proxy.Proxyproxy a proxy
Returnosid.metering.MeterLookupSession a MeterLookupSession
ErrorsNULL_ARGUMENT proxy is null
OPERATION_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 utility reading service for the given utility.

Parametersosid.id.IdutilityId the Id of the Utility
osid.proxy.Proxyproxy a proxy
Returnosid.metering.MeterLookupSession a MeterLookupSession
ErrorsNOT_FOUND no Utility found by the given Id
NULL_ARGUMENT utilityId or proxy 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.

Parametersosid.proxy.Proxyproxy a proxy
Returnosid.metering.MeterQuerySession a MeterQuerySession
ErrorsNULL_ARGUMENT proxy is null
OPERATION_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 utility query service for the given utility.

Parametersosid.id.IdutilityId the Id of the Utility
osid.proxy.Proxyproxy a proxy
Returnosid.metering.MeterQuerySession a MeterQuerySession
ErrorsNOT_FOUND no Utility found by the given Id
NULL_ARGUMENT utilityId or proxy 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 meter search service.

Parametersosid.proxy.Proxyproxy a proxy
Returnosid.metering.MeterSearchSession a MeterSearchSession
ErrorsNULL_ARGUMENT proxy is null
OPERATION_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
osid.proxy.Proxyproxy a proxy
Returnosid.metering.MeterSearchSession a MeterSearchSession
ErrorsNOT_FOUND no Utility found by the given Id
NULL_ARGUMENT utilityId or proxy 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.

Parametersosid.proxy.Proxyproxy a proxy
Returnosid.metering.MeterAdminSession a MeterAdminSession
ErrorsNULL_ARGUMENT proxy is null
OPERATION_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
osid.proxy.Proxyproxy a proxy
Returnosid.metering.MeterAdminSession a MeterAdminSession
ErrorsNOT_FOUND no Utility found by the given Id
NULL_ARGUMENT utilityId or proxy 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
osid.proxy.Proxyproxy a proxy
Returnosid.metering.MeterNotificationSession a MeterNotificationSession
ErrorsNULL_ARGUMENT meterReceiver or proxy 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
osid.proxy.Proxyproxy a proxy
Returnosid.metering.MeterNotificationSession a MeterNotificationSession
ErrorsNOT_FOUND no Utility found by the given Id
NULL_ARGUMENT meterReceiver, utilityId or proxy 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.

Parametersosid.proxy.Proxyproxy a proxy
Returnosid.metering.MeterUtilitySession a MeterUtilitySession
ErrorsNULL_ARGUMENT proxy is null
OPERATION_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.

Parametersosid.proxy.Proxyproxy a proxy
Returnosid.metering.MeterUtilityAssignmentSession a MeterUtilityAssignmentSession
ErrorsNULL_ARGUMENT proxy is null
OPERATION_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
osid.proxy.Proxyproxy a proxy
Returnosid.metering.MeterSmartUtilitySession a MeterSmartUtilitySession
ErrorsNOT_FOUND no Utility found by the given Id
NULL_ARGUMENT utilityId or proxy is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsMeterSmartUtility() or supportsVisibleFederation() is false
Complianceoptional This method must be implemented if supportsMeterSmartUtility() and supportsVisibleFederation() are true
MethodgetUtilityLookupSession
Description

Gets the OsidSession associated with the utility lookup service.

Parametersosid.proxy.Proxyproxy a proxy
Returnosid.metering.UtilityLookupSession a UtilityLookupSession
ErrorsNULL_ARGUMENT proxy is null
OPERATION_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.

Parametersosid.proxy.Proxyproxy a proxy
Returnosid.metering.UtilityQuerySession a UtilityQuerySession
ErrorsNULL_ARGUMENT proxy is null
OPERATION_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.

Parametersosid.proxy.Proxyproxy a proxy
Returnosid.metering.UtilitySearchSession a UtilitySearchSession
ErrorsNULL_ARGUMENT proxy is null
OPERATION_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.

Parametersosid.proxy.Proxyproxy a proxy
Returnosid.metering.UtilityAdminSession a UtilityAdminSession
ErrorsNULL_ARGUMENT proxy is null
OPERATION_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
osid.proxy.Proxyproxy a proxy
Returnosid.metering.UtilityNotificationSession a UtilityNotificationSession
ErrorsNULL_ARGUMENT utilityReceiver or proxy 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.

Parametersosid.proxy.Proxyproxy a proxy
Returnosid.metering.UtilityHierarchySession a UtilityHierarchySession for utilities
ErrorsNULL_ARGUMENT proxy is null
OPERATION_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.

Parametersosid.proxy.Proxyproxy a proxy
Returnosid.metering.UtilityHierarchyDesignSession a HierarchyDesignSession for utilities
ErrorsNULL_ARGUMENT proxy is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsUtilityHierarchyDesign() is false
Complianceoptional This method must be implemented if supportsUtilityHierarchyDesign() is true.
MethodgetMeteringBatchProxyManager
Description

Gets a MeteringBatchProxyManager.

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

Gets a MeteringThresholdProxyManager.

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