(file) Return to IndicationService.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / IndicationService

Diff for /pegasus/src/Pegasus/IndicationService/IndicationService.h between version 1.4 and 1.5

version 1.4, 2002/02/28 18:54:16 version 1.5, 2002/03/04 21:36:36
Line 64 
Line 64 
  
 /** /**
  
     IndicationService class is the provider that serves the      IndicationService class is the service that serves the
     CIM_IndicationSubscription, CIM_IndicationFilter, and CIM_IndicationHandler     CIM_IndicationSubscription, CIM_IndicationFilter, and CIM_IndicationHandler
     classes.      classes, and processes indications.
  
     @author  Hewlett-Packard Company     @author  Hewlett-Packard Company
  
Line 79 
Line 79 
     typedef MessageQueueService Base;     typedef MessageQueueService Base;
  
     /**     /**
         Operation types for the NotifyProviderRegistration API  
      */  
     enum Operation {OP_CREATE = 1, OP_DELETE = 2, OP_MODIFY = 3};  
   
     /**  
         Constructs an IndicationSubscription instance and initializes instance         Constructs an IndicationSubscription instance and initializes instance
         variables.         variables.
      */      */
Line 99 
Line 94 
  
     AtomicInt dienow;     AtomicInt dienow;
  
 private:  
   
     CIMRepository* _repository;  
   
     /**     /**
         Integer representing queue ID for accessing Provider Manager Service          Operation types for the NotifyProviderRegistration message
      */      */
     Uint32 _providerManager;      enum Operation {OP_CREATE = 1, OP_DELETE = 2, OP_MODIFY = 3};
   
     /**  
         Integer representing queue ID for accessing Repository Service  
      */  
     //Uint32 _repository;  
   
     /**  
         Integer representing queue ID for accessing Handler Manager Service  
      */  
     Uint32 _handlerService;  
   
   
     /**  
         Values for the Subscription State property of the Subscription class,  
         as defined in the CIM Events MOF  
      */  
     enum SubscriptionState {_STATE_UNKNOWN = 0, _STATE_OTHER = 1,  
          _STATE_ENABLED = 2, _STATE_ENABLEDDEGRADED = 3, _STATE_DISABLED = 4};  
   
     /**  
         Values for the Repeat Notification Policy property of the Subscription  
         class, as defined in the CIM Events MOF  
      */  
     enum RepeatNotificationPolicy {_POLICY_UNKNOWN = 0, _POLICY_OTHER = 1,  
          _POLICY_NONE = 2, _POLICY_SUPPRESS = 3, _POLICY_DELAY = 4};  
   
     /**  
         Values for the On Fatal Error Policy property of the Subscription  
         class, as defined in the CIM Events MOF  
      */  
     enum OnFatalErrorPolicy {_ERRORPOLICY_OTHER = 1, _ERRORPOLICY_IGNORE = 2,  
         _ERRORPOLICY_DISABLE = 3, _ERRORPOLICY_REMOVE = 4};  
   
     /**  
         Values for the Persistence Type property of the Handler class,  
         as defined in the CIM Events MOF  
      */  
     enum PersistenceType {_PERSISTENCE_OTHER = 1, _PERSISTENCE_PERMANENT = 2,  
         _PERSISTENCE_TRANSIENT = 3};  
   
     /**  
         Values for the Perceived Severity property of the Alert Indication  
         class, as defined in the CIM Events MOF  
      */  
     enum PerceivedSeverity {_SEVERITY_UNKNOWN = 0, _SEVERITY_OTHER = 1,  
          _SEVERITY_INFORMATION = 2, _SEVERITY_WARNING = 3, _SEVERITY_MINOR = 4,  
          _SEVERITY_MAJOR = 5, _SEVERITY_CRITICAL = 6, _SEVERITY_FATAL = 7};  
   
     /**  
         Values for the Probable Cause property of the Alert Indication  
         class, as defined in the CIM Events MOF  
         Note: not all possible values have been included  
      */  
     enum ProbableCause {_CAUSE_UNKNOWN = 0, _CAUSE_OTHER = 1};  
  
     /**  private:
         Values for the Alert Type property of the Alert Indication class,  
         as defined in the CIM Events MOF  
      */  
     enum AlertType {_TYPE_OTHER = 1, _TYPE_COMMUNICATIONS = 2, _TYPE_QOS = 3,  
          _TYPE_PROCESSING = 4, _TYPE_DEVICE = 5, _TYPE_ENVIRONMENTAL = 6,  
          _TYPE_MODELCHANGE = 7, _TYPE_SECURITY = 8};  
  
     void _initialize (void);     void _initialize (void);
  
