summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/DescriptorParser.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2005-10-12 17:21:02 +0000
committerBenoit Foucher <benoit@zeroc.com>2005-10-12 17:21:02 +0000
commitaac841a43441f7911056ddbc6fc8c21aa6126431 (patch)
tree8dcad281655b53155e9c10e72b07d436208787a8 /cpp/src/IceGrid/DescriptorParser.cpp
parentchanging getLogger to return a custom Python impl (diff)
downloadice-aac841a43441f7911056ddbc6fc8c21aa6126431.tar.bz2
ice-aac841a43441f7911056ddbc6fc8c21aa6126431.tar.xz
ice-aac841a43441f7911056ddbc6fc8c21aa6126431.zip
Added support for replica groups and removed replicated adapters.
Diffstat (limited to 'cpp/src/IceGrid/DescriptorParser.cpp')
-rw-r--r--cpp/src/IceGrid/DescriptorParser.cpp24
1 files changed, 17 insertions, 7 deletions
diff --git a/cpp/src/IceGrid/DescriptorParser.cpp b/cpp/src/IceGrid/DescriptorParser.cpp
index 0f9382ae15f..2183ed3ee2f 100644
--- a/cpp/src/IceGrid/DescriptorParser.cpp
+++ b/cpp/src/IceGrid/DescriptorParser.cpp
@@ -272,20 +272,20 @@ DescriptorHandler::startElement(const string& name, const IceXML::Attributes& at
_currentTemplate.reset(_currentApplication->createServiceTemplate(attributes));
}
- else if(name == "replicated-adapter")
+ else if(name == "replica-group")
{
if(!_currentApplication.get())
{
- error("the <replicated-adapter> element can only be a child of a <application> element");
+ error("the <replica-group> element can only be a child of a <application> element");
}
- _currentApplication->addReplicatedAdapter(attributes);
+ _currentApplication->addReplicaGroup(attributes);
_inAdapter = true;
}
else if(name == "load-balancing")
{
if(!_inAdapter || _currentServer.get())
{
- error("the <load-balancing> element can only be a child of a <replicated-adapter> element");
+ error("the <load-balancing> element can only be a child of a <replica-group> element");
}
_currentApplication->setLoadBalancing(attributes);
}
@@ -333,7 +333,7 @@ DescriptorHandler::startElement(const string& name, const IceXML::Attributes& at
{
if(!_inAdapter)
{
- error("the <object> element can only be a child of an <adapter> or <replicated-adapter> element");
+ error("the <object> element can only be a child of an <adapter> or <replica-group> element");
}
if(!_currentCommunicator)
{
@@ -456,8 +456,18 @@ DescriptorHandler::endElement(const string& name, int line, int column)
_currentApplication->addServiceTemplate(_currentTemplate->getId(), _currentTemplate->getDescriptor());
_currentTemplate.reset(0);
}
- else if(name == "comment")
+ else if(name == "description")
{
+ if(_inAdapter)
+ {
+ assert(_currentCommunicator);
+ _currentCommunicator->setAdapterDescription(elementValue());
+ }
+ else if(_inDbEnv)
+ {
+ assert(_currentCommunicator);
+ _currentCommunicator->setDbEnvDescription(elementValue());
+ }
if(_currentCommunicator)
{
_currentCommunicator->setDescription(elementValue());
@@ -506,7 +516,7 @@ DescriptorHandler::endElement(const string& name, int line, int column)
{
_inAdapter = false;
}
- else if(name == "replicated-adapter")
+ else if(name == "replica-group")
{
_inAdapter = false;
}