In file ../../src/Pegasus/Provider/CIMIndicationProvider.h:

class PEGASUS_PROVIDER_LINKAGE CIMIndicationProvider

This class defines the set of methods implemented by an indication provider.

Documentation

This class defines the set of methods implemented by an indication provider. A provider that derives from this class must implement all methods. A minimal method implementation simply throws a CIMNotSupportedException.

Inheritance:


Public Methods

[more] CIMIndicationProvider (void)
Constructs a CIMIndicationProvider instance with null values (default constructor)
[more]virtual ~CIMIndicationProvider (void)
Destructs the CIMIndicationProvider
[more]virtual void enableIndications (IndicationResponseHandler & handler)
Instructs the provider to begin generating indications.
[more]virtual void disableIndications (void)
Tells the provider to stop generating indications.
[more]virtual void createSubscription ( const OperationContext & context, const CIMObjectPath & subscriptionName, const Array<CIMObjectPath> & classNames, const CIMPropertyList & propertyList, const Uint16 repeatNotificationPolicy)
Tells the provider to monitor for indications matching the specified subscription.
[more]virtual void modifySubscription ( const OperationContext & context, const CIMObjectPath & subscriptionName, const Array<CIMObjectPath> & classNames, const CIMPropertyList & propertyList, const Uint16 repeatNotificationPolicy)
Informs the provider that the specified subscription instance has changed.
[more]virtual void deleteSubscription ( const OperationContext & context, const CIMObjectPath & subscriptionName, const Array<CIMObjectPath> & classNames)
Instructs the provider to stop monitoring for indications matching the specified subscription.


Inherited from CIMProvider:

Public Methods

ovirtual void initialize(CIMOMHandle & cimom)
ovirtual void terminate(void)
ovirtual Boolean tryTerminate(void)

o CIMIndicationProvider(void)
Constructs a CIMIndicationProvider instance with null values (default constructor)

ovirtual ~CIMIndicationProvider(void)
Destructs the CIMIndicationProvider

ovirtual void enableIndications(IndicationResponseHandler & handler) = 0
Instructs the provider to begin generating indications. One or more createSubscription calls may precede the call to this method. (On start-up, createSubscription is called for each active subscription before the enableIndications method is called, so that the provider knows about all outstanding subscriptions before it begins generating indications.)

The provider must set the namespace and class name in the object path of the generated indication instance (to allow the Indication Processor to filter generated indications based on the Filter SourceNamespace and Query indication class name), as in the following example:

         CIMObjectPath path(String::EMPTY,
                           CIMNamespaceName("root/IndicationSource"),
                           CIMName("IndicationClassName"),
                           Array());
        indicationInstance.setPath(path);
        

where "root/IndicationSource" is the namespace from which the indication was generated, and "IndicationClassName" is the class name of the generated indication. Note that indication instance paths never have key bindings.

An exception thrown by this method is considered a provider error and does not affect CIM Server behavior.

Parameters:
handler - An IndicationResponseHandler used by the provider to deliver the indications it generates. The IndicationResponseHandler object remains valid until the disableIndications method is called. After disableIndications is called, the behavior of the IndicationResponseHandler is undefined.

ovirtual void disableIndications(void) = 0
Tells the provider to stop generating indications. After this call, the IndicationResponseHandler given to the provider in the enableIndications method is no longer valid and its behavior is undefined. Information regarding active subscriptions no longer applies to the provider and should be discarded at this time. (The provider will receive new createSubscription calls to restore necessary state before enableIndications is called again.)

An exception thrown by this method is considered a provider error and does not affect CIM Server behavior.

ovirtual void createSubscription( const OperationContext & context, const CIMObjectPath & subscriptionName, const Array<CIMObjectPath> & classNames, const CIMPropertyList & propertyList, const Uint16 repeatNotificationPolicy) = 0
Tells the provider to monitor for indications matching the specified subscription. The provider may reject the subscription by throwing a CIMNotSupportedException. An indication provider must reject the subscription as not supported if the provider cannot carry out the specified RepeatNotificationPolicy with the specified RepeatNotificationInterval, RepeatNotificationGap and RepeatNotificationCount.

