org.vertx.java.core.logging.Logger.warn()方法的使用及代码示例

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

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

Logger.warn介绍

暂无

代码示例

代码示例来源:origin: org.vert-x/vertx-platform

  1. public synchronized void close() {
  2. vertx.cancelTimer(timerID);
  3. Set<Deployment> deps = new HashSet<>();
  4. for (Map.Entry<Path, Set<Deployment>> entry: watchedDeployments.entrySet()) {
  5. deps.addAll(entry.getValue());
  6. }
  7. toUndeploy.addAll(deps);
  8. processUndeployments();
  9. try {
  10. watchService.close();
  11. } catch (IOException ex) {
  12. log.warn("Error while shutting down watch service: " + ex.getMessage(), ex);
  13. }
  14. closed = true;
  15. }

代码示例来源:origin: org.vert-x/vertx-core

  1. /**
  2. * Create the singleton Hazelcast instance if necessary
  3. * @return
  4. */
  5. private synchronized HazelcastInstance initHazelcast() {
  6. if (instance == null) {
  7. Config cfg = getConfig(null);
  8. if (cfg == null) {
  9. log.warn("Cannot find cluster.xml on classpath. Using default cluster configuration");
  10. }
  11. // default instance
  12. instance = Hazelcast.init(cfg);
  13. // Properly shutdown all instances
  14. Runtime.getRuntime().addShutdownHook(new Thread() {
  15. @Override
  16. public void run() {
  17. Hazelcast.shutdownAll();
  18. }
  19. });
  20. }
  21. return instance;
  22. }

代码示例来源:origin: org.vert-x/vertx-platform

  1. log.warn("Overflow event on watched directory");
  2. continue;

代码示例来源:origin: org.vert-x/vertx-platform

  1. is = getClass().getClassLoader().getResourceAsStream("langs.properties");
  2. if (is == null) {
  3. log.warn("No language mappings found!");
  4. } else {
  5. Properties props = new Properties();

代码示例来源:origin: com.englishtown/vertx-mod-jersey

  1. logger.warn("Invalid URI: " + uri + ". Attempting to parse query string.", e);
  2. QueryStringDecoder decoder = new QueryStringDecoder(uri);

代码示例来源:origin: org.vert-x/vertx-platform

  1. String prevMod = includedJars.get(jarName);
  2. if (prevMod != null) {
  3. log.warn("Warning! jar file " + jarName + " is contained in module " +
  4. prevMod + " and also in module " + modName +
  5. " which are both included (perhaps indirectly) by module " +

代码示例来源:origin: io.vertx/vertx-platform

  1. log.warn(d);

代码示例来源:origin: io.vertx/vertx-platform

  1. private void unzipModule(final ModuleIdentifier modID, final ModuleZipInfo zipInfo, boolean deleteZip) {
  2. // We synchronize to prevent a race whereby it tries to unzip the same module at the
  3. // same time (e.g. deployModule for the same module name has been called in parallel)
  4. String modName = modID.toString();
  5. synchronized (modName.intern()) {
  6. checkCreateModDirs();
  7. File fdest = new File(modRoot, modName);
  8. File sdest = new File(systemModRoot, modName);
  9. if (fdest.exists() || sdest.exists()) {
  10. // This can happen if the same module is requested to be installed
  11. // at around the same time
  12. // It's ok if this happens
  13. log.warn("Module " + modID + " is already installed");
  14. return;
  15. }
  16. // Unzip into temp dir first
  17. File tdest = unzipIntoTmpDir(zipInfo, deleteZip);
  18. // Check if it's a system module
  19. JsonObject conf = loadModuleConfig(createModJSONFile(tdest), modID);
  20. ModuleFields fields = new ModuleFields(conf);
  21. boolean system = fields.isSystem();
  22. // Now copy it to the proper directory
  23. String moveFrom = tdest.getAbsolutePath();
  24. safeMove(moveFrom, system ? sdest.getAbsolutePath() : fdest.getAbsolutePath());
  25. log.info("Module " + modID +" successfully installed");
  26. }
  27. }

代码示例来源:origin: org.vert-x/vertx-lang-java

  1. log.warn(d);

代码示例来源:origin: io.vertx/vertx-platform

  1. ModuleIdentifier modID = new ModuleIdentifier(moduleName);
  2. if (included.contains(modID.toString())) {
  3. log.warn("Module " + modID + " is included more than once in chain of includes");
  4. } else {
  5. included.add(modID.toString());

相关文章