#include <acsncHelper.h>
Inheritance diagram for nc::Helper:
Public Member Functions | |
Helper (const char *channelName, const char *notifyServiceDomainName=0) | |
void | resolveNamingService (CORBA::ORB_ptr orb_mp) |
bool | resolveNotifyChannel () |
bool | resolveInternalNotificationChannel () |
Static Public Member Functions | |
char * | extractStructName (const char *idlStruct) |
Protected Member Functions | |
virtual const char * | getChannelKind () |
virtual const char * | getChannelDomain () |
virtual const char * | getNotificationFactoryName () |
virtual void | resolveNotificationFactory () |
virtual void | createNotificationChannel () |
virtual | ~Helper () |
virtual const CosNotification::QoSProperties | getQoSProps () |
virtual const CosNotification::AdminProperties | getAdminProps () |
void | integrationLog (const std::string &log) |
Protected Attributes | |
CosNaming::NamingContext_var | namingContext_m |
CosNotifyChannelAdmin::EventChannel_var | notifyChannel_m |
CosNotifyChannelAdmin::InterFilterGroupOperator | ifgop_m |
char * | channelName_mp |
char * | notifyServiceDomainName_mp |
char * | notificationServiceName_mp |
ORBHelper * | orbHelper_mp |
NotifyMonitoringExt::EventChannelFactory_var | notifyFactory_m |
CosNotifyChannelAdmin::EventChannelFactory_var | notifyFactoryOld_m |
CosNotifyChannelAdmin::ChannelID | channelID_m |
Private Member Functions | |
void | operator= (const Helper &) |
Helper (const Helper &) | |
Private Attributes | |
bool | okToLog_m |
TODO:
|
Constructor
|
|
Destructor is protected. |
|
ALMA C++ coding standards state copy constructors should be disabled. |
|
Utility method. Create notification channel. Only used by Supplier to create NC.
Reimplemented in nc::HelperTest.
|
|
Helper method designed to eliminate "xxx::" from a passed string where "xxx" is some namespace. Designed to access the stringified name of an "ICD event".
|
|
Utility method. Returns admin properties used to create a notification channel. Developers should override this method if the defaults are insufficient.
|
|
This method returns a constant character pointer to the domain of notification channel 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.
Reimplemented in nc::ArchiveConsumer.
|
|
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.
Reimplemented in nc::ArchiveConsumer.
|
|
This method returns a constant character pointer to the name of the notification service as registered with the CORBA Naming Service.
Reimplemented in nc::ArchiveConsumer.
|
|
Utility method. Returns quality of service properties used to create a notification channel. Override this method if the defaults are insufficient.
|
|
The following was requested by Heiko Sommer and is needed for integrations. It should be removed at some later date. |
|
ALMA C++ coding standards state assignment operators should be disabled. |
|
This is used by Comsumers and Suppliers to get the notification channel. It first tries to resolved and if it fails, it tries to create it. If it fails to create it, it waits 2 seconds and tries again, 20 times. If it still fails, returns false |
|
Resolve the TAO naming service. In reality, this is the only CORBA service we need to create a notification channel. The naming service can be used to get references to anything registered with it.
|
|
Utility method. Try to resolve the Notify factory from the Naming service. Only used by Supplier to create NC.
|
|
This is used to determine if the notification channel we want to use has been registered with the Naming Service. If it has, we use that directly.
|
|
Keep a reference to the channel. Should this be removed in future releases of ACS??? |
|
Name of the notification channel. |
|
The group operator between admin-proxy's. The purpose of this variable is to define how multiple Filters are considered in a proxy admin. Basically this variable does not matter since filtering at the admin level is not allowed! |
|
A naming context (i.e., Naming Service reference) |
|
Name of "resovled" notification service. |
|
The notification channel used to send/receive events. This is created by the notification channel factory. This channel is bound to the naming service using channelName_mp. |
|
Channel factory. Used to create new channels. The extended mode of TAO is used to prevent the creation of a channel multiple times |
|
Channel factory. Used to create new channels. In the case of a non TAO implementation or the initialization of the service without the extended mode, the standard mode is used |
|
Name of the nofitication service domain. |
|
The following was requested by Heiko Sommer and is needed for integrations. It should be removed at some later date. |
|
In case of standalone mode, this must be used! |