Line 207 
Line 138 
     void _handleNotifyProviderTerminationRequest(const Message * message);     void _handleNotifyProviderTerminationRequest(const Message * message);
  
     /**     /**
           Ensures that all subscription classes in the repository include the
           Creator property.
   
           @throw   CIMException               if any error except
                                               CIM_ERR_INVALID_CLASS occurs
        */
       void _checkClasses (void);
   
       /**
           Determines if it is legal to create an instance.
           Checks for existence of all key and required properties.  Checks that
           properties that MUST NOT exist (based on values of other properties),
           do not exist.  For any property that has a default value, if it does
           not exist, adds the property with the default value.
   
           @param   instance              instance to be created
           @param   nameSpace             namespace for instance to be created
   
           @throw   CIM_ERR_INVALID_PARAMETER  if instance is invalid
           @throw   CIM_ERR_NOT_SUPPORTED      if the specified class is not
                                               supported
   
           @return  True if the instance can be created
                    otherwise throws an exception
        */
       Boolean _canCreate (
           CIMInstance & instance,
           const String & nameSpace);
   
       /**
           Determines if the specified modification is supported.
   
           @param   request               modification request
           @param   instance              instance to be modified
   
           @throw   CIM_ERR_NOT_SUPPORTED      if the specified modificastion is
                                               not supported
           @throw   CIM_ERR_ACCESS_DENIED      if the user is not authorized to
                                               modify the instance
   
           @return  True if the instance can be modified
                    otherwise throws an exception
        */
       Boolean _canModify (
           const CIMModifyInstanceRequestMessage * request,
           const CIMReference & instanceReference,
           const CIMInstance & instance);
   
       /**
         Determines if it is legal to delete an instance. Subscription         Determines if it is legal to delete an instance. Subscription
         instances may always be deleted. Filter and Handler instances         instances may always be deleted. Filter and Handler instances
         may only be deleted if they are not being referenced by any         may only be deleted if they are not being referenced by any
         Subscription instances.  Authorization checks are NOT performed         Subscription instances.  Authorization checks are NOT performed
         by _canDelete.         by _canDelete.
   
           @param   instanceReference     reference for instance to be deleted
           @param   nameSpace             namespace for instance to be deleted
   
           @return  True if the instance can be deleted
                    False otherwise
      */      */
     Boolean _canDelete (     Boolean _canDelete (
         const CIMReference & instanceReference,         const CIMReference & instanceReference,
Line 421 
Line 407 
         const CIMInstance & instance) const;         const CIMInstance & instance) const;
  
     /**     /**
           Deletes specified subscription
   
           @param   nameSpace             the name space
           @param   subscription          the subscription reference
        */
       void _deleteExpiredSubscription (
           const String & nameSpace,
           const CIMReference & subscription);
   
       /**
         Sets the Subscription Time Remaining property         Sets the Subscription Time Remaining property
  
         Calculates time remaining from Subscription Start Time, Subscription         Calculates time remaining from Subscription Start Time, Subscription
Line 437 
Line 433 
  
     /**     /**
         Gets the parameter values required to enable the subscription request.         Gets the parameter values required to enable the subscription request.
         If no indciation providers are found, condition and queryLanguage are          If no indication providers are found, condition and queryLanguage are
         set to empty string.         set to empty string.
  
         @param   nameSpace             Input namespace name         @param   nameSpace             Input namespace name
Line 459 
Line 455 
         String & queryLanguage);         String & queryLanguage);
  
     /**     /**
           Gets the parameter values required to disable the subscription request.
   
           @param   nameSpace             Input namespace name
           @param   subscription          Input subscription instance
   
           @return  List of providers with associated classes to disable
        */
       Array <struct ProviderClassList> _getDisableParams (
           const String & nameSpaceName,
           const CIMInstance & subscriptionInstance);
   
       /**
         Sends enable subscription request for the specified subscription         Sends enable subscription request for the specified subscription
         to each provider in the list.         to each provider in the list.
  
Line 541 
Line 549 
     WQLSimplePropertySource _getPropertySourceFromInstance(     WQLSimplePropertySource _getPropertySourceFromInstance(
         CIMInstance & indicationInstance);         CIMInstance & indicationInstance);
  
       CIMRepository* _repository;
   
       /**
           Integer representing queue ID for accessing Provider Manager Service
        */
       Uint32 _providerManager;
   
       /**
           Integer representing queue ID for accessing Handler Manager Service
        */
       Uint32 _handlerService;
   
       /**
           Integer representing queue ID for accessing Repository Service
        */
       //Uint32 _repository;
   
   
       /**
           Values for the Subscription State property of the Subscription class,
           as defined in the CIM Events MOF
        */
       enum SubscriptionState {_STATE_UNKNOWN = 0, _STATE_OTHER = 1,
            _STATE_ENABLED = 2, _STATE_ENABLEDDEGRADED = 3, _STATE_DISABLED = 4};
   
       /**
           Values for the Repeat Notification Policy property of the Subscription
           class, as defined in the CIM Events MOF
        */
       enum RepeatNotificationPolicy {_POLICY_UNKNOWN = 0, _POLICY_OTHER = 1,
            _POLICY_NONE = 2, _POLICY_SUPPRESS = 3, _POLICY_DELAY = 4};
   
       /**
           Values for the On Fatal Error Policy property of the Subscription
           class, as defined in the CIM Events MOF
        */
       enum OnFatalErrorPolicy {_ERRORPOLICY_OTHER = 1, _ERRORPOLICY_IGNORE = 2,
           _ERRORPOLICY_DISABLE = 3, _ERRORPOLICY_REMOVE = 4};
   
       /**
           Values for the Persistence Type property of the Handler class,
           as defined in the CIM Events MOF
        */
       enum PersistenceType {_PERSISTENCE_OTHER = 1, _PERSISTENCE_PERMANENT = 2,
           _PERSISTENCE_TRANSIENT = 3};
   
       /**
           Values for the Perceived Severity property of the Alert Indication
           class, as defined in the CIM Events MOF
        */
       enum PerceivedSeverity {_SEVERITY_UNKNOWN = 0, _SEVERITY_OTHER = 1,
            _SEVERITY_INFORMATION = 2, _SEVERITY_WARNING = 3, _SEVERITY_MINOR = 4,
            _SEVERITY_MAJOR = 5, _SEVERITY_CRITICAL = 6, _SEVERITY_FATAL = 7};
   
       /**
           Values for the Probable Cause property of the Alert Indication
           class, as defined in the CIM Events MOF
           Note: not all possible values have been included
        */
       enum ProbableCause {_CAUSE_UNKNOWN = 0, _CAUSE_OTHER = 1};
   
       /**
           Values for the Alert Type property of the Alert Indication class,
           as defined in the CIM Events MOF
        */
       enum AlertType {_TYPE_OTHER = 1, _TYPE_COMMUNICATIONS = 2, _TYPE_QOS = 3,
            _TYPE_PROCESSING = 4, _TYPE_DEVICE = 5, _TYPE_ENVIRONMENTAL = 6,
            _TYPE_MODELCHANGE = 7, _TYPE_SECURITY = 8};
   
     //     //
     //  Class names     //  Class names
     //     //


Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2