本文整理了Java中org.teiid.logging.LogManager.removeMdc()
方法的一些代码示例,展示了LogManager.removeMdc()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。LogManager.removeMdc()
方法的具体详情如下:
包路径:org.teiid.logging.LogManager
类名称:LogManager
方法名:removeMdc
暂无
代码示例来源:origin: org.jboss.teiid/teiid-engine
@Override
public void run() {
LogManager.logDetail(LogConstants.CTX_DQP, "Running task for parent thread", parentName); //$NON-NLS-1$
LogManager.putMdc(RequestWorkItem.REQUEST_KEY, requestId);
try {
super.run();
} finally {
LogManager.removeMdc(RequestWorkItem.REQUEST_KEY);
}
}
代码示例来源:origin: org.teiid/teiid-engine
@Override
public void run() {
LogManager.logDetail(LogConstants.CTX_DQP, "Running task for parent thread", parentName); //$NON-NLS-1$
LogManager.putMdc(RequestWorkItem.REQUEST_KEY, requestId);
try {
super.run();
} finally {
LogManager.removeMdc(RequestWorkItem.REQUEST_KEY);
}
}
代码示例来源:origin: teiid/teiid
@Override
public void run() {
LogManager.logDetail(LogConstants.CTX_DQP, "Running task for parent thread", parentName); //$NON-NLS-1$
LogManager.putMdc(RequestWorkItem.REQUEST_KEY, requestId);
try {
super.run();
} finally {
LogManager.removeMdc(RequestWorkItem.REQUEST_KEY);
}
}
代码示例来源:origin: org.teiid/teiid-engine
public static void setWorkContext(DQPWorkContext context) {
LogManager.removeMdc(TEIID_SESSION);
LogManager.removeMdc(TEIID_VDB);
if (context == null) {
CONTEXTS.remove();
} else {
if (context.session != null) {
LogManager.putMdc(TEIID_SESSION, context.session.getSessionId());
if (context.session.getVdb() != null) {
LogManager.putMdc(TEIID_VDB, context.session.getVdb().getFullName());
}
}
CONTEXTS.set(context);
}
}
代码示例来源:origin: teiid/teiid
public static void setWorkContext(DQPWorkContext context) {
LogManager.removeMdc(TEIID_SESSION);
LogManager.removeMdc(TEIID_VDB);
if (context == null) {
CONTEXTS.remove();
} else {
if (context.session != null) {
LogManager.putMdc(TEIID_SESSION, context.session.getSessionId());
if (context.session.getVdb() != null) {
LogManager.putMdc(TEIID_VDB, context.session.getVdb().getFullName());
}
}
CONTEXTS.set(context);
}
}
代码示例来源:origin: org.jboss.teiid/teiid-engine
public static void setWorkContext(DQPWorkContext context) {
LogManager.removeMdc(TEIID_SESSION);
LogManager.removeMdc(TEIID_VDB);
if (context == null) {
CONTEXTS.remove();
} else {
if (context.session != null) {
LogManager.putMdc(TEIID_SESSION, context.session.getSessionId());
if (context.session.getVdb() != null) {
LogManager.putMdc(TEIID_VDB, context.session.getVdb().getFullName());
}
}
CONTEXTS.set(context);
}
}
代码示例来源:origin: org.jboss.teiid/teiid-engine
LogManager.removeMdc(REQUEST_KEY);
hasThread = false;
代码示例来源:origin: teiid/teiid
LogManager.removeMdc(REQUEST_KEY);
hasThread = false;
if (scope != null) {
代码示例来源:origin: org.teiid/teiid-engine
LogManager.removeMdc(REQUEST_KEY);
hasThread = false;
if (scope != null) {
内容来源于网络,如有侵权,请联系作者删除!