com.evolveum.midpoint.util.logging.Trace.trace()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(8.4k)|赞(0)|评价(0)|浏览(132)

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

Trace.trace介绍

暂无

代码示例

代码示例来源:origin: Evolveum/midpoint

@Override
public void registerTransport(String name, Transport transport) {
  LOGGER.trace("Registering notification transport {} under name {}", transport, name);
  transports.put(name, transport);
}

代码示例来源:origin: Evolveum/midpoint

private void recordMarker(String level, String subsystemName) {
  LOGGER.trace("Found marker ({}): {}", level, subsystemName);
  String key = constructKey(level, subsystemName);
  loggedMarkers.add(key);
}

代码示例来源:origin: Evolveum/midpoint

private void validateStringPolicy(String clearValue, List<LocalizableMessage> messages, OperationResult result) throws SchemaException,
    ObjectNotFoundException, ExpressionEvaluationException, CommunicationException, ConfigurationException, SecurityViolationException {
  if (clearValue == null) {
    return; // should be checked elsewhere
  }
  if (valuePolicy == null) {
    LOGGER.trace("Skipping validating {} value. Value policy not specified.", shortDesc);
    return;
  }
  valuePolicyProcessor.validateValue(clearValue, valuePolicy, originResolver, messages,
      "user " + shortDesc + " value policy validation", task, result);
}

代码示例来源:origin: Evolveum/midpoint

@PostConstruct
public void init() {
  taskManager.registerTaskListener(this);
  LOGGER.trace("Task listener registered.");
}

代码示例来源:origin: Evolveum/midpoint

private <F extends FocusType> void traceObjectSynchronization(SynchronizationContext<F> syncCtx) {
  if (LOGGER.isTraceEnabled()) {
    LOGGER.trace("SYNCHRONIZATION determined policy: {}", syncCtx);
  }
}

代码示例来源:origin: Evolveum/midpoint

public static void setRequestee(Task task, PrismObject object) {
  LOGGER.trace("setting requestee in {} to {}", task, object);
  if (task != null) {
    task.setRequesteeTransient(object);
  }
}

代码示例来源:origin: Evolveum/midpoint

protected void logNotApplicable(Event event, String reason) {
  if (LOGGER.isTraceEnabled()) {
    LOGGER.trace(
      "{} is not applicable for event {}, continuing in the handler chain; reason: {}",
      this.getClass().getSimpleName(), event.shortDump(), reason);
  }
}

代码示例来源:origin: Evolveum/midpoint

private void recompute(PrismObject<FocusType> focalObject, ModelExecuteOptions options, Task task, OperationResult result) throws SchemaException,
    ObjectNotFoundException, ExpressionEvaluationException, CommunicationException, ObjectAlreadyExistsException,
    ConfigurationException, PolicyViolationException, SecurityViolationException, PreconditionViolationException {
  LOGGER.trace("Recomputing object {}", focalObject);
  LensContext<FocusType> syncContext = contextFactory.createRecomputeContext(focalObject, options, task, result);
  if (LOGGER.isTraceEnabled()) {
    LOGGER.trace("Recomputing object {}: context:\n{}", focalObject, syncContext.debugDump());
  }
  clockwork.run(syncContext, task, result);
  LOGGER.trace("Recomputation of object {}: {}", focalObject, result.getStatus());
}

代码示例来源:origin: Evolveum/midpoint

private ModelExecuteOptions getOptions(Task coordinatorTask) throws SchemaException {
  ModelExecuteOptions modelExecuteOptions = ModelImplUtils.getModelExecuteOptions(coordinatorTask);
  if (modelExecuteOptions == null) {
    // Make reconcile the default (for compatibility). If there are no options
    // then assume reconcile.
    modelExecuteOptions =  ModelExecuteOptions.createReconcile();
  }
  LOGGER.trace("ModelExecuteOptions: {}", modelExecuteOptions);
  return modelExecuteOptions;
}

代码示例来源:origin: Evolveum/midpoint

private void trace(String msg) {
  if (expressionType != null && expressionType.isTrace() == Boolean.TRUE) {
    LOGGER.info(msg);
  } else {
    LOGGER.trace(msg);
  }
}

代码示例来源:origin: Evolveum/midpoint

public int rememberBaseline() throws NumberFormatException, IOException, InterruptedException {
  baselineTotalFds = count();
  baselineLsofOutput = lsofOutput;
  baselineTypeMap = typeMap;
  baselineMiscMap = miscMap;
  baselineNodeMap = nodeMap;
  if (LOGGER.isTraceEnabled()) {
    LOGGER.trace("Baseline LSOF output:\n{}", baselineLsofOutput);
  }
  return baselineTotalFds;
}

代码示例来源:origin: Evolveum/midpoint

protected void validateFilter() throws QueryException {
    if (filter.getFilter() == null) {
      LOGGER.trace("UnaryLogicalFilter filter must have child filter defined in it.");
      throw new QueryException("UnaryLogicalFilter '" + filter.debugDump()
          + "' must have child filter defined in it.");
    }
  }
}

