org.teiid.logging.LogManager.putMdc()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(2.8k)|赞(0)|评价(0)|浏览(128)

本文整理了Java中org.teiid.logging.LogManager.putMdc()方法的一些代码示例,展示了LogManager.putMdc()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。LogManager.putMdc()方法的具体详情如下:
包路径:org.teiid.logging.LogManager
类名称:LogManager
方法名:putMdc

LogManager.putMdc介绍

暂无

代码示例

代码示例来源: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

hasThread = true;
timer.start();
LogManager.putMdc(REQUEST_KEY, requestID.toString());
try {
  while (!isDoneProcessing()) {

代码示例来源:origin: teiid/teiid

LogManager.putMdc(REQUEST_KEY, requestID.toString());
try {
  while (!isDoneProcessing()) {

代码示例来源:origin: org.teiid/teiid-engine

LogManager.putMdc(REQUEST_KEY, requestID.toString());
try {
  while (!isDoneProcessing()) {

相关文章