cern::cmw::mom::util::MomConfig Class Reference

Collaboration diagram for cern::cmw::mom::util::MomConfig:
Collaboration graph
[legend]

List of all members.

Static Public Member Functions

static synchronized Properties getProperties (ClassLoader loader)

Static Public Attributes

static final String CONFIGURATION_PROPERTY = "cmw.mom.config"
static final String CONFIGURATION_PROPERTY_FILE = "cmw-mom-config.properties"
static final String CONFIGURATION_FILE = "cmw-mom.properties"
static final String CONNECTION_RETRY_PERIOD_PROPERTY = "cmw.mom.retry"
static final String CONNECTION_RETRY_NUMBER_PROPERTY = "cmw.mom.maxretry"
static final String CONNECTION_PING_INTERVAL_PROPERTY = "cmw.mom.ping"
static final String USERNAME_PROPERTY = "cmw.mom.username"
static final String PASSWORD_PROPERTY = "cmw.mom.password"
static final String BROKER_LIST_PROPERTY = "cmw.mom.brokerlist"
static final String LOAD_BALANCING_PROPERTY = "cmw.mom.loadbalancing"
static final String KEEP_ALIVE_PROPERTY = "cmw.mom.keepalive"
static final String MSG_PERSISTANCE_PROPERTY = "cmw.mom.persistance"
static final String MSG_PRIORITY_PROPERTY = "cmw.mom.priority"
static final String MSG_TIMETOLIVE_PROPERTY = "cmw.mom.timetolive"
static final String SEQUENTIAL_PROPERTY = "cmw.mom.sequential"
static final String SELECTOR_AT_BROKER_PROPERTY = "cmw.mom.selectoratbroker"
static final String NOTIFICATION_PROPERTY = "cmw.mom.notification"

Static Package Attributes

static Category cat = Category.getInstance(MomConfig.class.getName())

Static Private Member Functions

static InputStream getInputStream (ClassLoader loader, String resource) throws IOException
static void setProperties ()

Static Private Attributes

static Properties cmwProperties = null
static final String DEFAULT_CONNECTION_RETRY_PERIOD = "10"
static final String DEFAULT_CONNECTION_RETRY_NUMBER = "99999"
static final String DEFAULT_CONNECTION_PING_INTERVAL = "5"
static final String DEFAULT_USERNAME = "cmw_usr"
static final String DEFAULT_PASSWORD = "cmw_pwd"
static final String DEFAULT_BROKER_LIST = "sljas1:2506"
static final String DEFAULT_LOAD_BALANCING = "false"
static final String DEFAULT_KEEP_ALIVE = "0"
static final String DEFAULT_MSG_PERSISTANCE = "false"
static final String DEFAULT_MSG_PRIORITY = "4"
static final String DEFAULT_MSG_TIMETOLIVE = "60000"
static final String DEFAULT_SEQUENTIAL = "true"
static final String DEFAULT_SELECTOR_AT_BROKER = "false"
static final String DEFAULT_NOTIFICATION = "false"

Detailed Description

Service class. Provides property definitions and initialization facility.

Version:
1.0 23 Jan 2001
Author:
Controls Middleware Project

Member Function Documentation

static InputStream cern::cmw::mom::util::MomConfig::getInputStream ( ClassLoader  loader,
String  resource 
) throws IOException [inline, static, private]

Open the resource as Input Stream.

Referenced by getProperties().

static synchronized Properties cern::cmw::mom::util::MomConfig::getProperties ( ClassLoader  loader  )  [inline, static]

Returns properties loaded from the CMW configuration file. The path of the configuration file can be specified with the system property "cmw.config". If this property is not specified, then the default will be used which in the CERN environment is "http://slwww/~pca/cmw/cmw.cfg". The order of priority is as follows : system properties, user defined config file, default config file, default values.

Returns:
java.util.Properties The CMW properties.

References cat, cmwProperties, CONFIGURATION_FILE, CONFIGURATION_PROPERTY, CONFIGURATION_PROPERTY_FILE, getInputStream(), and setProperties().

static void cern::cmw::mom::util::MomConfig::setProperties (  )  [inline, static, private]

Member Data Documentation

final String cern::cmw::mom::util::MomConfig::BROKER_LIST_PROPERTY = "cmw.mom.brokerlist" [static]

Field BROKER_LIST_PROPERTY

Referenced by setProperties().

Category cern::cmw::mom::util::MomConfig::cat = Category.getInstance(MomConfig.class.getName()) [static, package]

Referenced by getProperties(), and setProperties().

Properties cern::cmw::mom::util::MomConfig::cmwProperties = null [static, private]

Referenced by getProperties(), and setProperties().

final String cern::cmw::mom::util::MomConfig::CONFIGURATION_FILE = "cmw-mom.properties" [static]

Field CONFIGURATION_FILE

Referenced by getProperties().