代码示例来源:origin: Evolveum/midpoint

private <F extends ObjectType> void addConflictingContexts(LensContext<F> context) {
  List<LensProjectionContext> conflictingContexts = context.getConflictingProjectionContexts();
  if (conflictingContexts != null && !conflictingContexts.isEmpty()){
    for (LensProjectionContext conflictingContext : conflictingContexts){
      LOGGER.trace("Adding conflicting projection context {}", conflictingContext.getHumanReadableName());
      context.addProjectionContext(conflictingContext);
    }
    context.clearConflictingProjectionContexts();
  }
}

代码示例来源:origin: Evolveum/midpoint

/**
 * Remove the intermediate results of values processing such as secondary deltas. 
 */
private <AH extends AssignmentHolderType> void cleanupContext(LensFocusContext<AH> focusContext) throws SchemaException, ConfigurationException {
  // We must NOT clean up activation computation. This has happened before, it will not happen again
  // and it does not depend on iteration
  LOGGER.trace("Cleaning up focus context");
  focusContext.setProjectionWaveSecondaryDelta(null);
  focusContext.clearIntermediateResults();
  focusContext.recompute();
}

代码示例来源:origin: Evolveum/midpoint

public void addDeadShadowDeltas(PrismObject<ShadowType> repoShadow, AsynchronousOperationResult asyncResult, List<ItemDelta> shadowModifications) {
  LOGGER.trace("Marking shadow {} as dead", repoShadow);
  if (ShadowUtil.isExists(repoShadow.asObjectable())) {
    shadowModifications.add(createShadowPropertyReplaceDelta(repoShadow, ShadowType.F_EXISTS, Boolean.FALSE));
  }
  if (!ShadowUtil.isDead(repoShadow.asObjectable())) {
    shadowModifications.add(createShadowPropertyReplaceDelta(repoShadow, ShadowType.F_DEAD, Boolean.TRUE));
  }
}

代码示例来源:origin: Evolveum/midpoint

private Serializable generate(L2Container container) {
  if (container.getId() != null && container.getId() != 0) {
    if (LOGGER.isTraceEnabled()) {
      LOGGER.trace("Created id='{}' for '{}'.", container.getId(), toString(container));
    }
    return container.getId();
  }
  throw new RuntimeException("Unknown id, should not happen: " + container);
}

代码示例来源:origin: Evolveum/midpoint

@Override
public void initSystem(Task initTask, OperationResult initResult) throws Exception {
  LOGGER.trace("initSystem");
  super.initSystem(initTask, initResult);
  
  initDummyResourcePirate(RESOURCE_DUMMY_LIMITED_NAME,
      RESOURCE_DUMMY_LIMITED_FILE, RESOURCE_DUMMY_LIMITED_OID, initTask, initResult);
}

代码示例来源:origin: Evolveum/midpoint

private <F extends AssignmentHolderType> void executeStateActions(LensContext<F> context, String targetLifecycleState,
    List<LifecycleStateActionType> actions, String actionTypeDesc, XMLGregorianCalendar now, Task task, OperationResult result) throws SchemaException {
  for (LifecycleStateActionType action: actions) {
    LOGGER.trace("Execute {} action {} for state {} of {}", actionTypeDesc, action.getName(), targetLifecycleState, context.getFocusContext().getObjectNew());
    executeDataReduction(context, action.getDataReduction(), now, task, result);
  }
}

代码示例来源:origin: Evolveum/midpoint

public void evaluateConstructions(ObjectDeltaObject<AH> focusOdo, PrismObject<SystemConfigurationType> systemConfiguration, Task task, OperationResult result) throws SchemaException, ExpressionEvaluationException, ObjectNotFoundException, SecurityViolationException, ConfigurationException, CommunicationException {
  for (Construction<AH> construction :constructionTriple.getAllValues()) {
    construction.setFocusOdo(focusOdo);
    construction.setSystemConfiguration(systemConfiguration);
    construction.setWasValid(wasValid);
    LOGGER.trace("Evaluating construction '{}' in {}", construction, construction.getSource());
    construction.evaluate(task, result);
  }
}

代码示例来源:origin: Evolveum/midpoint

private <T extends ObjectType, F extends FocusType> boolean alreadyExecuted(ObjectDelta<T> objectDelta,
    LensElementContext<T> objectContext) {
  if (objectContext == null) {
    return false;
  }
  if (LOGGER.isTraceEnabled()) {
    LOGGER.trace("Checking for already executed delta:\n{}\nIn deltas:\n{}", objectDelta.debugDump(),
        DebugUtil.debugDump(objectContext.getExecutedDeltas()));
  }
  return ObjectDeltaOperation.containsDelta(objectContext.getExecutedDeltas(), objectDelta);
}

相关文章