Acspy.Nc.CommonNC
index
/diska/alma_tmp/ACS/LGPL/CommonSoftware/acspy/src/Acspy/Nc/CommonNC.py

Provides functionality common to both NC suppliers and consumers.

 
Modules
       
CosNotifyChannelAdmin
Acspy.Util.NameTree
NotifyMonitoringExt
acscommon
re

 
Classes
       
CommonNC

 
class CommonNC
    Serves as a baseclass for notification channel objects.
 
  Methods defined here:
__init__(self, channelname, component, domainname=None)
Constructor.
 
Params:
- channelName is the channel name
- component is the component this object resides within
- domainName is the domain the channel belongs to
 
Returns: Nothing
 
Raises: Nothing.
configAdminProps(self)
Configures the administrative properties for this channel.
 
Only useful if the channel has not been created yet and this particular
method is being overriden.
 
Parameters: None
 
Returns: A sequence of Administrative properties.
 
Raises: Nothing
configQofS(self)
Configures the quality of service properties for this channel.
 
Only useful if the channel has not been created yet and this particular
method is being overriden.
 
Parameters: None
 
Returns: A sequence of Quality of Service properties.
 
Raises: Nothing
createNotificationChannel(self)
Creates the notification channel.  Only to be called if it does not already
exist.
 
Parameters: None
 
Returns: Nothing
 
Raises: ACSErrTypeCommonImpl.CORBAProblemExImpl on critical failures
destroyNotificationChannel(self)
Destroys the channel and unregisters it from the naming service. ONLY 
USE THIS METHOD IF YOU KNOW FOR CERTAIN THERE IS ONLY ONE SUPPLIER FOR 
THE CHANNEL!!!  To be used with extreme caution. Likely to be removed with
future versions of ACS.
 
Parameters: None
 
Returns: 1 on success and 0 on failure
 
Raises: Nothing
getChannelDomain(self)
This method returns a constant character pointer to the notification channel
domain which is normally equivalent to acscommon::ALMADOMAIN. The sole
reason this method is provided is to accomodate subclasses which
subscribe/publish non-ICD style events (ACS archiving channel for example).
In that case, the developer would override this method.
 
Parameters: None
 
Returns: a constant string.
 
Raises: Nothing
getChannelKind(self)
This method returns a constant character pointer to the "kind" of
notification channel as registered with the naming service (i.e., the kind
field of a CosNaming.Name) which is normally equivalent to
acscommon::NC_KIND. The sole reason this method is provided is to accomodate
subclasses which subscribe/publish non-ICD style events (ACS archiving
channel for example).In that case, the developer would override this method.
 
Parameters: None
 
Returns:a constant string.
 
Raises: Nothing
getNotificationFactoryName(self)
This method returns the name of the notification service as registered
with the CORBA Naming Service.
 
Parameters: None
 
Returns: pointer to a constant string. Normally
acscommon::NOTIFICATION_FACTORY_NAME
 
Raises: Nothing
getNotificationFactoryNameForChannel(self, channel, domain=None)
This method returns the name of the notification service for the channel
or domain from the configuration information given in the CDB.
 
Parameters:
- channel is the channel name of the desired factory
- domain is the domain of the desired factory
 
Returns: string containing the factory name or None
 
Raises: Nothing
initCORBA(self)
Handles all the CORBA involved in creating a CommonNC.
 
Parameters: None
 
Returns: Nothing
 
Raises: ACSErrTypeCommonImpl.CORBAProblemExImpl on critical failures

 
Data
        __revision__ = '$Id: CommonNC.py,v 1.5 2008/11/10 20:08:55 agrimstrup Exp $'