#104043# Add/adjust log point for TIMELOG
This commit is contained in:
@@ -2,9 +2,9 @@
|
|||||||
*
|
*
|
||||||
* $RCSfile: providerimpl.cxx,v $
|
* $RCSfile: providerimpl.cxx,v $
|
||||||
*
|
*
|
||||||
* $Revision: 1.51 $
|
* $Revision: 1.52 $
|
||||||
*
|
*
|
||||||
* last change: $Author: jb $ $Date: 2002-10-10 09:23:25 $
|
* last change: $Author: jb $ $Date: 2002-10-14 14:19:23 $
|
||||||
*
|
*
|
||||||
* The Contents of this file are made available subject to the terms of
|
* The Contents of this file are made available subject to the terms of
|
||||||
* either of the following licenses
|
* either of the following licenses
|
||||||
@@ -131,6 +131,8 @@
|
|||||||
#include <rtl/logfile.hxx>
|
#include <rtl/logfile.hxx>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define RTL_LOGFILE_OU2A(rtlOUString) (::rtl::OUStringToOString((rtlOUString), RTL_TEXTENCODING_ASCII_US).getStr())
|
||||||
|
|
||||||
namespace configmgr
|
namespace configmgr
|
||||||
{
|
{
|
||||||
namespace css = ::com::sun::star;
|
namespace css = ::com::sun::star;
|
||||||
@@ -584,6 +586,9 @@ namespace configmgr
|
|||||||
|
|
||||||
OSL_ASSERT(sal_Int16(nMinLevels) == nMinLevels);
|
OSL_ASSERT(sal_Int16(nMinLevels) == nMinLevels);
|
||||||
|
|
||||||
|
RTL_LOGFILE_CONTEXT_AUTHOR(aLog, "configmgr::OProviderImpl", "jb99855", "configmgr::OProviderImpl::buildReadAccess()");
|
||||||
|
RTL_LOGFILE_CONTEXT_TRACE1(aLog, "request path: %s", RTL_LOGFILE_OU2A(_rAccessor) );
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
using namespace configuration;
|
using namespace configuration;
|
||||||
@@ -592,8 +597,12 @@ namespace configmgr
|
|||||||
|
|
||||||
data::NodeAccess aTree = this->requestSubtree(aAccessorPath,_xOptions, sal_Int16(nMinLevels));
|
data::NodeAccess aTree = this->requestSubtree(aAccessorPath,_xOptions, sal_Int16(nMinLevels));
|
||||||
|
|
||||||
|
RTL_LOGFILE_CONTEXT_TRACE(aLog, "data loaded" );
|
||||||
|
|
||||||
TreeDepth nDepth = (nMinLevels == ALL_LEVELS) ? C_TreeDepthAll : TreeDepth(nMinLevels);
|
TreeDepth nDepth = (nMinLevels == ALL_LEVELS) ? C_TreeDepthAll : TreeDepth(nMinLevels);
|
||||||
|
|
||||||
|
RTL_LOGFILE_CONTEXT_AUTHOR(aLog2, "configmgr::OProviderImpl", "jb99855", "configmgr: createReadOnlyTree()");
|
||||||
|
|
||||||
RootTree aRootTree( createReadOnlyTree(
|
RootTree aRootTree( createReadOnlyTree(
|
||||||
aAccessorPath, this->getDataSegment(aAccessorPath,_xOptions),
|
aAccessorPath, this->getDataSegment(aAccessorPath,_xOptions),
|
||||||
aTree, nDepth,
|
aTree, nDepth,
|
||||||
@@ -619,6 +628,9 @@ namespace configmgr
|
|||||||
CFG_TRACE_INFO("config provider: requesting the tree from the cache manager");
|
CFG_TRACE_INFO("config provider: requesting the tree from the cache manager");
|
||||||
OSL_ASSERT(sal_Int16(nMinLevels) == nMinLevels);
|
OSL_ASSERT(sal_Int16(nMinLevels) == nMinLevels);
|
||||||
|
|
||||||
|
RTL_LOGFILE_CONTEXT_AUTHOR(aLog, "configmgr::OProviderImpl", "jb99855", "configmgr: buildUpdateAccess()");
|
||||||
|
RTL_LOGFILE_CONTEXT_TRACE1(aLog, "request path: %s", RTL_LOGFILE_OU2A(_rAccessor) );
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
using namespace configuration;
|
using namespace configuration;
|
||||||
@@ -627,8 +639,12 @@ namespace configmgr
|
|||||||
|
|
||||||
data::NodeAccess aTree = requestSubtree(aAccessorPath, _xOptions, sal_Int16(nMinLevels));
|
data::NodeAccess aTree = requestSubtree(aAccessorPath, _xOptions, sal_Int16(nMinLevels));
|
||||||
|
|
||||||
|
RTL_LOGFILE_CONTEXT_TRACE(aLog, "data loaded" );
|
||||||
|
|
||||||
TreeDepth nDepth = (nMinLevels == ALL_LEVELS) ? C_TreeDepthAll : TreeDepth(nMinLevels);
|
TreeDepth nDepth = (nMinLevels == ALL_LEVELS) ? C_TreeDepthAll : TreeDepth(nMinLevels);
|
||||||
|
|
||||||
|
RTL_LOGFILE_CONTEXT_AUTHOR(aLog2, "configmgr::OProviderImpl", "jb99855", "createUpdatableTree()");
|
||||||
|
|
||||||
RootTree aRootTree( createUpdatableTree(
|
RootTree aRootTree( createUpdatableTree(
|
||||||
aAccessorPath, this->getDataSegment(aAccessorPath,_xOptions),
|
aAccessorPath, this->getDataSegment(aAccessorPath,_xOptions),
|
||||||
aTree, nDepth,
|
aTree, nDepth,
|
||||||
|
@@ -2,9 +2,9 @@
|
|||||||
*
|
*
|
||||||
* $RCSfile: backendaccess.cxx,v $
|
* $RCSfile: backendaccess.cxx,v $
|
||||||
*
|
*
|
||||||
* $Revision: 1.6 $
|
* $Revision: 1.7 $
|
||||||
*
|
*
|
||||||
* last change: $Author: cyrillem $ $Date: 2002-07-19 18:18:35 $
|
* last change: $Author: jb $ $Date: 2002-10-14 14:19:26 $
|
||||||
*
|
*
|
||||||
* The Contents of this file are made available subject to the terms of
|
* The Contents of this file are made available subject to the terms of
|
||||||
* either of the following licenses
|
* either of the following licenses
|
||||||
@@ -79,6 +79,11 @@
|
|||||||
#include <drafts/com/sun/star/configuration/backend/XCompositeLayer.hpp>
|
#include <drafts/com/sun/star/configuration/backend/XCompositeLayer.hpp>
|
||||||
#endif // _COM_SUN_STAR_CONFIGURATION_BACKEND_XCOMPOSITELAYER_HPP_
|
#endif // _COM_SUN_STAR_CONFIGURATION_BACKEND_XCOMPOSITELAYER_HPP_
|
||||||
|
|
||||||
|
#ifndef _RTL_LOGFILE_HXX_
|
||||||
|
#include <rtl/logfile.hxx>
|
||||||
|
#endif
|
||||||
|
#define RTL_LOGFILE_OU2A(rtlOUString) (::rtl::OUStringToOString((rtlOUString), RTL_TEXTENCODING_ASCII_US).getStr())
|
||||||
|
|
||||||
namespace configmgr { namespace backend {
|
namespace configmgr { namespace backend {
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
@@ -129,6 +134,9 @@ static NodeResult merge(
|
|||||||
LayerMergeHandler * pMerger = new LayerMergeHandler(aFactory, aData, OUString());
|
LayerMergeHandler * pMerger = new LayerMergeHandler(aFactory, aData, OUString());
|
||||||
uno::Reference<backenduno::XLayerHandler> xLayerMerger(pMerger);
|
uno::Reference<backenduno::XLayerHandler> xLayerMerger(pMerger);
|
||||||
|
|
||||||
|
RTL_LOGFILE_CONTEXT_AUTHOR(aLog, "configmgr::backend::BackendAccess", "jb99855", "configmgr: BackendAccess::merge()");
|
||||||
|
RTL_LOGFILE_CONTEXT_TRACE1(aLog, "merging %d layers", int(aNbLayers) );
|
||||||
|
|
||||||
for (sal_Int32 i = 0 ; i < aNbLayers ; ++ i)
|
for (sal_Int32 i = 0 ; i < aNbLayers ; ++ i)
|
||||||
{
|
{
|
||||||
promoteToDefault(aData) ;
|
promoteToDefault(aData) ;
|
||||||
@@ -162,6 +170,9 @@ NodeResult BackendAccess::getNodeData(const NodeRequest& aRequest,
|
|||||||
uno::Sequence<uno::Reference<backenduno::XLayer> > layers ;
|
uno::Sequence<uno::Reference<backenduno::XLayer> > layers ;
|
||||||
uno::Reference<backenduno::XSchema> schema ;
|
uno::Reference<backenduno::XSchema> schema ;
|
||||||
|
|
||||||
|
RTL_LOGFILE_CONTEXT_AUTHOR(aLog, "configmgr::backend::BackendAccess", "jb99855", "configmgr: BackendAccess::getNodeData()");
|
||||||
|
RTL_LOGFILE_CONTEXT_TRACE1(aLog, "request path: %s", RTL_LOGFILE_OU2A(aRequest.getPath().toString()) );
|
||||||
|
|
||||||
getSchemaAndLayers(aRequest, schema, layers) ;
|
getSchemaAndLayers(aRequest, schema, layers) ;
|
||||||
schema->readSchema(schemaHandler) ;
|
schema->readSchema(schemaHandler) ;
|
||||||
return merge(mFactory, schemaBuilder->result(), layers, layers.getLength(),
|
return merge(mFactory, schemaBuilder->result(), layers, layers.getLength(),
|
||||||
@@ -177,6 +188,9 @@ void BackendAccess::updateNodeData(const UpdateRequest& aUpdate)
|
|||||||
aUpdate.getUpdateRoot().getModuleName().toString() ;
|
aUpdate.getUpdateRoot().getModuleName().toString() ;
|
||||||
uno::Reference<backenduno::XUpdateHandler> handler ;
|
uno::Reference<backenduno::XUpdateHandler> handler ;
|
||||||
|
|
||||||
|
RTL_LOGFILE_CONTEXT_AUTHOR(aLog, "configmgr::backend::BackendAccess", "jb99855", "configmgr: BackendAccess::updateNodeData()");
|
||||||
|
RTL_LOGFILE_CONTEXT_TRACE1(aLog, "updating component: %s", RTL_LOGFILE_OU2A(component) );
|
||||||
|
|
||||||
if (entity.getLength() == 0) {
|
if (entity.getLength() == 0) {
|
||||||
handler = mBackend->getOwnUpdateHandler(component) ;
|
handler = mBackend->getOwnUpdateHandler(component) ;
|
||||||
}
|
}
|
||||||
@@ -196,6 +210,9 @@ NodeResult BackendAccess::getDefaultData(const NodeRequest& aRequest)
|
|||||||
uno::Sequence<uno::Reference<backenduno::XLayer> > layers ;
|
uno::Sequence<uno::Reference<backenduno::XLayer> > layers ;
|
||||||
uno::Reference<backenduno::XSchema> schema ;
|
uno::Reference<backenduno::XSchema> schema ;
|
||||||
|
|
||||||
|
RTL_LOGFILE_CONTEXT_AUTHOR(aLog, "configmgr::backend::BackendAccess", "jb99855", "configmgr: BackendAccess::getDefaultData()");
|
||||||
|
RTL_LOGFILE_CONTEXT_TRACE1(aLog, "request path: %s", RTL_LOGFILE_OU2A(aRequest.getPath().toString()) );
|
||||||
|
|
||||||
getSchemaAndLayers(aRequest, schema, layers) ;
|
getSchemaAndLayers(aRequest, schema, layers) ;
|
||||||
schema->readSchema(schemaHandler) ;
|
schema->readSchema(schemaHandler) ;
|
||||||
return merge(mFactory, schemaBuilder->result(), layers,
|
return merge(mFactory, schemaBuilder->result(), layers,
|
||||||
@@ -212,6 +229,12 @@ TemplateResult BackendAccess::getTemplateData(const TemplateRequest& aRequest)
|
|||||||
SchemaBuilder *schemaBuilder = new SchemaBuilder() ;
|
SchemaBuilder *schemaBuilder = new SchemaBuilder() ;
|
||||||
uno::Reference<backenduno::XSchemaHandler> handler = schemaBuilder ;
|
uno::Reference<backenduno::XSchemaHandler> handler = schemaBuilder ;
|
||||||
|
|
||||||
|
RTL_LOGFILE_CONTEXT_AUTHOR(aLog, "configmgr::backend::BackendAccess", "jb99855", "configmgr: BackendAccess::getTemplateData()");
|
||||||
|
RTL_LOGFILE_CONTEXT_TRACE2(aLog, "requested template: %s/%s",
|
||||||
|
RTL_LOGFILE_OU2A(aRequest.getComponentName().toString()) ,
|
||||||
|
aRequest.isComponentRequest() ?
|
||||||
|
"*" : RTL_LOGFILE_OU2A(aRequest.getComponentName().toString()) );
|
||||||
|
|
||||||
schema->readTemplates(handler) ;
|
schema->readTemplates(handler) ;
|
||||||
|
|
||||||
TemplateInstance::Data aResultData;
|
TemplateInstance::Data aResultData;
|
||||||
|
@@ -2,9 +2,9 @@
|
|||||||
*
|
*
|
||||||
* $RCSfile: providerfactory.cxx,v $
|
* $RCSfile: providerfactory.cxx,v $
|
||||||
*
|
*
|
||||||
* $Revision: 1.18 $
|
* $Revision: 1.19 $
|
||||||
*
|
*
|
||||||
* last change: $Author: jb $ $Date: 2002-09-19 10:52:06 $
|
* last change: $Author: jb $ $Date: 2002-10-14 14:19:27 $
|
||||||
*
|
*
|
||||||
* The Contents of this file are made available subject to the terms of
|
* The Contents of this file are made available subject to the terms of
|
||||||
* either of the following licenses
|
* either of the following licenses
|
||||||
@@ -121,7 +121,7 @@ namespace configmgr
|
|||||||
|
|
||||||
virtual void SAL_CALL disposing(com::sun::star::lang::EventObject const& rEvt) throw()
|
virtual void SAL_CALL disposing(com::sun::star::lang::EventObject const& rEvt) throw()
|
||||||
{
|
{
|
||||||
RTL_LOGFILE_CONTEXT_AUTHOR(aLog, "Configmgr::ODisposingListener", "jb99855", "disposing()");
|
RTL_LOGFILE_CONTEXT_AUTHOR(aLog, "configmgr::ODisposingListener", "jb99855", "configmgr::ODisposingListener::disposing()");
|
||||||
m_aFactory.disposing(rEvt);
|
m_aFactory.disposing(rEvt);
|
||||||
}
|
}
|
||||||
~ODisposingListener()
|
~ODisposingListener()
|
||||||
@@ -197,7 +197,7 @@ namespace configmgr
|
|||||||
//---------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------
|
||||||
void OProviderFactory::ensureBootstrapSettings(Context const & xContext)
|
void OProviderFactory::ensureBootstrapSettings(Context const & xContext)
|
||||||
{
|
{
|
||||||
RTL_LOGFILE_CONTEXT_AUTHOR(aLog, "configmgr::OProviderFactory", "jb99855", "ensureBootstrapSettings()");
|
RTL_LOGFILE_CONTEXT_AUTHOR(aLog, "configmgr::OProviderFactory", "jb99855", "configmgr::OProviderFactory::ensureBootstrapSettings()");
|
||||||
if (!m_pPureSettings)
|
if (!m_pPureSettings)
|
||||||
m_pPureSettings = new BootstrapSettings( xContext );
|
m_pPureSettings = new BootstrapSettings( xContext );
|
||||||
}
|
}
|
||||||
@@ -239,6 +239,8 @@ namespace configmgr
|
|||||||
|
|
||||||
if (!xReturn.is())
|
if (!xReturn.is())
|
||||||
{
|
{
|
||||||
|
RTL_LOGFILE_CONTEXT_AUTHOR(aLog, "configmgr::OProviderFactory", "jb99855", "configmgr::OProviderFactory: (*m_pObjectCreator)()");
|
||||||
|
|
||||||
// create and connect the provider (may still throw exceptions)
|
// create and connect the provider (may still throw exceptions)
|
||||||
xReturn = (*m_pObjectCreator)(m_xORB, _rSettings);
|
xReturn = (*m_pObjectCreator)(m_xORB, _rSettings);
|
||||||
|
|
||||||
@@ -312,7 +314,7 @@ namespace configmgr
|
|||||||
Reference< XInterface > OProviderFactory::createProvider(Context const & xContext)
|
Reference< XInterface > OProviderFactory::createProvider(Context const & xContext)
|
||||||
{
|
{
|
||||||
MutexGuard aGuard(m_aMutex);
|
MutexGuard aGuard(m_aMutex);
|
||||||
RTL_LOGFILE_CONTEXT( aLog, "Configmgr::OProviderFactory::createProvider()" );
|
RTL_LOGFILE_CONTEXT_AUTHOR(aLog, "configmgr::OProviderFactory", "jb99855", "configmgr::OProviderFactory::createProvider()");
|
||||||
|
|
||||||
ensureDefaultProvider(xContext);
|
ensureDefaultProvider(xContext);
|
||||||
return m_xDefaultProvider;
|
return m_xDefaultProvider;
|
||||||
@@ -321,7 +323,7 @@ namespace configmgr
|
|||||||
//---------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------
|
||||||
Reference< XInterface > OProviderFactory::createProviderWithArguments(Context const & xContext, const Sequence< Any >& _rArguments)
|
Reference< XInterface > OProviderFactory::createProviderWithArguments(Context const & xContext, const Sequence< Any >& _rArguments)
|
||||||
{
|
{
|
||||||
RTL_LOGFILE_CONTEXT_AUTHOR(aLog, "configmgr::OProviderFactory", "jb99855", "createProviderWithArguments()");
|
RTL_LOGFILE_CONTEXT_AUTHOR(aLog, "configmgr::OProviderFactory", "jb99855", "configmgr::OProviderFactory::createProviderWithArguments()");
|
||||||
ConnectionSettings aSettings(_rArguments);
|
ConnectionSettings aSettings(_rArguments);
|
||||||
return createProviderWithSettings( xContext, aSettings );
|
return createProviderWithSettings( xContext, aSettings );
|
||||||
}
|
}
|
||||||
@@ -480,6 +482,9 @@ namespace configmgr
|
|||||||
/*************************************************************************
|
/*************************************************************************
|
||||||
* history:
|
* history:
|
||||||
* $Log: not supported by cvs2svn $
|
* $Log: not supported by cvs2svn $
|
||||||
|
* Revision 1.18 2002/09/19 10:52:06 jb
|
||||||
|
* #102850# Support for contexts to allow fallback initialization
|
||||||
|
*
|
||||||
* Revision 1.17 2002/07/03 15:54:38 jb
|
* Revision 1.17 2002/07/03 15:54:38 jb
|
||||||
* #98489# Added support for uno backend bootstrapping
|
* #98489# Added support for uno backend bootstrapping
|
||||||
*
|
*
|
||||||
|
@@ -2,9 +2,9 @@
|
|||||||
*
|
*
|
||||||
* $RCSfile: cachecontroller.cxx,v $
|
* $RCSfile: cachecontroller.cxx,v $
|
||||||
*
|
*
|
||||||
* $Revision: 1.4 $
|
* $Revision: 1.5 $
|
||||||
*
|
*
|
||||||
* last change: $Author: jb $ $Date: 2002-07-12 11:42:47 $
|
* last change: $Author: jb $ $Date: 2002-10-14 14:19:28 $
|
||||||
*
|
*
|
||||||
* The Contents of this file are made available subject to the terms of
|
* The Contents of this file are made available subject to the terms of
|
||||||
* either of the following licenses
|
* either of the following licenses
|
||||||
@@ -108,6 +108,7 @@
|
|||||||
#include <rtl/logfile.hxx>
|
#include <rtl/logfile.hxx>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define RTL_LOGFILE_OU2A(rtlOUString) (::rtl::OUStringToOString((rtlOUString), RTL_TEXTENCODING_ASCII_US).getStr())
|
||||||
|
|
||||||
namespace configmgr
|
namespace configmgr
|
||||||
{
|
{
|
||||||
@@ -197,7 +198,7 @@ void CacheController::dispose() CFG_UNO_THROW_RTE()
|
|||||||
{
|
{
|
||||||
CFG_TRACE_INFO("CacheController: dispose()" );
|
CFG_TRACE_INFO("CacheController: dispose()" );
|
||||||
|
|
||||||
RTL_LOGFILE_CONTEXT_AUTHOR(aLog, "configmgr::CacheController", "jb99855", "dispose(), disable lazy write cache.");
|
RTL_LOGFILE_CONTEXT_AUTHOR(aLog, "configmgr::backend::CacheController", "jb99855", "configmgr: CacheController::dispose(), disable lazy write cache.");
|
||||||
m_bDisposing = true; // we are in dispose, handling of errors must be something different.
|
m_bDisposing = true; // we are in dispose, handling of errors must be something different.
|
||||||
|
|
||||||
// writing of pending updates
|
// writing of pending updates
|
||||||
@@ -424,6 +425,9 @@ CacheLocation CacheController::loadComponent(ComponentRequest const & _aRequest)
|
|||||||
{
|
{
|
||||||
CFG_TRACE_INFO("CacheController: loading component '%s'", OUSTRING2ASCII(_aRequest.getComponentName().toString()));
|
CFG_TRACE_INFO("CacheController: loading component '%s'", OUSTRING2ASCII(_aRequest.getComponentName().toString()));
|
||||||
|
|
||||||
|
RTL_LOGFILE_CONTEXT_AUTHOR(aLog, "configmgr::backend::CacheController", "jb99855", "configmgr: CacheController::loadComponent()");
|
||||||
|
RTL_LOGFILE_CONTEXT_TRACE1(aLog, "component: %s", RTL_LOGFILE_OU2A(_aRequest.getComponentName().toString()) );
|
||||||
|
|
||||||
CacheRef aCache = this->getCacheAlways(_aRequest.getOptions());
|
CacheRef aCache = this->getCacheAlways(_aRequest.getOptions());
|
||||||
|
|
||||||
OSL_ENSURE(aCache.is(), "Could not create CacheAccess");
|
OSL_ENSURE(aCache.is(), "Could not create CacheAccess");
|
||||||
@@ -463,6 +467,8 @@ CacheLocation CacheController::loadComponent(ComponentRequest const & _aRequest)
|
|||||||
NodeResult CacheController::getComponentData(ComponentRequest const & _aRequest) CFG_UNO_THROW_ALL()
|
NodeResult CacheController::getComponentData(ComponentRequest const & _aRequest) CFG_UNO_THROW_ALL()
|
||||||
{
|
{
|
||||||
// TODO: Insert check here, if the data is in the cache already - and then clone
|
// TODO: Insert check here, if the data is in the cache already - and then clone
|
||||||
|
RTL_LOGFILE_CONTEXT_AUTHOR(aLog, "configmgr::backend::CacheController", "jb99855", "configmgr: CacheController::getComponentData()");
|
||||||
|
RTL_LOGFILE_CONTEXT_TRACE1(aLog, "component: %s", RTL_LOGFILE_OU2A(_aRequest.getComponentName().toString()) );
|
||||||
|
|
||||||
NodeResult aRet = this->loadDirectly(_aRequest);
|
NodeResult aRet = this->loadDirectly(_aRequest);
|
||||||
|
|
||||||
@@ -473,6 +479,8 @@ NodeResult CacheController::getComponentData(ComponentRequest const & _aRequest)
|
|||||||
NodeResult CacheController::getDefaultData(NodeRequest const & _aRequest) CFG_UNO_THROW_ALL( )
|
NodeResult CacheController::getDefaultData(NodeRequest const & _aRequest) CFG_UNO_THROW_ALL( )
|
||||||
{
|
{
|
||||||
// TODO: Insert check here, if the data is in the cache already - and then clone
|
// TODO: Insert check here, if the data is in the cache already - and then clone
|
||||||
|
RTL_LOGFILE_CONTEXT_AUTHOR(aLog, "configmgr::backend::CacheController", "jb99855", "configmgr: CacheController::getDefaultData()");
|
||||||
|
RTL_LOGFILE_CONTEXT_TRACE1(aLog, "path: %s", RTL_LOGFILE_OU2A(_aRequest.getPath().toString()) );
|
||||||
|
|
||||||
NodeResult aRet = this->loadDefaultsDirectly(_aRequest);
|
NodeResult aRet = this->loadDefaultsDirectly(_aRequest);
|
||||||
|
|
||||||
@@ -585,6 +593,12 @@ AbsolutePath CacheController::ensureTemplate(const Name& _rName, Name const& _rM
|
|||||||
|
|
||||||
CacheLocation CacheController::loadTemplate(TemplateRequest const & _aRequest) CFG_UNO_THROW_ALL( )
|
CacheLocation CacheController::loadTemplate(TemplateRequest const & _aRequest) CFG_UNO_THROW_ALL( )
|
||||||
{
|
{
|
||||||
|
RTL_LOGFILE_CONTEXT_AUTHOR(aLog, "configmgr::backend::CacheController", "jb99855", "configmgr: CacheController::loadTemplate()");
|
||||||
|
RTL_LOGFILE_CONTEXT_TRACE2(aLog, "requested template: %s/%s",
|
||||||
|
RTL_LOGFILE_OU2A(_aRequest.getComponentName().toString()) ,
|
||||||
|
_aRequest.isComponentRequest() ?
|
||||||
|
"*" : RTL_LOGFILE_OU2A(_aRequest.getComponentName().toString()) );
|
||||||
|
|
||||||
AbsolutePath aTemplateLocation = ensureTemplate(_aRequest.getTemplateName(), _aRequest.getComponentName());
|
AbsolutePath aTemplateLocation = ensureTemplate(_aRequest.getTemplateName(), _aRequest.getComponentName());
|
||||||
|
|
||||||
memory::Accessor aTemplatesAccessor( m_aTemplates.getDataSegment(aTemplateLocation.getModuleName()) );
|
memory::Accessor aTemplatesAccessor( m_aTemplates.getDataSegment(aTemplateLocation.getModuleName()) );
|
||||||
@@ -600,6 +614,12 @@ CacheLocation CacheController::loadTemplate(TemplateRequest const & _aRequest) C
|
|||||||
TemplateResult CacheController::getTemplateData(TemplateRequest const & _aRequest)
|
TemplateResult CacheController::getTemplateData(TemplateRequest const & _aRequest)
|
||||||
CFG_UNO_THROW_ALL()
|
CFG_UNO_THROW_ALL()
|
||||||
{
|
{
|
||||||
|
RTL_LOGFILE_CONTEXT_AUTHOR(aLog, "configmgr::backend::CacheController", "jb99855", "configmgr: CacheController::getTemplateData()");
|
||||||
|
RTL_LOGFILE_CONTEXT_TRACE2(aLog, "requested template: %s/%s",
|
||||||
|
RTL_LOGFILE_OU2A(_aRequest.getComponentName().toString()) ,
|
||||||
|
_aRequest.isComponentRequest() ?
|
||||||
|
"*" : RTL_LOGFILE_OU2A(_aRequest.getComponentName().toString()) );
|
||||||
|
|
||||||
AbsolutePath aTemplateLocation = ensureTemplate(_aRequest.getTemplateName(), _aRequest.getComponentName());
|
AbsolutePath aTemplateLocation = ensureTemplate(_aRequest.getTemplateName(), _aRequest.getComponentName());
|
||||||
|
|
||||||
memory::Segment * pTemplatesSegment = m_aTemplates.getDataSegment(aTemplateLocation.getModuleName());
|
memory::Segment * pTemplatesSegment = m_aTemplates.getDataSegment(aTemplateLocation.getModuleName());
|
||||||
@@ -622,6 +642,8 @@ TemplateResult CacheController::getTemplateData(TemplateRequest const & _aReques
|
|||||||
|
|
||||||
void CacheController::saveAndNotify(UpdateRequest const & _anUpdate) CFG_UNO_THROW_ALL( )
|
void CacheController::saveAndNotify(UpdateRequest const & _anUpdate) CFG_UNO_THROW_ALL( )
|
||||||
{
|
{
|
||||||
|
RTL_LOGFILE_CONTEXT_AUTHOR(aLog, "configmgr::backend::CacheController", "jb99855", "configmgr: CacheController::saveAndNotify()");
|
||||||
|
RTL_LOGFILE_CONTEXT_TRACE1(aLog, "location: %s", RTL_LOGFILE_OU2A(_anUpdate.getUpdateRoot().toString()) );
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// ---------- preworking on the changes ----------
|
// ---------- preworking on the changes ----------
|
||||||
|
@@ -2,9 +2,9 @@
|
|||||||
*
|
*
|
||||||
* $RCSfile: treemanager.cxx,v $
|
* $RCSfile: treemanager.cxx,v $
|
||||||
*
|
*
|
||||||
* $Revision: 1.4 $
|
* $Revision: 1.5 $
|
||||||
*
|
*
|
||||||
* last change: $Author: jb $ $Date: 2002-10-10 09:30:53 $
|
* last change: $Author: jb $ $Date: 2002-10-14 14:19:28 $
|
||||||
*
|
*
|
||||||
* The Contents of this file are made available subject to the terms of
|
* The Contents of this file are made available subject to the terms of
|
||||||
* either of the following licenses
|
* either of the following licenses
|
||||||
@@ -149,7 +149,7 @@ void TreeManager::dispose()
|
|||||||
{
|
{
|
||||||
CFG_TRACE_INFO("TreeManager: dispoing the treemanager" );
|
CFG_TRACE_INFO("TreeManager: dispoing the treemanager" );
|
||||||
|
|
||||||
RTL_LOGFILE_CONTEXT_AUTHOR(aLog, "configmgr::TreeManager", "jb99855", "dispose().");
|
RTL_LOGFILE_CONTEXT_AUTHOR(aLog, "configmgr::TreeManager", "jb99855", "configmgr: TreeManager::dispose().");
|
||||||
|
|
||||||
BackendCacheRef xBackendCache = maybeGetBackendCache();
|
BackendCacheRef xBackendCache = maybeGetBackendCache();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user