public class ChannelProperties
extends java.lang.Object
| Constructor and Description |
|---|
ChannelProperties(ContainerServicesBase services)
Creates a new instance of ChannelProperties.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
cdbChannelConfigExists(java.lang.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.
|
protected Property[] |
configAdminProps(java.lang.String channelName)
Override this method in a subclass to specify your own administrative
properties for the channel.
|
protected Property[] |
configQofS(java.lang.String channelName)
Override this method in a subclass to specify your own quality of service
properties for the channel.
|
Property[] |
getCDBAdminProps(java.lang.String channelName)
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.
|
Property[] |
getCDBQoSProps(java.lang.String channelName)
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.
|
boolean |
isTraceEventsEnabled(java.lang.String channelName)
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. |
public ChannelProperties(ContainerServicesBase services)
services - A reference to the ContainerServices. Used to retrieve other
CORBA references and to access the logger.public boolean cdbChannelConfigExists(java.lang.String channelName)
channelName - is a string referring to the name of a Notification Channel
registered in the CORBA Naming Servicepublic boolean isTraceEventsEnabled(java.lang.String channelName)
throws AcsJException
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.AcsJExceptionpublic Property[] getCDBAdminProps(java.lang.String channelName)
throws AcsJException
channelName - name of the channel found in $ACS_CDB/CDB/MACI/ChannelsAcsJException - if the channel's CDB entry is corrupted in any waypublic Property[] getCDBQoSProps(java.lang.String channelName)
throws AcsJException
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/ChannelsAcsJException - if the channel's CDB entry is corrupted in any wayprotected Property[] configQofS(java.lang.String channelName)
throws AcsJException
channelName - Name of the channel we are looking for.AcsJException - Thrown if a CORBA Any cannot be created.protected Property[] configAdminProps(java.lang.String channelName)
throws AcsJException
channelName - Name of the channel we are looking forAcsJException - Thrown if a CORBA Any cannot be created.