本文整理汇总了C++中PEG_METHOD_ENTER函数的典型用法代码示例。如果您正苦于以下问题:C++ PEG_METHOD_ENTER函数的具体用法?C++ PEG_METHOD_ENTER怎么用?C++ PEG_METHOD_ENTER使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了PEG_METHOD_ENTER函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: PEG_METHOD_ENTER
void CQLParser::parse(
const Buffer& text,
CQLSelectStatement& statement)
{
PEG_METHOD_ENTER(TRC_CQL,"CQLParser::parse");
if (text.size() == 0 || text[text.size() - 1] != '\0')
{
PEG_METHOD_EXIT();
throw MissingNullTerminator();
}
parse(text.getData(), statement);
PEG_METHOD_EXIT();
}
示例2: PEG_METHOD_ENTER
String AuthenticationManager::getHttpAuthResponseHeader()
#endif
{
PEG_METHOD_ENTER(TRC_AUTHENTICATION,
"AuthenticationManager::getHttpAuthResponseHeader()");
#ifdef PEGASUS_NEGOTIATE_AUTHENTICATION
String respHeader = _httpAuthHandler->getAuthResponseHeader(
String::EMPTY, String::EMPTY, authInfo);
#else
String respHeader = _httpAuthHandler->getAuthResponseHeader();
#endif
PEG_METHOD_EXIT();
return respHeader;
}
示例3: PEG_METHOD_ENTER
Boolean SecureLocalAuthenticator::validateUser (const String& userName)
{
PEG_METHOD_ENTER(TRC_AUTHENTICATION,
"SecureLocalAuthenticator::validateUser()");
Boolean authenticated = false;
if (System::isSystemUser(userName.getCString()))
{
authenticated = true;
}
PEG_METHOD_EXIT();
return (authenticated);
}
示例4: PEG_METHOD_ENTER
//
// Verify whether the specified CIM user is valid
//
Boolean UserManager::verifyCIMUser(const String& userName)
{
PEG_METHOD_ENTER(TRC_USER_MANAGER, "UserManager::verifyCIMUser");
#ifndef PEGASUS_NO_PASSWORDFILE
if (_userFileHandler->verifyCIMUser(userName))
{
PEG_METHOD_EXIT();
return true;
}
#endif
PEG_METHOD_EXIT();
return false;
}
示例5: _outputQueue
PEGASUS_NAMESPACE_BEGIN
WSMANExportResponseDecoder::WSMANExportResponseDecoder(
MessageQueue* outputQueue,
MessageQueue* encoderQueue,
ClientAuthenticator* authenticator)
:MessageQueue(PEGASUS_QUEUENAME_EXPORTRESPDECODER),
_outputQueue(outputQueue),
_encoderQueue(encoderQueue),
_authenticator(authenticator)
{
PEG_METHOD_ENTER(TRC_EXPORT_CLIENT,
"WSMANExportResponseDecoder::WSMANExportResponseDecoder()");
PEG_METHOD_EXIT();
}
示例6: PEG_METHOD_ENTER
Sint32 SSLSocket::read(void* ptr, Uint32 size)
{
PEG_METHOD_ENTER(TRC_SSL, "SSLSocket::read()");
Sint32 rc;
PEG_TRACE_CSTRING(TRC_SSL, Tracer::LEVEL4, "---> SSL: (r) ");
PEG_TRACE_CSTRING(TRC_SSL, Tracer::LEVEL4,
SSL_state_string_long(static_cast<SSL*>(_SSLConnection)));
rc = SSL_read(static_cast<SSL*>(_SSLConnection), (char *)ptr, size);
_sslReadErrno = errno;
PEG_METHOD_EXIT();
return rc;
}
示例7: PEG_METHOD_ENTER
void ProviderAgent::_writeResponse(Message* message)
{
PEG_METHOD_ENTER(TRC_PROVIDERAGENT, "ProviderAgent::_writeResponse");
CIMMessage* response = dynamic_cast<CIMMessage*>(message);
PEGASUS_ASSERT(response != 0);
//
// Write the response message to the pipe
//
try
{
// Use Mutex to prevent concurrent writes to the same pipe
AutoMutex pipeLock(_pipeToServerMutex);
AnonymousPipe::Status writeStatus =
_pipeToServer->writeMessage(response);
if (writeStatus != AnonymousPipe::STATUS_SUCCESS)
{
PEG_TRACE_CSTRING(TRC_PROVIDERAGENT, Tracer::LEVEL1,
"Error writing response to pipe.");
Logger::put_l(Logger::ERROR_LOG, System::CIMSERVER, Logger::WARNING,
MessageLoaderParms(
"ProviderManager.ProviderAgent.ProviderAgent."
"CIMSERVER_COMMUNICATION_FAILED",
"cimprovagt \"$0\" communication with CIM Server failed. "
"Exiting.",
_agentId));
_terminating = true;
}
}
catch (...)
{
PEG_TRACE_CSTRING(TRC_PROVIDERAGENT, Tracer::LEVEL1,
"Caught exception while writing response.");
Logger::put_l(Logger::ERROR_LOG, System::CIMSERVER, Logger::WARNING,
MessageLoaderParms(
"ProviderManager.ProviderAgent.ProviderAgent."
"CIMSERVER_COMMUNICATION_FAILED",
"cimprovagt \"$0\" communication with CIM Server failed. "
"Exiting.",
_agentId));
_terminating = true;
}
PEG_METHOD_EXIT();
}
示例8: PEG_METHOD_ENTER
void MessageQueue::enqueue(Message* message)
{
PEG_METHOD_ENTER(TRC_MESSAGEQUEUESERVICE,"MessageQueue::enqueue()");
PEGASUS_ASSERT(message != 0);
PEG_TRACE((TRC_MESSAGEQUEUESERVICE, Tracer::LEVEL3,
"Queue name: [%s], Message: [%s]",
getQueueName(),
MessageTypeToString(message->getType())));
_messageList.insert_back(message);
handleEnqueue();
PEG_METHOD_EXIT();
}
示例9: PEG_METHOD_ENTER
void CIMOperationRequestAuthorizer::sendResponse(
Uint32 queueId,
Array<char>& message)
{
PEG_METHOD_ENTER(TRC_SERVER, "CIMOperationRequestAuthorizer::sendResponse");
MessageQueue* queue = MessageQueue::lookup(queueId);
if (queue)
{
AutoPtr<HTTPMessage> httpMessage(new HTTPMessage(message));
queue->enqueue(httpMessage.release());
}
PEG_METHOD_EXIT();
}
示例10: Base
CIMOperationRequestAuthorizer::CIMOperationRequestAuthorizer(
MessageQueueService* outputQueue)
:
Base(PEGASUS_QUEUENAME_OPREQAUTHORIZER),
_outputQueue(outputQueue),
_serverTerminating(false)
{
PEG_METHOD_ENTER(TRC_SERVER, "CIMOperationRequestAuthorizer::"
"CIMOperationRequestAuthorizer");
#ifdef PEGASUS_ENABLE_USERGROUP_AUTHORIZATION
_authorizedUserGroups = _getAuthorizedUserGroups();
#endif
PEG_METHOD_EXIT();
}
示例11: PEG_METHOD_ENTER
BasicProviderManagerRouter::BasicProviderManagerRouter(
PEGASUS_INDICATION_CALLBACK_T indicationCallback,
PEGASUS_RESPONSE_CHUNK_CALLBACK_T responseChunkCallback,
ProviderManager* (*createDefaultProviderManagerCallback)())
{
PEG_METHOD_ENTER(TRC_PROVIDERMANAGER,
"BasicProviderManagerRouter::BasicProviderManagerRouter");
_indicationCallback = indicationCallback;
_responseChunkCallback = responseChunkCallback;
_subscriptionInitComplete = false;
_createDefaultProviderManagerCallback =
createDefaultProviderManagerCallback;
PEG_METHOD_EXIT();
}
示例12: PEG_METHOD_ENTER
PEGASUS_NAMESPACE_BEGIN
BasicAuthenticationHandler::BasicAuthenticationHandler()
{
PEG_METHOD_ENTER(TRC_AUTHENTICATION,
"BasicAuthenticationHandler::BasicAuthenticationHandler()");
#ifdef PEGASUS_PAM_AUTHENTICATION
_basicAuthenticator = (BasicAuthenticator*) new PAMBasicAuthenticator();
#else
_basicAuthenticator = (BasicAuthenticator*) new SecureBasicAuthenticator();
#endif
PEG_METHOD_EXIT();
}
示例13: addIfNotExists
static void addIfNotExists(TableauRow_WQL &tr, const term_el_WQL& el)
{
PEG_METHOD_ENTER(
TRC_CMPIPROVIDERINTERFACE,
"CMPI_Wql2Dnf:addIfNotExists()");
for( int i=0,m=tr.size(); i<m; i++ )
{
if( tr[i]==el )
{
PEG_METHOD_EXIT();
return;
}
}
tr.append(el);
PEG_METHOD_EXIT();
}
示例14: PEG_METHOD_ENTER
void ProviderIndicationCountTable::removeEntry(
const CIMInstance& providerInstance)
{
PEG_METHOD_ENTER(TRC_INDICATION_SERVICE,
"ProviderIndicationCountTable::removeEntry");
String providerModuleName;
String providerName;
getProviderKeys(providerInstance, providerModuleName, providerName);
String providerKey = _generateKey(providerModuleName, providerName);
WriteLock lock(_tableLock);
_table.remove(providerKey);
PEG_METHOD_EXIT();
}
示例15: _connectionAuthenticated
AuthenticationInfoRep::AuthenticationInfoRep()
: _connectionAuthenticated(false),
_wasRemotePrivilegedUserAccessChecked(false),
_authHandle(),
_isExpiredPassword(false)
#ifdef PEGASUS_ENABLE_SESSION_COOKIES
,_cookie()
#endif
{
PEG_METHOD_ENTER(
TRC_AUTHENTICATION, "AuthenticationInfoRep::AuthenticationInfoRep");
#ifdef PEGASUS_NEGOTIATE_AUTHENTICATION
_session.reset(new NegotiateServerSession());
#endif
PEG_METHOD_EXIT();
}