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

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

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

Trace.info介绍

暂无

代码示例

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

protected <O extends ObjectType> void logAllow(String action) {
  String msg = LOG_PREFIX_ALLOW+"Allowed "+action;
  System.out.println(msg);
  LOGGER.info(msg);
}

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

protected void logAttempt(String action, Class<?> type, String desc) {
  String msg = LOG_PREFIX_ATTEMPT+"Trying "+action+" of "+type.getSimpleName()+":"+desc;
  System.out.println(msg);
  LOGGER.info(msg);
}

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

@PreDestroy
public void shutdown() {
  if (processEngine != null) {
    LOGGER.info("Shutting Activiti ProcessEngine down.");
    processEngine.close();
  }
}

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

private void updateConfigurationIntegerProperty(Configuration configuration, Properties properties, String propertyName) {
  String value = properties != null ? properties.getProperty(propertyName) : System.getProperty(propertyName);
  if (value == null || !value.matches("[1-9]{1}[0-9]*")) {
    return;
  }
  int val = Integer.parseInt(value);
  LOGGER.info("Overriding loaded configuration with value read from system properties: {}={}", propertyName, val);
  configuration.setProperty(propertyName, val);
}

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

private void updateConfigurationStringProperty(Configuration configuration, Properties properties, String propertyName, String defaultValue) {
    String value = properties != null ? properties.getProperty(propertyName) : System.getProperty(propertyName);
    if (value == null) {
      value = defaultValue;
    }

    if (value == null) {
      return;
    }
    LOGGER.info("Overriding loaded configuration with value read from system properties: {}={}", propertyName, value);
    configuration.setProperty(propertyName, value);
  }
}

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

@Override
public void applyFullTextSearchConfiguration(FullTextSearchConfigurationType fullTextSearch) {
  LOGGER.info("Applying full text search configuration ({} entries)",
      fullTextSearch != null ? fullTextSearch.getIndexed().size() : 0);
  fullTextSearchConfiguration = fullTextSearch;
}

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

public void start() throws Exception {
  LOGGER.info("Starting Derby embedded network server "+listenHostname+":"+listentPort+", database "+dbName);
  listenAddress = InetAddress.getByName(listenHostname);
  jdbcUrl = "jdbc:derby:"+dbName+";create=true;user="+username+";password="+password;
  server = new NetworkServerControl(listenAddress,listentPort);
  System.setProperty("derby.stream.error.file", "target/derby.log");
  server.start(null);
}

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

public void initialize(SqlRepositoryFactory sqlRepositoryFactory) {
  outstandingOperations.clear();
  finishedOperations.clear();
  this.sqlRepositoryFactory = sqlRepositoryFactory;
  this.level = sqlRepositoryFactory.getSqlConfiguration().getPerformanceStatisticsLevel();
  if (level >= LEVEL_NONE) {
    LOGGER.info("SQL Performance Monitor initialized (level = " + level + ").");
  }
}

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

@AfterClass
public static void stopDb() throws Exception {
  derbyController.stop();
  LOGGER.info("------------------------------------------------------------------------------");
  LOGGER.info("STOP:  ProvisioningServiceImplDBTest");
  LOGGER.info("------------------------------------------------------------------------------");
}

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

@Override
public synchronized void init(Configuration configuration) throws RepositoryServiceFactoryException {
  String configFile = System.getProperty(PROPERTY_CONFIG);
  if (StringUtils.isNotEmpty(configFile)) {
    LOGGER.info("Overriding loaded configuration with values from '{}'", new Object[]{configFile});
    updateConfigurationFromFile(configuration, configFile);
  }
  updateConfigurationFromProperties(configuration, null);
  super.init(configuration);
}

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

@Override
public void run(IHookCallBack callBack, ITestResult testResult) {
  long time = System.currentTimeMillis();
  LOGGER.info("###>>> run start");
  super.run(callBack, testResult);
  LOGGER.info("###>>> run end ({}ms)", new Object[]{(System.currentTimeMillis() - time)});
}

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