Note that it is not necessary for a simple indication provider to take any action on createSubscription, modifySubscription, or deleteSubscription. It may simply generate indications (or not) based on the enableIndications and disableIndications calls.

An indication provider is not required to retain or make use of any specific subscription information. (A provider that accepts a subscription with a RepeatNotificationPolicy value other than "None", however, requires this data for proper operation.)

An indication should only be generated once regardless of the number of active subscriptions. The indication will be sent to each applicable handler. If an indication should not be sent to all subscribers (such as when the provider has accepted one or more subscriptions with a RepeatNotificationPolicy defined), the provider must include in a SubscriptionInstanceNamesContainer the list of subscriptions for which the indication is intended.

Parameters:
context - Similar to that in the other provider interfaces. Of particular interest to indication providers are the SubscriptionInstanceContainer and SubscriptionFilterConditionContainer containers. The SubscriptionInstanceContainer contains the full CIM_IndicationSubscription instance (including, for example, more information about repeat notification policies). The SubscriptionFilterConditionContainer contains the query string and query language from the CIM_IndicationFilter instance.
subscriptionName - Specifies the object path of the CIM_IndicationSubscription instance for which this provider is requested to generate indications.
classNames - Contains a list of indication class names for which this provider has registered as an indication provider and are included in the CIM_IndicationFilter for this subscription instance. A provider may use this as medium-level data for controlling which indications it generates.
propertyList - Specifies which properties of the specified class names must be (minimally) included in the indications generated for this subscription.
repeatNotificationPolicy - Contains the value of the property with the same name in the CIM_IndicationSubscription instance. Most providers will probably not support repeat notification policies, and should throw a CIMNotSupportedException if the value is anything other than "None".

ovirtual void modifySubscription( const OperationContext & context, const CIMObjectPath & subscriptionName, const Array<CIMObjectPath> & classNames, const CIMPropertyList & propertyList, const Uint16 repeatNotificationPolicy) = 0
Informs the provider that the specified subscription instance has changed.

Parameters:
context - Similar to that in the other provider interfaces. Of particular interest to indication providers are the SubscriptionInstanceContainer and SubscriptionFilterConditionContainer containers. The SubscriptionInstanceContainer contains the full CIM_IndicationSubscription instance (including, for example, more information about repeat notification policies). The SubscriptionFilterConditionContainer contains the query string and query language from the CIM_IndicationFilter instance.
subscriptionName - Specifies the object path of the CIM_IndicationSubscription instance that is being modified and for which this provider has been requested to generate indications.
classNames - Contains a list of indication class names for which this provider has registered as an indication provider and are included in the CIM_IndicationFilter for this subscription instance. A provider can use this as medium-level data for controlling which indications it generates.
propertyList - Specifies which properties of the specified class names must be (minimally) included in the indications generated for this subscription.
repeatNotificationPolicy - Contains the value of the property with the same name in the CIM_IndicationSubscription instance. Most providers will probably not support repeat notification policies, and should throw a CIMNotSupportedException if the value is anything other than "None".

ovirtual void deleteSubscription( const OperationContext & context, const CIMObjectPath & subscriptionName, const Array<CIMObjectPath> & classNames) = 0
Instructs the provider to stop monitoring for indications matching the specified subscription.

An exception thrown by this method is considered a provider error and does not affect CIM Server behavior.

Parameters:
context - Similar to that in the other provider interfaces. Of particular interest to indication providers are the SubscriptionInstanceContainer and SubscriptionFilterConditionContainer containers. The SubscriptionInstanceContainer contains the full CIM_IndicationSubscription instance (including, for example, more information about repeat notification policies). The SubscriptionFilterConditionContainer contains the query string and query language from the CIM_IndicationFilter instance.
subscriptionName - Specifies the object path of the CIM_IndicationSubscription instance for which this provider is requested to stop generating indications.
classNames - Contains a list of indication class names for which this provider has registered as an indication provider and are included in the CIM_IndicationFilter for this subscription instance. A provider can use this as medium-level data for controlling which indications it generates.


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java