final String cern::cmw::mom::util::MomConfig::CONFIGURATION_PROPERTY = "cmw.mom.config" [static]

Field CONFIG_FILE_LOCATION_PROPERTY

Referenced by getProperties().

final String cern::cmw::mom::util::MomConfig::CONFIGURATION_PROPERTY_FILE = "cmw-mom-config.properties" [static]

Field CONFIGURATION_PROPERTY_FILE

Referenced by getProperties().

Field CONNECTION_PING_INTERVAL_PROPERTY

Referenced by setProperties().

final String cern::cmw::mom::util::MomConfig::CONNECTION_RETRY_NUMBER_PROPERTY = "cmw.mom.maxretry" [static]

Field CONNECTION_RETRY_NUMBER_PROPERTY

Referenced by setProperties().

Field CONNECTION_RETRY_PERIOD_PROPERTY

Referenced by setProperties().

final String cern::cmw::mom::util::MomConfig::DEFAULT_BROKER_LIST = "sljas1:2506" [static, private]

Referenced by setProperties().

Referenced by setProperties().

final String cern::cmw::mom::util::MomConfig::DEFAULT_CONNECTION_RETRY_NUMBER = "99999" [static, private]

Referenced by setProperties().

Referenced by setProperties().

final String cern::cmw::mom::util::MomConfig::DEFAULT_KEEP_ALIVE = "0" [static, private]

Referenced by setProperties().

final String cern::cmw::mom::util::MomConfig::DEFAULT_LOAD_BALANCING = "false" [static, private]

Referenced by setProperties().

final String cern::cmw::mom::util::MomConfig::DEFAULT_MSG_PERSISTANCE = "false" [static, private]

Referenced by setProperties().

final String cern::cmw::mom::util::MomConfig::DEFAULT_MSG_PRIORITY = "4" [static, private]

Referenced by setProperties().

final String cern::cmw::mom::util::MomConfig::DEFAULT_MSG_TIMETOLIVE = "60000" [static, private]

Referenced by setProperties().

final String cern::cmw::mom::util::MomConfig::DEFAULT_NOTIFICATION = "false" [static, private]

Referenced by setProperties().

final String cern::cmw::mom::util::MomConfig::DEFAULT_PASSWORD = "cmw_pwd" [static, private]

Referenced by setProperties().

final String cern::cmw::mom::util::MomConfig::DEFAULT_SELECTOR_AT_BROKER = "false" [static, private]

Referenced by setProperties().

final String cern::cmw::mom::util::MomConfig::DEFAULT_SEQUENTIAL = "true" [static, private]

Referenced by setProperties().

final String cern::cmw::mom::util::MomConfig::DEFAULT_USERNAME = "cmw_usr" [static, private]

Referenced by setProperties().

final String cern::cmw::mom::util::MomConfig::KEEP_ALIVE_PROPERTY = "cmw.mom.keepalive" [static]

Field KEEP_ALIVE_PROPERTY

Referenced by setProperties().

final String cern::cmw::mom::util::MomConfig::LOAD_BALANCING_PROPERTY = "cmw.mom.loadbalancing" [static]

Field LOAD_BALANCING_PROPERTY

Referenced by setProperties().

final String cern::cmw::mom::util::MomConfig::MSG_PERSISTANCE_PROPERTY = "cmw.mom.persistance" [static]

Field MSG_PERSISTANCE_PROPERTY

Referenced by setProperties().

final String cern::cmw::mom::util::MomConfig::MSG_PRIORITY_PROPERTY = "cmw.mom.priority" [static]

Field MSG_PRIORITY_PROPERTY

Referenced by setProperties().

final String cern::cmw::mom::util::MomConfig::MSG_TIMETOLIVE_PROPERTY = "cmw.mom.timetolive" [static]

Field MSG_TIMETOLIVE_PROPERTY

Referenced by setProperties().

final String cern::cmw::mom::util::MomConfig::NOTIFICATION_PROPERTY = "cmw.mom.notification" [static]

Field NOTIFICATION_PROPERTY

Referenced by setProperties().

final String cern::cmw::mom::util::MomConfig::PASSWORD_PROPERTY = "cmw.mom.password" [static]

Field PASSWORD_PROPERTY

Referenced by setProperties().

final String cern::cmw::mom::util::MomConfig::SELECTOR_AT_BROKER_PROPERTY = "cmw.mom.selectoratbroker" [static]

Field SELECTOR_AT_BROKER_PROPERTY

Referenced by setProperties().

final String cern::cmw::mom::util::MomConfig::SEQUENTIAL_PROPERTY = "cmw.mom.sequential" [static]

Field SEQUENTIAL_PROPERTY

Referenced by setProperties().

final String cern::cmw::mom::util::MomConfig::USERNAME_PROPERTY = "cmw.mom.username" [static]

Field USERNAME_PROPERTY

Referenced by setProperties().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2