@AfterMethod
@Override
protected void springTestContextAfterTestMethod(Method testMethod) throws Exception {
  long time = System.currentTimeMillis();
  LOGGER.info("###>>> springTestContextAfterTestMethod start");
  super.springTestContextAfterTestMethod(testMethod);
  LOGGER.info("###>>> springTestContextAfterTestMethod end ({}ms)", new Object[]{(System.currentTimeMillis() - time)});
}

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

public void resetOverride() {
  LOGGER.info("Clock override reset");
  this.override = null;
  this.overrideOffset = null;
  if (LOGGER.isDebugEnabled()) {
    LOGGER.debug("Clock current time: {}", currentTimeXMLGregorianCalendar());
  }
}

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

@BeforeMethod
public void beforeMethod(Method method) throws Exception {
  System.out.println(">>>>>>>>>>>>>>>>>>>>>>>> START TEST" + getClass().getName() + "." + method.getName() + "<<<<<<<<<<<<<<<<<<<<<<<<");
  LOGGER.info(">>>>>>>>>>>>>>>>>>>>>>>> START {}.{} <<<<<<<<<<<<<<<<<<<<<<<<", new Object[]{getClass().getName(), method.getName()});
  if (!isSystemInitialized()) {
    initSystem();
    setSystemInitialized();
  }
}

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

void pauseScheduler(OperationResult result) {
  LOGGER.info("Putting Quartz scheduler into standby mode");
  try {
    getQuartzScheduler().standby();
    result.recordSuccess();
  } catch (SchedulerException e1) {
    LoggingUtils.logUnexpectedException(LOGGER, "Couldn't put local Quartz scheduler into standby mode", e1);
    result.recordFatalError("Couldn't put local Quartz scheduler into standby mode", e1);
  }
}

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

@Override
public boolean deactivateServiceThreads(long timeToWait, OperationResult parentResult) {
  OperationResult result = parentResult.createSubresult(DOT_INTERFACE + "deactivateServiceThreads");
  result.addParam("timeToWait", timeToWait);
  LOGGER.info("Deactivating Task Manager service threads (waiting time = " + timeToWait + ")");
  clusterManager.stopClusterManagerThread(timeToWait, result);
  boolean retval = executionManager.stopSchedulerAndTasksLocally(timeToWait, result);
  result.computeStatus();
  return retval;
}

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

private void logAllLevels(Trace logger, String subsystemName) {
  String message = MARKER+" "+subsystemName;
  String previousSubsystem = MidpointInterceptor.swapSubsystemMark(subsystemName);
  logger.trace(message);
  logger.debug(message);
  logger.info(message);
  logger.warn(message);
  logger.error(message);
  MidpointInterceptor.swapSubsystemMark(previousSubsystem);
}

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

private void moveWorker(Task worker, WorkerKey shouldBe, OperationResult result)
    throws ObjectAlreadyExistsException, ObjectNotFoundException, SchemaException {
  List<ItemDelta<?, ?>> itemDeltas = prismContext.deltaFor(TaskType.class)
      .item(TaskType.F_EXECUTION_CONSTRAINTS, TaskExecutionConstraintsType.F_GROUP).replace(shouldBe.group)
      .item(TaskType.F_NAME).replace(PolyString.fromOrig(shouldBe.name))
      .asItemDeltas();
  LOGGER.info("Moving worker task {} to {} as {}", worker, shouldBe.group, shouldBe.name);
  taskManager.modifyTask(worker.getOid(), itemDeltas, result);
}

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

private boolean pwdValidHelper(String password, ValuePolicyType pp) throws SchemaException, ObjectNotFoundException, ExpressionEvaluationException, CommunicationException, ConfigurationException, SecurityViolationException {
    Task task = createTask("pwdValidHelper");
    OperationResult result = task.getResult();
    valuePolicyProcessor.validateValue(password, pp, null, "pwdValidHelper", task, result);
    result.computeStatus();
    String msg = "-> Policy "+pp.getName()+", password '"+password+"': "+result.getStatus();
    System.out.println(msg);
    LOGGER.info(msg);
    LOGGER.trace(result.debugDump());
    return (result.isSuccess());
  }
}

相关文章