org.apache.synapse.MessageContext.setTracingState()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(2.9k)|赞(0)|评价(0)|浏览(82)

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

MessageContext.setTracingState介绍

[英]This is used to set the value of tracing enable variable
[中]用于设置跟踪启用变量的值

代码示例

代码示例来源:origin: org.apache.synapse/synapse-core

/**
 * This method is used to save previous tracing state and set next the tracing
 * state for a child mediator
 *
 * @param synCtx current message
 */
public void setEffectiveTraceState(MessageContext synCtx) {
  // if I have been explicitly asked to enable or disable tracing, use it and pass it on
  // else, do nothing -> i.e. let the parents state flow
  if (traceState != SynapseConstants.TRACING_UNSET) {
    synCtx.setTracingState(traceState);
  }
}

代码示例来源:origin: wso2/wso2-synapse

/**
 * {@inheritDoc}
 */
public void setTracingState(int tracingState) {
  mc.setTracingState(tracingState);
}

代码示例来源:origin: wso2/wso2-synapse

/**
 * {@inheritDoc}
 */
public void setTracingState(int tracingState) {
  mc.setTracingState(tracingState);
}

代码示例来源:origin: org.apache.synapse/synapse-extensions

public void setTracingState(int tracingState) {
  mc.setTracingState(tracingState);
}

代码示例来源:origin: wso2/wso2-synapse

/**
 * This method is used to save previous tracing state and set next the tracing
 * state for a child mediator
 *
 * @param synCtx current message
 */
public void setEffectiveTraceState(MessageContext synCtx) {
  // if I have been explicitly asked to enable or disable tracing, use it and pass it on
  // else, do nothing -> i.e. let the parents state flow
  if (traceState != SynapseConstants.TRACING_UNSET) {
    synCtx.setTracingState(traceState);
  }
}

代码示例来源:origin: wso2/wso2-synapse

synCtx.setTracingState(myEffectiveTraceState);
    if (!mediator.mediate(synCtx)) {
      mediator.reportCloseStatistics(synCtx, statisticReportingIndex);
    synCtx.setTracingState(myEffectiveTraceState);
    if (!mediator.mediate(synCtx)) {
      returnVal = false;
synCtx.setTracingState(parentsEffectiveTraceState);

代码示例来源:origin: org.apache.synapse/synapse-core

synCtx.setTracingState(myEffectiveTraceState);
    if (!mediator.mediate(synCtx)) {
      return false;
  handleException("Runtime error occurred while mediating the message", e, synCtx);
} finally {
  synCtx.setTracingState(parentsEffectiveTraceState);

代码示例来源:origin: org.apache.synapse/synapse-core

newCtx.setWSAAction(synCtx.getWSAAction());
newCtx.setResponse(synCtx.isResponse());
newCtx.setTracingState(synCtx.getTracingState());

代码示例来源:origin: wso2/wso2-synapse

synCtx.setTracingState(synMsg.getTracingState());
synCtx.setMessageFlowTracingState(synMsg.getMessageFlowTracingState());
Iterator<String> properties = synMsg.getProperties().keySet().iterator();

代码示例来源:origin: org.apache.synapse/synapse-core

synCtx.setTracingState(proxy.getTraceState());

代码示例来源:origin: org.apache.synapse/synapse-core

synCtx.setTracingState(parentsEffectiveTraceState);

代码示例来源:origin: wso2/wso2-synapse

synCtx.setTracingState(parentsEffectiveTraceState);

相关文章

微信公众号

最新文章

更多