Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

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

List of all members.

Static Public Member Functions

synchronized Properties getProperties (ClassLoader loader)

Static Public Attributes

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

Static Package Attributes

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

Static Private Member Functions

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

Static Private Attributes

Properties cmwProperties = null
final String DEFAULT_CONNECTION_RETRY_PERIOD = "10"
final String DEFAULT_CONNECTION_RETRY_NUMBER = "99999"
final String DEFAULT_CONNECTION_PING_INTERVAL = "5"
final String DEFAULT_USERNAME = "cmw_usr"
final String DEFAULT_PASSWORD = "cmw_pwd"
final String DEFAULT_BROKER_LIST = "sljas1:2506"
final String DEFAULT_LOAD_BALANCING = "false"
final String DEFAULT_KEEP_ALIVE = "0"
final String DEFAULT_MSG_PERSISTANCE = "false"
final String DEFAULT_MSG_PRIORITY = "4"
final String DEFAULT_MSG_TIMETOLIVE = "60000"
final String DEFAULT_SEQUENTIAL = "true"
final String DEFAULT_SELECTOR_AT_BROKER = "false"
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

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

Open the resource as Input Stream.

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.

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

Set the right values for the properties.


Member Data Documentation

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

Field BROKER_LIST_PROPERTY

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

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

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

Field CONFIGURATION_FILE

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

Field CONFIG_FILE_LOCATION_PROPERTY

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

Field CONFIGURATION_PROPERTY_FILE

final String cern::cmw::mom::util::MomConfig::CONNECTION_PING_INTERVAL_PROPERTY = "cmw.mom.ping" [static]
 

Field CONNECTION_PING_INTERVAL_PROPERTY

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

Field CONNECTION_RETRY_NUMBER_PROPERTY

final String cern::cmw::mom::util::MomConfig::CONNECTION_RETRY_PERIOD_PROPERTY = "cmw.mom.retry" [static]
 

Field CONNECTION_RETRY_PERIOD_PROPERTY

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

final String cern::cmw::mom::util::MomConfig::DEFAULT_CONNECTION_PING_INTERVAL = "5" [static, private]
 

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

final String cern::cmw::mom::util::MomConfig::DEFAULT_CONNECTION_RETRY_PERIOD = "10" [static, private]
 

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

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

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

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

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

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

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

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

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

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

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

Field KEEP_ALIVE_PROPERTY

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

Field LOAD_BALANCING_PROPERTY

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

Field MSG_PERSISTANCE_PROPERTY

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

Field MSG_PRIORITY_PROPERTY

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

Field MSG_TIMETOLIVE_PROPERTY

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

Field NOTIFICATION_PROPERTY

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

Field PASSWORD_PROPERTY

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

Field SELECTOR_AT_BROKER_PROPERTY

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

Field SEQUENTIAL_PROPERTY

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

Field USERNAME_PROPERTY


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 03:08:08 2009 for ACS Java API by doxygen 1.3.8