summaryrefslogtreecommitdiff
path: root/cpp/src/Freeze/EvictorI.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2006-05-09 13:07:41 +0000
committerDwayne Boone <dwayne@zeroc.com>2006-05-09 13:07:41 +0000
commit197b6de9281b52d0b53c4b3fa3312e371b4469a9 (patch)
treebae93f8155da0770f5dd45d12ef1160ee99aed54 /cpp/src/Freeze/EvictorI.cpp
parentAdded identityToString and stringToIdentity to Communicator (diff)
downloadice-197b6de9281b52d0b53c4b3fa3312e371b4469a9.tar.bz2
ice-197b6de9281b52d0b53c4b3fa3312e371b4469a9.tar.xz
ice-197b6de9281b52d0b53c4b3fa3312e371b4469a9.zip
Fixed proxy and identity t/from string functions to use string converters
Diffstat (limited to 'cpp/src/Freeze/EvictorI.cpp')
-rw-r--r--cpp/src/Freeze/EvictorI.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/cpp/src/Freeze/EvictorI.cpp b/cpp/src/Freeze/EvictorI.cpp
index 1b0e066b9d5..d9957034140 100644
--- a/cpp/src/Freeze/EvictorI.cpp
+++ b/cpp/src/Freeze/EvictorI.cpp
@@ -581,7 +581,7 @@ Freeze::EvictorI::addFacet(const ObjectPtr& servant, const Identity& ident, cons
{
AlreadyRegisteredException ex(__FILE__, __LINE__);
ex.kindOfObject = "servant";
- ex.id = identityToString(ident);
+ ex.id = _communicator->identityToString(ident);
if(!facet.empty())
{
ex.id += " -f " + IceUtil::escapeString(facet, "");
@@ -592,7 +592,7 @@ Freeze::EvictorI::addFacet(const ObjectPtr& servant, const Identity& ident, cons
if(_trace >= 1)
{
Trace out(_communicator->getLogger(), "Freeze.Evictor");
- out << "added object \"" << ident << "\"";
+ out << "added object \"" << _communicator->identityToString(ident) << "\"";
if(!facet.empty())
{
out << " with facet \"" << facet << "\"";
@@ -701,7 +701,7 @@ Freeze::EvictorI::createObject(const Identity& ident, const ObjectPtr& servant)
if(_trace >= 1)
{
Trace out(_communicator->getLogger(), "Freeze.Evictor");
- out << "added object \"" << ident << "\"";
+ out << "added object \"" << _communicator->identityToString(ident) << "\"";
}
}
@@ -808,7 +808,7 @@ Freeze::EvictorI::removeFacet(const Identity& ident, const string& facet)
{
NotRegisteredException ex(__FILE__, __LINE__);
ex.kindOfObject = "servant";
- ex.id = identityToString(ident);
+ ex.id = _communicator->identityToString(ident);
if(!facet.empty())
{
ex.id += " -f " + IceUtil::escapeString(facet, "");
@@ -819,7 +819,7 @@ Freeze::EvictorI::removeFacet(const Identity& ident, const string& facet)
if(_trace >= 1)
{
Trace out(_communicator->getLogger(), "Freeze.Evictor");
- out << "removed object \"" << ident << "\"";
+ out << "removed object \"" << _communicator->identityToString(ident) << "\"";
if(!facet.empty())
{
out << " with facet \"" << facet << "\"";
@@ -930,7 +930,7 @@ Freeze::EvictorI::keepFacet(const Identity& ident, const string& facet)
{
NotRegisteredException ex(__FILE__, __LINE__);
ex.kindOfObject = "servant";
- ex.id = identityToString(ident);
+ ex.id = _communicator->identityToString(ident);
if(!facet.empty())
{
ex.id += " -f " + IceUtil::escapeString(facet, "");
@@ -988,7 +988,7 @@ Freeze::EvictorI::releaseFacet(const Identity& ident, const string& facet)
NotRegisteredException ex(__FILE__, __LINE__);
ex.kindOfObject = "servant";
- ex.id = identityToString(ident);
+ ex.id = _communicator->identityToString(ident);
if(!facet.empty())
{
ex.id += " -f " + IceUtil::escapeString(facet, "");
@@ -1140,7 +1140,7 @@ Freeze::EvictorI::locate(const Current& current, LocalObjectPtr& cookie)
if(_trace >= 3)
{
Trace out(_communicator->getLogger(), "Freeze.Evictor");
- out << "ice_ping found \"" << identityToString(current.id)
+ out << "ice_ping found \"" << _communicator->identityToString(current.id)
<< "\" with facet \"" << current.facet + "\"";
}
@@ -1152,7 +1152,7 @@ Freeze::EvictorI::locate(const Current& current, LocalObjectPtr& cookie)
if(_trace >= 3)
{
Trace out(_communicator->getLogger(), "Freeze.Evictor");
- out << "ice_ping raises FacetNotExistException for \"" << identityToString(current.id)
+ out << "ice_ping raises FacetNotExistException for \"" << _communicator->identityToString(current.id)
<< "\" with facet \"" << current.facet + "\"";
}
throw FacetNotExistException(__FILE__, __LINE__);
@@ -1162,8 +1162,8 @@ Freeze::EvictorI::locate(const Current& current, LocalObjectPtr& cookie)
if(_trace >= 3)
{
Trace out(_communicator->getLogger(), "Freeze.Evictor");
- out << "ice_ping will raise ObjectNotExistException for \"" << identityToString(current.id)
- << "\" with facet \"" << current.facet + "\"";
+ out << "ice_ping will raise ObjectNotExistException for \""
+ << _communicator->identityToString(current.id) << "\" with facet \"" << current.facet + "\"";
}
return 0;
}
@@ -1782,7 +1782,7 @@ Freeze::EvictorI::evict()
string facet = element->store.facet();
Trace out(_communicator->getLogger(), "Freeze.Evictor");
- out << "evicting \"" << element->cachePosition->first << "\" ";
+ out << "evicting \"" << _communicator->identityToString(element->cachePosition->first) << "\" ";
if(facet != "")
{
out << "-f \"" << facet << "\" ";