Static Public Member Functions | Static Public Attributes

cern.cmw.mom.mapping.MappingService Class Reference

List of all members.

Static Public Member Functions

static String mapPropertyToTopic (String deviceClass, String deviceName, String propertyName) throws MOMException
static String mapCycleSelectorToSelector (String cycle) throws MOMException

Static Public Attributes

static final String CYCLE_SELECTOR_PROPERTY = "CYCLE_SELECTOR"

Detailed Description

Service class. Provides mapping functionalities to :

The device topic namespace starts at CMW.DEVICES. Static field CYCLE_SELECTOR_PROPERTY determines the message string property that handles a cycle selector string.

Version:
1.0 23 Jan 2001
Author:
Controls Middleware Project
See also:
cern.cmw.mom.pubsub.Publisher
cern.cmw.mom.pubsub.Subscriber
cern.cmw.mom.util.TopicAdminHelper

Member Function Documentation

static String cern.cmw.mom.mapping.MappingService.mapCycleSelectorToSelector ( String  cycle  )  throws MOMException [static]

Static method to automatically create the message selector associated with the given cycle selector string

Parameters:
cycle The cycle selector string representation
Returns:
String The corresponding message selector. If cycle is null, the message selector filters on null CYCLE_SELECTOR_PROPERTY.
Exceptions:
MOMException A MOMException

References cern.cmw.mom.mapping.MappingService.CYCLE_SELECTOR_PROPERTY.

static String cern.cmw.mom.mapping.MappingService.mapPropertyToTopic ( String  deviceClass,
String  deviceName,
String  propertyName 
) throws MOMException [static]

Static method to automatically get the topic name associated with the triplet deviceClass, deviceName, propertyName

Parameters:
deviceClass The device class
deviceName The device name
propertyName The property name
Returns:
String The topic associated to the triplet
Exceptions:
MOMException A MOMException

Member Data Documentation

final String cern.cmw.mom.mapping.MappingService.CYCLE_SELECTOR_PROPERTY = "CYCLE_SELECTOR" [static]

Static field that holds the property name to be used for filtering on cycle selector.

Referenced by cern.cmw.mom.mapping.MappingService.mapCycleSelectorToSelector().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties