OW2 Consortium

CVS log for carol/carol/src/org/objectweb/carol/util/configuration/ProtocolConfiguration.java

(logo)

Help

(back) Up to [OW2-CVS] / carol / carol / src / org / objectweb / carol / util / configuration

Request diff between arbitrary revisions / Display revisions graphically


Default branch: MAIN
Bookmark a link to: HEAD / (download)

Revision 1.2 / (view) - annotate - [select for diffs] , Mon Apr 11 11:39:20 2005 UTC (4 years, 11 months ago) by benoitf
Branch: MAIN
CVS Tags: HEAD, CAROL_2_2_9, CAROL_2_2_8, CAROL_2_2_7, CAROL_2_2_6, CAROL_2_2_5, CAROL_2_2_3, CAROL_2_2_2, CAROL_2_2_1, CAROL_2_1_0, CAROL_2_0_9, CAROL_2_0_8, CAROL_2_0_7, CAROL_2_0_6, CAROL_2_0_5, CAROL_2_0_4, CAROL_2_0_3, CAROL_2_0_2, CAROL_2_0_11, CAROL_2_0_10, CAROL_2_0_1, CAROL_2_0_0
Changes since 1.1: +4 -4 lines
Diff to previous 1.1
JSR77 Mbean for JNDIResource are created by Carol.
(JMX jars are optionals at runtime if Carol is not initialized with an MBeanServer).

Revision 1.1 / (view) - annotate - [select for diffs] , Thu Apr 7 14:07:07 2005 UTC (4 years, 11 months ago) by benoitf
Branch: MAIN
Change the configuration process of Carol as discussed here:
http://www.objectweb.org/wws/arc/carol/2005-03/msg00047.html
http://www.objectweb.org/wws/arc/carol/2005-03/msg00050.html
etc.

The configuration model is the following :
Instead of RmiConfiguration CarolConfiguration and CarolCurrentConfiguration.

There is only one entry named : ConfigurationRepository.

On this class, we can set a current configuration (ProtocolConfiguration)
ConfigurationRepository is also a factory of ProtocolConfiguration object (default imp =  ProtocolConfigurationImpl).
ConfigurationRepository.newConfiguration(protocolName, configName)

Protocol class is used by ProtocolConfiguration classes.

ie : jrmp is a Protocol class with its nameservice, PROdelegate, etc
the configuration "jrmp" use jrmp protocol but specify the PROVIDER_URL for example
So we can have jrmp1 with a PROVIDER_URL dummy:2001 and jrmp2 with PROVIDER_URL:dummy:2002


To retrieve the current protocol :
 ConfigurationRepository.getCurrentConfiguration().getProtocol().getName();

We can also initialize carol with an URL file : (#303299 feature reques)
 ConfigurationRepository.init(URL object).

Also we can use :
Properties p = protocolConfiguration.getProperties();
p.put(key,value)
protocolConfiguration.configure(p);
for feature request : #303300

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Diffs between and
Type of Diff should be a

View only Branch:
Sort log by:

webmaster@ow2.org
Powered by
ViewCVS 0.9.4

Back to OW2 Forge