Interface MeteringManager
- All Superinterfaces:
AutoCloseable, Closeable, MeteringProfile, OsidManager, OsidManager, OsidProfile, Sourceable
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.
-
Method Summary
Modifier and TypeMethodDescriptionGets theOsidSessionassociated with the meter administrative service.getMeterAdminSessionForUtility(Id utilityId) Gets theOsidSessionassociated with the meter administrative service for the given utility.Gets aMeteringBatchManager.Gets aMeteringThresholdManager.Gets theOsidSessionassociated with the meter lookup service.getMeterLookupSessionForUtility(Id utilityId) Gets theOsidSessionassociated with the meter lookup service for the given utility.getMeterNotificationSession(MeterReceiver meterReceiver) Gets theOsidSessionassociated with the meter notification service.getMeterNotificationSessionForUtility(MeterReceiver meterReceiver, Id utilityId) Gets theOsidSessionassociated with the meter notification service for the given utility.Gets theOsidSessionassociated with the meter query service.getMeterQuerySessionForUtility(Id utilityId) Gets theOsidSessionassociated with the meter query service for the given utility.Gets theOsidSessionassociated with the meter reading service.getMeterReadingSessionForUtility(Id utilityId) Gets theOsidSessionassociated with the meter reading service for the given utility.Gets theOsidSessionassociated with the metering search service.getMeterSearchSessionForUtility(Id utilityId) Gets theOsidSessionassociated with the meter search service for the given utility.getMeterSmartUtilitySession(Id utilityId) Gets theOsidSessionassociated with the meter smart utility session.Gets theOsidSessionassociated with managing the mapping of meters and utilities.Gets theOsidSessionassociated with looking up mapping of meters and utilities.Gets theOsidSessionassociated with the statistic lookup service.getStatisticLookupSessionForUtility(Id utilityId) Gets theOsidSessionassociated with the statistic lookup service for the given utility.getStatisticNotificationSession(StatisticReceiver statisticReceiver) Gets theOsidSessionassociated with the statistic notification service.getStatisticNotificationSessionForUtility(StatisticReceiver statisticReceiver, Id utilityId) Gets theOsidSessionassociated with the statistic notification service for the given utility.Gets theOsidSessionassociated with the statistic query service.getStatisticQuerySessionForUtility(Id utilityId) Gets theOsidSessionassociated with the statistic query service for the given utility.Gets theOsidSessionassociated with the statistic search service.getStatisticSearchSessionForUtility(Id utilityId) Gets theOsidSessionassociated with the statistic search service for the given utility.getStatisticSmartUtilitySession(Id utilityId) Gets theOsidSessionassociated with the statistic smart utility session.Gets theOsidSessionassociated with the utility administrative service.Gets theOsidSessionassociated with the utility hierarchy design service.Gets theOsidSessionassociated with the utility hierarchy service.Gets theOsidSessionassociated with the utility lookup service.getUtilityNotificationSession(UtilityReceiver utilityReceiver) Gets theOsidSessionassociated with the utility notification service.Gets theOsidSessionassociated with the utility query service.Gets theOsidSessionassociated with the utility search service.Methods inherited from interface MeteringProfile
getMeterRecordTypes, getMeterSearchRecordTypes, getStatisticRecordTypes, getStatisticSearchRecordTypes, getUtilityRecordTypes, getUtilitySearchRecordTypes, supportsMeteringBatch, supportsMeteringThreshold, supportsMeterLookup, supportsMeterNotification, supportsMeterQuery, supportsMeterReading, supportsMeterRecordType, supportsMeterSearch, supportsMeterSearchRecordType, supportsMeterUtility, supportsMeterUtilityAssignment, supportsSmartMeterUtility, supportsStatisticLookup, supportsStatisticNotification, supportsStatisticQuery, supportsStatisticRecordType, supportsStatisticSearch, supportsStatisticSearchRecordType, supportsStatisticSmartUtility, supportsUtilityAdmin, supportsUtilityHierarchy, supportsUtilityHierarchyDesign, supportsUtilityLookup, supportsUtilityNotification, supportsUtilityQuery, supportsUtilityRecordType, supportsUtilitySearch, supportsUtilitySearchRecordType, supportsVisibleFederationModifier and TypeMethodDescriptionGets the supportedMeterrecord types.Gets the supported meter search record types.Gets the supportedStatisticrecord types.Gets the supported statistic search record types.Gets the supportedUtilityrecord types.Gets the supported utility search record types.booleanTests for the availability of a metering batch service.booleanTests for the availability of a metering threshold service.booleanTests if looking up meters is supported.booleanTests if meter notification is supported,.booleanTests if querying meters is supported.booleanTests if reading meters is supported.booleansupportsMeterRecordType(Type meterRecordType) Tests if the givenMeterrecord type is supported.booleanTests if searching meters is supported.booleansupportsMeterSearchRecordType(Type meterSearchRecordType) Tests if the given meter search record type is supported.booleanTests if looking up meter utlity mappings is supported,.booleanTests if managing meter utlity mappings is supported,.booleanTests if managing meter smart utlity service is supported,.booleanTests if statistical lookup is supported.booleanTests if statistical notification is supported.booleanTests if statistical query is supported.booleansupportsStatisticRecordType(Type statisticRecordType) Tests if the givenStatisticrecord type is supported.booleanTests if statistical search is supported.booleansupportsStatisticSearchRecordType(Type statisticSearchRecordType) Tests if the given statistic search record type is supported.booleanTests if statistical smart utilitiy is supported.booleanTests for the availability of a utility administrative service for creating and deleting utilities.booleanTests for the availability of a utility hierarchy traversal service.booleanTests for the availability of a utility hierarchy design service.booleanTests for the availability of a utility lookup service.booleanTests for the availability of a utility notification service.booleanTests for the availability of a utility query service.booleansupportsUtilityRecordType(Type utilityRecordType) Tests if the givenUtilityrecord type is supported.booleanTests if searching for utilities is available.booleansupportsUtilitySearchRecordType(Type utilitySearchRecordType) Tests if the given utility search record type is supported.booleanTests if visible federation is supported.Methods inherited from interface OsidManager
closeMethods inherited from interface OsidManager
changeBranch, initialize, rollbackServiceModifier and TypeMethodDescriptionvoidchangeBranch(Id branchId) Changes the service branch.voidinitialize(OsidRuntimeManager runtime) Initializes this manager.rollbackService(Date rollbackTime) Rolls back this service to a point in time.Methods inherited from interface OsidProfile
getBranch, getBranchId, getDescription, getDisplayName, getId, getLocales, getProxyRecordTypes, getReleaseDate, getVersion, supportsJournalBranching, supportsJournalRollback, supportsOSIDVersion, supportsProxyRecordTypeModifier and TypeMethodDescriptionGets this service branch.Gets theBranch Idrepresenting this service branch.Gets a description of this service implementation.Gets a display name for this service implementation.getId()Gets an identifier for this service implementation.Gets the locales supported in this service.Gets the proxy recordTypessupported in this service.Gets the date this service implementation was released.Gets the version of this service implementation.booleanTest for support of a journal branching service.booleanTest for support of a journaling rollback service.booleansupportsOSIDVersion(Version version) Test for support of an OSID specification version.booleansupportsProxyRecordType(Type proxyRecordType) Test for support of a proxy type.Methods inherited from interface Sourceable
getBranding, getBrandingIds, getLicense, getProvider, getProviderIdModifier and TypeMethodDescriptionGets a branding, such as an image or logo, expressed using theAssetinterface.Gets the branding assetIds.Gets the terms of usage.Gets theResourcerepresenting the provider.Gets theIdof the provider.
-
Method Details
-
getMeterReadingSession
Gets theOsidSessionassociated with the meter reading service.- Returns:
- a
MeterReadingSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsMeterReading()isfalse- Compliance:
optional- This method must be implemented if {@code supportsMeterReading()} is {@code true} .
-
getMeterReadingSessionForUtility
MeterReadingSession getMeterReadingSessionForUtility(Id utilityId) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the meter reading service for the given utility.- Parameters:
utilityId- theIdof theUtility- Returns:
- a
MeterReadingSession - Throws:
NotFoundException- noUtilityfound by the givenIdNullArgumentException-utilityIdisnullOperationFailedException- unable to complete requestUnimplementedException-supportsMeterReading()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsMeterReading()} and {@code supportsVisibleFederation()} are {@code true}
-
getStatisticLookupSession
Gets theOsidSessionassociated with the statistic lookup service.- Returns:
- a
StatisticLookupSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsStatisticLookup()isfalse- Compliance:
optional- This method must be implemented if {@code supportsStatisticLookup()} is {@code true} .
-
getStatisticLookupSessionForUtility
StatisticLookupSession getStatisticLookupSessionForUtility(Id utilityId) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the statistic lookup service for the given utility.- Parameters:
utilityId- theIdof theUtility- Returns:
- a
StatisticLookupSession - Throws:
NotFoundException- noUtilityfound by the givenIdNullArgumentException-utilityIdisnullOperationFailedException- unable to complete requestUnimplementedException-supportsStatisticLookup()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsStatisticLookup()} and {@code supportsVisibleFederation()} are {@code true}
-
getStatisticQuerySession
Gets theOsidSessionassociated with the statistic query service.- Returns:
- a
StatisticQuerySession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsStatisticQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsStatisticQuery()} is {@code true} .
-
getStatisticQuerySessionForUtility
StatisticQuerySession getStatisticQuerySessionForUtility(Id utilityId) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the statistic query service for the given utility.- Parameters:
utilityId- theIdof theUtility- Returns:
- a
StatisticQuerySession - Throws:
NotFoundException- noUtilityfound by the givenIdNullArgumentException-utilityIdisnullOperationFailedException- unable to complete requestUnimplementedException-supportsStatisticQuery()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsStatisticQuery()} and {@code supportsVisibleFederation()} are {@code true}
-
getStatisticSearchSession
Gets theOsidSessionassociated with the statistic search service.- Returns:
- a
StatisticSearchSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsStatisticSearch()isfalse- Compliance:
optional- This method must be implemented if {@code supportsStatisticSearch()} is {@code true} .
-
getStatisticSearchSessionForUtility
StatisticSearchSession getStatisticSearchSessionForUtility(Id utilityId) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the statistic search service for the given utility.- Parameters:
utilityId- theIdof theUtility- Returns:
- a
StatisticSearchSession - Throws:
NotFoundException- noUtilityfound by the givenIdNullArgumentException-utilityIdisnullOperationFailedException- unable to complete requestUnimplementedException-supportsStatisticSearch()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsStatisticSearch()} and {@code supportsVisibleFederation()} are {@code true}
-
getStatisticNotificationSession
MeterNotificationSession getStatisticNotificationSession(StatisticReceiver statisticReceiver) throws OperationFailedException Gets theOsidSessionassociated with the statistic notification service.- Parameters:
statisticReceiver- the receiver- Returns:
- a
StatisticNotificationSession - Throws:
NullArgumentException-statisticReceiverisnullOperationFailedException- unable to complete requestUnimplementedException-supportsStatisticNotification()isfalse- Compliance:
optional- This method must be implemented if {@code supportsMeterNotification()} is {@code true} .
-
getStatisticNotificationSessionForUtility
MeterNotificationSession getStatisticNotificationSessionForUtility(StatisticReceiver statisticReceiver, Id utilityId) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the statistic notification service for the given utility.- Parameters:
statisticReceiver- the receiverutilityId- theIdof theUtility- Returns:
- a
StatisticNotificationSession - Throws:
NotFoundException- noUtilityfound by the givenIdNullArgumentException-statisticReceiverorutilityIdisnullOperationFailedException- unable to complete requestUnimplementedException-supportsStatisticNotification()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsStatisticNotification()} and {@code supportsVisibleFederation()} are {@code true}
-
getStatisticSmartUtilitySession
StatisticSmartUtilitySession getStatisticSmartUtilitySession(Id utilityId) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the statistic smart utility session.- Parameters:
utilityId- theIdof theUtility- Returns:
- a
StatisticSmartUtilitySession - Throws:
NotFoundException- noUtilityfound by the givenIdNullArgumentException-utilityIdisnullOperationFailedException- unable to complete requestUnimplementedException-supportsStatisticSmartUtility()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsStatisticUtility()} and {@code supportsVisibleFederation()} are {@code true}
-
getMeterLookupSession
Gets theOsidSessionassociated with the meter lookup service.- Returns:
- a
MeterLookupSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsMeterLookup()isfalse- Compliance:
optional- This method must be implemented if {@code supportsMeterLookup()} is {@code true} .
-
getMeterLookupSessionForUtility
MeterLookupSession getMeterLookupSessionForUtility(Id utilityId) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the meter lookup service for the given utility.- Parameters:
utilityId- theIdof theUtility- Returns:
- a
MeterLookupSession - Throws:
NotFoundException- noUtilityfound by the givenIdNullArgumentException-utilityIdisnullOperationFailedException- unable to complete requestUnimplementedException-supportsMeterLookup()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsMeterLookup()} and {@code supportsVisibleFederation()} are {@code true}
-
getMeterQuerySession
Gets theOsidSessionassociated with the meter query service.- Returns:
- a
MeterQuerySession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsMeterQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsMeterQuery()} is {@code true} .
-
getMeterQuerySessionForUtility
MeterQuerySession getMeterQuerySessionForUtility(Id utilityId) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the meter query service for the given utility.- Parameters:
utilityId- theIdof theUtility- Returns:
- a
MeterQuerySession - Throws:
NotFoundException- no Utility found by the given IdNullArgumentException-utilityIdisnullOperationFailedException- unable to complete requestUnimplementedException-supportsMeterQuery()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsMeterQuery()} and {@code supportsVisibleFederation()} are {@code true}
-
getMeterSearchSession
Gets theOsidSessionassociated with the metering search service.- Returns:
- a
MeterSearchSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsMeterSearch()isfalse- Compliance:
optional- This method must be implemented if {@code supportsMeterSearch()} is {@code true} .
-
getMeterSearchSessionForUtility
MeterSearchSession getMeterSearchSessionForUtility(Id utilityId) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the meter search service for the given utility.- Parameters:
utilityId- theIdof theUtility- Returns:
- a
MeterSearchSession - Throws:
NotFoundException- noUtilityfound by the givenIdNullArgumentException-utilityIdisnullOperationFailedException- unable to complete requestUnimplementedException-supportsMeterSearch()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsMeterSearch()} and {@code supportsVisibleFederation()} are {@code true}
-
getMeterAdminSession
Gets theOsidSessionassociated with the meter administrative service.- Returns:
- a
MeterAdminSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsMeterAdmin()isfalse- Compliance:
optional- This method must be implemented if {@code supportsMeterAdmin()} is {@code true} .
-
getMeterAdminSessionForUtility
MeterAdminSession getMeterAdminSessionForUtility(Id utilityId) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the meter administrative service for the given utility.- Parameters:
utilityId- theIdof theUtility- Returns:
- a
MeterAdminSession - Throws:
NotFoundException- noUtilityfound by the givenIdNullArgumentException-utilityIdisnullOperationFailedException- unable to complete requestUnimplementedException-supportsMeterAdmin()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsMeterAdmin()} and {@code supportsVisibleFederation()} are {@code true}
-
getMeterNotificationSession
MeterNotificationSession getMeterNotificationSession(MeterReceiver meterReceiver) throws OperationFailedException Gets theOsidSessionassociated with the meter notification service.- Parameters:
meterReceiver- the receiver- Returns:
- a
MeterNotificationSession - Throws:
NullArgumentException-meterReceiverisnullOperationFailedException- unable to complete requestUnimplementedException-supportsMeterNotification()isfalse- Compliance:
optional- This method must be implemented if {@code supportsMeterNotification()} is {@code true} .
-
getMeterNotificationSessionForUtility
MeterNotificationSession getMeterNotificationSessionForUtility(MeterReceiver meterReceiver, Id utilityId) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the meter notification service for the given utility.- Parameters:
meterReceiver- the receiverutilityId- theIdof theUtility- Returns:
- a
MeterNotificationSession - Throws:
NotFoundException- noUtilityfound by the givenIdNullArgumentException-meterReceiverorutilityIdisnullOperationFailedException- unable to complete requestUnimplementedException-supportsMeterNotification()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsMeterNotification()} and {@code supportsVisibleFederation()} are {@code true}
-
getMeterUtilitySession
Gets theOsidSessionassociated with looking up mapping of meters and utilities.- Returns:
- a
MeterUtilitySession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsMeterUtility()isfalse- Compliance:
optional- This method must be implemented if {@code supportsMeterUtility()} is {@code true} .
-
getMeterUtilityAssignmentSession
Gets theOsidSessionassociated with managing the mapping of meters and utilities.- Returns:
- a
MeterUtilityAssignmentSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsMeterUtilityAssignment()isfalse- Compliance:
optional- This method must be implemented if {@code supportsMeterUtilityAssignment()} is {@code true} .
-
getMeterSmartUtilitySession
MeterSmartUtilitySession getMeterSmartUtilitySession(Id utilityId) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the meter smart utility session.- Parameters:
utilityId- theIdof theUtility- Returns:
- a
MeterSmartUtilitySession - Throws:
NotFoundException- noUtilityfound by the givenIdNullArgumentException-utilityIdisnullOperationFailedException- unable to complete requestUnimplementedException-supportsMeterSmartUtility()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsMeterUtility()} and {@code supportsVisibleFederation()} are {@code true}
-
getUtilityLookupSession
Gets theOsidSessionassociated with the utility lookup service.- Returns:
- a
UtilityLookupSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsUtilityLookup()isfalse- Compliance:
optional- This method must be implemented if {@code supportsUtilityLookup()} is {@code true} .
-
getUtilityQuerySession
Gets theOsidSessionassociated with the utility query service.- Returns:
- a
UtilityQuerySession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsUtilityQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsUtilityQuery()} is {@code true} .
-
getUtilitySearchSession
Gets theOsidSessionassociated with the utility search service.- Returns:
- a
UtilitySearchSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsUtilitySearch()isfalse- Compliance:
optional- This method must be implemented if {@code supportsUtilitySearch()} is {@code true} .
-
getUtilityAdminSession
Gets theOsidSessionassociated with the utility administrative service.- Returns:
- a
UtilityAdminSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsUtilityAdmin()isfalse- Compliance:
optional- This method must be implemented if {@code supportsUtilityAdmin()} is {@code true} .
-
getUtilityNotificationSession
UtilityNotificationSession getUtilityNotificationSession(UtilityReceiver utilityReceiver) throws OperationFailedException Gets theOsidSessionassociated with the utility notification service.- Parameters:
utilityReceiver- the receiver- Returns:
- a
UtilityNotificationSession - Throws:
NullArgumentException-utilityReceiverisnullOperationFailedException- unable to complete requestUnimplementedException-supportsUtilityNotification()isfalse- Compliance:
optional- This method must be implemented if {@code supportsUtilityNotification()} is {@code true} .
-
getUtilityHierarchySession
Gets theOsidSessionassociated with the utility hierarchy service.- Returns:
- a
UtilityHierarchySessionfor utilities - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsUtilityHierarchy()isfalse- Compliance:
optional- This method must be implemented if {@code supportsUtilityHierarchy()} is {@code true} .
-
getUtilityHierarchyDesignSession
Gets theOsidSessionassociated with the utility hierarchy design service.- Returns:
- a
HierarchyDesignSessionfor utilities - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsUtilityHierarchyDesign()isfalse- Compliance:
optional- This method must be implemented if {@code supportsUtilityHierarchyDesign()} is {@code true} .
-
getMeteringBatchManager
Gets aMeteringBatchManager.- Returns:
- a
MeteringBatchManager - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsMeteringBatch()isfalse- Compliance:
optional- This method must be implemented if {@code supportsMeteringBatch()} is {@code true} .
-
getMeteringThresholdManager
Gets aMeteringThresholdManager.- Returns:
- a
MeteringThresholdManager - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsMeteringThreshold()isfalse- Compliance:
optional- This method must be implemented if {@code supportsMeteringThreshold()} is {@code true} .
-