summaryrefslogtreecommitdiffstats
path: root/src/software
diff options
context:
space:
mode:
authorMichal Minar <miminar@redhat.com>2013-04-23 11:33:12 +0200
committerMichal Minar <miminar@redhat.com>2013-04-26 10:18:19 +0200
commitd95bfa9e736e9471fa337c8a992516b98d4eb0f4 (patch)
tree90ffca5c934441eef3509f5826228adaf8ffb8cc /src/software
parent272c051e8453d0a98771d8741e08478f18bbf638 (diff)
downloadopenlmi-providers-d95bfa9e736e9471fa337c8a992516b98d4eb0f4.tar.gz
openlmi-providers-d95bfa9e736e9471fa337c8a992516b98d4eb0f4.tar.xz
openlmi-providers-d95bfa9e736e9471fa337c8a992516b98d4eb0f4.zip
updated doc comments for cimom callbacks
cimom callbacks for filter enablement have misleading param names and miss proper doc
Diffstat (limited to 'src/software')
-rw-r--r--src/software/openlmi/software/cimom_entry.py66
1 files changed, 62 insertions, 4 deletions
diff --git a/src/software/openlmi/software/cimom_entry.py b/src/software/openlmi/software/cimom_entry.py
index d507a01..70df071 100644
--- a/src/software/openlmi/software/cimom_entry.py
+++ b/src/software/openlmi/software/cimom_entry.py
@@ -118,22 +118,80 @@ def get_providers(env):
return providers
-def authorize_filter(env, fltr, ns, classes, owner):
+def authorize_filter(env, fltr, class_name, op, owner):
+ """
+ CIMOM callback.
+
+ It asks us to verify whether this filter is allowed.
+
+ :param fltr: (``String``) Contains the filter that must be authorized.
+ :param class_name: (``String``) Contains the class name extracted
+ from the filter FROM clause.
+ :param op: The name of the class for which monitoring is required.
+ Only the namespace part is set if className is a process indication.
+ :param owner The owner argument is the destination owner.
+ """
IndicationManager.get_instance().authorize_filter(
- env, fltr, ns, classes, owner)
+ env, fltr, class_name, op, owner)
-def activate_filter (env, fltr, ns, classes, first_activation):
+def activate_filter(env, fltr, class_name, class_path, first_activation):
+ """
+ CIMOM callback.
+
+ It ask us to begin monitoring a resource. The function shall begin
+ monitoring the resource according to the filter express only.
+
+ :param fltr: (``String``) The filter argument contains the filter
+ specification for this subscription to become active.
+ :param class_name: (``String``) The class name extracted from the filter
+ FROM clause.
+ :param class_path: (``CIMInstanceName``) The name of the class for which
+ monitoring is required. Only the namespace part is set if eventType
+ is a process indication.
+ :param first_activation: (``bool``) Set to true if this is the first
+ filter for className.
+ """
IndicationManager.get_instance().activate_filter(
env, fltr, class_name, class_path, first_activation)
-def deactivate_filter(env, fltr, ns, classes, last_activation):
+def deactivate_filter(env, fltr, class_name, class_path, last_activation):
+ """
+ CIMOM callback.
+
+ Informs us that monitoring using this filter should stop.
+
+ :param fltr: (``String``) The filter argument contains the filter
+ specification for this subscription to become active.
+ :param class_name: (``String``) The class name extracted from the filter
+ FROM clause.
+ :param class_path: (``CIMInstanceName``) class_path The name of the class
+ for which monitoring is required. Only the namespace part is set
+ if className is a process indication.
+ :last_activation: (``bool``) Set to true if this is the last filter for
+ className.
+ """
IndicationManager.get_instance().deactivate_filter(
env, fltr, class_name, class_path, last_activation)
def enable_indications(env):
+ """
+ CIMOM callback.
+
+ Tells us that indications can now be generated. The MB is now prepared
+ to process indications. The function is normally called by the MB after
+ having done its intialization and processing of persistent subscription
+ requests.
+ """
IndicationManager.get_instance().enable_indications(env)
def disable_indications(env):
+ """
+ CIMOM callback.
+
+ Tells us that we should stop generating indications. MB will not accept any
+ indications until enabled again. The function is normally called when the
+ MB is shutting down indication services either temporarily or permanently.
+ """
IndicationManager.get_instance().disable_indications(env)
def can_unload(_env):