Public Member Functions | |
ChannelProperties (ContainerServicesBase services) | |
boolean | cdbChannelConfigExists (String channelName) |
boolean | isTraceEventsEnabled (String channelName) throws AcsJException |
Property[] | getCDBAdminProps (String channelName) throws AcsJException |
Property[] | getCDBQoSProps (String channelName) throws alma.acs.exceptions.AcsJException |
Protected Member Functions | |
Property[] | configQofS (String channelName) throws AcsJException |
Property[] | configAdminProps (String channelName) throws AcsJException |
ChanncelProperties is a class designed to retrieve the various quality of service and administrative properties for a given channel. It is intended to be used primarily by the Helper class within this package. *
think about joining this class with ChannelInfo.
alma.acs.nc.ChannelProperties.ChannelProperties | ( | ContainerServicesBase | services | ) |
Creates a new instance of ChannelProperties.
services | A reference to the ContainerServices. Used to retrieve other CORBA references and to access the logger. |
References alma.acs.container.ContainerServicesBase.getLogger().
boolean alma.acs.nc.ChannelProperties.cdbChannelConfigExists | ( | String | channelName | ) |
Simple function which returns true if the given channel has an entry in $ACS_CDB/CDB/MACI/EventChannels/ section of the ACS configuration database.
channelName | is a string referring to the name of a Notification Channel registered in the CORBA Naming Service |
References alma.acs.container.ContainerServicesBase.getCDB().
Referenced by alma.acs.nc.ChannelProperties.configAdminProps(), and alma.acs.nc.ChannelProperties.configQofS().
Property [] alma.acs.nc.ChannelProperties.configAdminProps | ( | String | channelName | ) | throws AcsJException [protected] |
Override this method in a subclass to specify your own administrative properties for the channel. Only useful if the channel has not already been registered with the naming service.
channelName | Name of the channel we are looking for |
AcsJException | Thrown if a CORBA Any cannot be created. |
References alma.acs.nc.ChannelProperties.cdbChannelConfigExists(), and alma.acs.nc.ChannelProperties.getCDBAdminProps().
Property [] alma.acs.nc.ChannelProperties.configQofS | ( | String | channelName | ) | throws AcsJException [protected] |
Override this method in a subclass to specify your own quality of service properties for the channel. Only useful if the channel has not already been registered with the naming service.
channelName | Name of the channel we are looking for. |
AcsJException | Thrown if a CORBA Any cannot be created. |
References alma.acs.nc.ChannelProperties.cdbChannelConfigExists(), and alma.acs.nc.ChannelProperties.getCDBQoSProps().
Property [] alma.acs.nc.ChannelProperties.getCDBAdminProps | ( | String | channelName | ) | throws AcsJException |
Given a channel name that exists in the ACS CDB ($ACS_CDB/CDB/MACI/Channels/channelName/channelName.xml), this function returns the channels administrative properties in their CORBA format.
channelName | name of the channel found in $ACS_CDB/CDB/MACI/Channels |
AcsJException | if the channel's CDB entry is corrupted in any way |
References alma.acs.container.ContainerServicesBase.getAdvancedContainerServices(), and alma.acs.container.ContainerServicesBase.getCDB().
Referenced by alma.acs.nc.ChannelProperties.configAdminProps().
Property [] alma.acs.nc.ChannelProperties.getCDBQoSProps | ( | String | channelName | ) | throws alma.acs.exceptions.AcsJException |
Given a channel name that exists in the ACS CDB ($ACS_CDB/CDB/MACI/Channels/channelName/channelName.xml), this function returns the channel's quality of service properties in their CORBA format.
The schema for this channel configuration is urn:schemas-cosylab-com:EventChannel:1.0
.
channelName | name of the channel found in $ACS_CDB/CDB/MACI/Channels |
AcsJException | if the channel's CDB entry is corrupted in any way |
References alma.acs.container.ContainerServicesBase.getAdvancedContainerServices(), and alma.acs.container.ContainerServicesBase.getCDB().
Referenced by alma.acs.nc.ChannelProperties.configQofS().
boolean alma.acs.nc.ChannelProperties.isTraceEventsEnabled | ( | String | channelName | ) | throws AcsJException |
When some attribute is set within the CDB (currently IntegrationLogs
defined in EventChannel.xsd
, see NC document), a log is published each time an event is sent or received. For performance reasons, this should be used very carefully to say the least.
channelName | Name of the channel. |
AcsJException |
References alma.acs.container.ContainerServicesBase.getCDB().