org.apache.juli.logging.Log.fatal()方法的使用及代码示例

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

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

Log.fatal介绍

[英]Log a message with fatal log level.
[中]

代码示例

代码示例来源:origin: apache/geode

@Override
public void initialize() {
 // Bootstrap the servers
 bootstrapServers();
 // Create or retrieve the region
 try {
  createOrRetrieveRegion();
 } catch (Exception ex) {
  sessionManager.getLogger().fatal("Unable to create or retrieve region", ex);
  throw new IllegalStateException(ex);
 }
 // Set the session region directly as the operating region since there is no difference
 // between the local cache region and the session region.
 this.operatingRegion = this.sessionRegion;
 // Create or retrieve the statistics
 createStatistics();
}

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

@Override
  public void fatal(final Object message, final Throwable t) {
    delegate.fatal(message, t);
  }
}

代码示例来源:origin: org.apache.openejb/tomee-juli

@Override
  public void fatal(final Object message, final Throwable t) {
    delegate.fatal(message, t);
  }
}

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

@Override
public void fatal(final Object message) {
  delegate.fatal(message);
}

代码示例来源:origin: org.apache.openejb/tomee-juli

@Override
public void fatal(final Object message) {
  delegate.fatal(message);
}

代码示例来源:origin: apache/meecrowave

@Override
  public void fatal(final Object message, final Throwable t) {
    delegate.fatal(message, t);
  }
}

代码示例来源:origin: apache/meecrowave

@Override
public void fatal(final Object message) {
  delegate.fatal(message);
}

代码示例来源:origin: org.apache.coyote.springsource/com.springsource.org.apache.coyote.springsource

protected void checkParachute() {
  boolean para = reclaimParachute(false);
  if (!para && (System.currentTimeMillis()-lastParachuteCheck)>10000) {
    try {
      log.fatal(oomParachuteMsg);
    }catch (Throwable t) {
      System.err.println(oomParachuteMsg);
    }
    lastParachuteCheck = System.currentTimeMillis();
  }
}

代码示例来源:origin: codefollower/Tomcat-Research

protected void checkParachute() {
  boolean para = reclaimParachute(false);
  if (!para && (System.currentTimeMillis()-lastParachuteCheck)>10000) {
    try {
      log.fatal(oomParachuteMsg);
    }catch (Throwable t) {
      ExceptionUtils.handleThrowable(t);
      System.err.println(oomParachuteMsg);
    }
    lastParachuteCheck = System.currentTimeMillis();
  }
}

代码示例来源:origin: org.apache.coyote/com.springsource.org.apache.coyote

protected void checkParachute() {
  boolean para = reclaimParachute(false);
  if (!para && (System.currentTimeMillis()-lastParachuteCheck)>10000) {
    try {
      log.fatal(oomParachuteMsg);
    }catch (Throwable t) {
      ExceptionUtils.handleThrowable(t);
      System.err.println(oomParachuteMsg);
    }
    lastParachuteCheck = System.currentTimeMillis();
  }
}

代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina

protected void checkParachute() {
  boolean para = reclaimParachute(false);
  if (!para && (System.currentTimeMillis()-lastParachuteCheck)>10000) {
    try {
      log.fatal(oomParachuteMsg);
    }catch (Throwable t) {
      ExceptionUtils.handleThrowable(t);
      System.err.println(oomParachuteMsg);
    }
    lastParachuteCheck = System.currentTimeMillis();
  }
}

代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7

protected void checkParachute() {
  boolean para = reclaimParachute(false);
  if (!para && (System.currentTimeMillis()-lastParachuteCheck)>10000) {
    try {
      log.fatal(oomParachuteMsg);
    }catch (Throwable t) {
      ExceptionUtils.handleThrowable(t);
      System.err.println(oomParachuteMsg);
    }
    lastParachuteCheck = System.currentTimeMillis();
  }
}

代码示例来源:origin: org.apache.geronimo.ext.tomcat/tribes

@Override
public void start() throws IOException {
  super.start();
  try {
    setPool(new RxTaskPool(getMaxThreads(),getMinThreads(),this));
  } catch (Exception x) {
    log.fatal("ThreadPool can initilzed. Listener not started", x);
    if ( x instanceof IOException ) throw (IOException)x;
    else throw new IOException(x.getMessage());
  }
  try {
    getBind();
    bind();
    Thread t = new Thread(this, "BioReceiver");
    t.setDaemon(true);
    t.start();
  } catch (Exception x) {
    log.fatal("Unable to start cluster receiver", x);
    if ( x instanceof IOException ) throw (IOException)x;
    else throw new IOException(x.getMessage());
  }
}

代码示例来源:origin: codefollower/Tomcat-Research

@Override
public void start() throws IOException {
  super.start();
  try {
    setPool(new RxTaskPool(getMaxThreads(),getMinThreads(),this));
  } catch (Exception x) {
    log.fatal("ThreadPool can initilzed. Listener not started", x);
    if ( x instanceof IOException ) throw (IOException)x;
    else throw new IOException(x.getMessage());
  }
  try {
    getBind();
    bind();
    Thread t = new Thread(this, "BioReceiver");
    t.setDaemon(true);
    t.start();
  } catch (Exception x) {
    log.fatal("Unable to start cluster receiver", x);
    if ( x instanceof IOException ) throw (IOException)x;
    else throw new IOException(x.getMessage());
  }
}

代码示例来源:origin: org.apache.catalina.springsource/com.springsource.org.apache.catalina.tribes.springsource

/**
 * start cluster receiver
 * @throws Exception
 * @see org.apache.catalina.tribes.ClusterReceiver#start()
 */
public void start() throws IOException {
  super.start();
  try {
    setPool(new RxTaskPool(getMaxThreads(),getMinThreads(),this));
  } catch (Exception x) {
    log.fatal("ThreadPool can initilzed. Listener not started", x);
    if ( x instanceof IOException ) throw (IOException)x;
    else throw new IOException(x.getMessage());
  }
  try {
    getBind();
    bind();
    Thread t = new Thread(this, "NioReceiver");
    t.setDaemon(true);
    t.start();
  } catch (Exception x) {
    log.fatal("Unable to start cluster receiver", x);
    if ( x instanceof IOException ) throw (IOException)x;
    else throw new IOException(x.getMessage());
  }
}

代码示例来源:origin: org.apache.catalina.springsource/com.springsource.org.apache.catalina.tribes.springsource

/**
 *
 * @throws IOException
 * @todo Implement this org.apache.catalina.tribes.ChannelReceiver method
 */
public void start() throws IOException {
  super.start();
  try {
    setPool(new RxTaskPool(getMaxThreads(),getMinThreads(),this));
  } catch (Exception x) {
    log.fatal("ThreadPool can initilzed. Listener not started", x);
    if ( x instanceof IOException ) throw (IOException)x;
    else throw new IOException(x.getMessage());
  }
  try {
    getBind();
    bind();
    Thread t = new Thread(this, "BioReceiver");
    t.setDaemon(true);
    t.start();
  } catch (Exception x) {
    log.fatal("Unable to start cluster receiver", x);
    if ( x instanceof IOException ) throw (IOException)x;
    else throw new IOException(x.getMessage());
  }
}

代码示例来源:origin: org.apache.geode/geode-modules

@Override
public void initialize() {
 // Bootstrap the servers
 bootstrapServers();
 // Create or retrieve the region
 try {
  createOrRetrieveRegion();
 } catch (Exception ex) {
  sessionManager.getLogger().fatal("Unable to create or retrieve region", ex);
  throw new IllegalStateException(ex);
 }
 // Set the session region directly as the operating region since there is no difference
 // between the local cache region and the session region.
 this.operatingRegion = this.sessionRegion;
 // Create or retrieve the statistics
 createStatistics();
}

代码示例来源:origin: org.apache.tomcat/tomcat-tribes

@Override
public void start() throws IOException {
  super.start();
  try {
    setPool(new RxTaskPool(getMaxThreads(),getMinThreads(),this));
  } catch (Exception x) {
    log.fatal(sm.getString("bioReceiver.threadpool.fail"), x);
    if ( x instanceof IOException ) throw (IOException)x;
    else throw new IOException(x.getMessage());
  }
  try {
    getBind();
    bind();
    String channelName = "";
    if (getChannel().getName() != null) channelName = "[" + getChannel().getName() + "]";
    Thread t = new Thread(this, "BioReceiver" + channelName);
    t.setDaemon(true);
    t.start();
  } catch (Exception x) {
    log.fatal(sm.getString("bioReceiver.start.fail"), x);
    if ( x instanceof IOException ) throw (IOException)x;
    else throw new IOException(x.getMessage());
  }
}

代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7

private PageContext internalGetPageContext(Servlet servlet, ServletRequest request,
    ServletResponse response, String errorPageURL, boolean needsSession,
    int bufferSize, boolean autoflush) {
  try {
    PageContext pc;
    if (USE_POOL) {
      PageContextPool pool = localPool.get();
      if (pool == null) {
        pool = new PageContextPool();
        localPool.set(pool);
      }
      pc = pool.get();
      if (pc == null) {
        pc = new PageContextImpl();
      }
    } else {
      pc = new PageContextImpl();
    }
    pc.initialize(servlet, request, response, errorPageURL, 
        needsSession, bufferSize, autoflush);
    return pc;
  } catch (Throwable ex) {
    ExceptionUtils.handleThrowable(ex);
    log.fatal("Exception initializing page context", ex);
    return null;
  }
}

代码示例来源:origin: chexagon/redis-session-manager

@Override
protected synchronized void startInternal() throws LifecycleException {
  super.startInternal();
  try {
    this._client = buildClient();
  } catch (Throwable t) {
    log.fatal("Unable to load serializer", t);
    throw new LifecycleException(t);
  }
  this.requestValve = new RedisSessionRequestValve(this, ignorePattern);
  getContext().getParent().getPipeline().addValve(requestValve);
  this.sessionExpirationTime = getContext().getSessionTimeout();
  if (this.sessionExpirationTime < 0) {
    log.warn("Ignoring negative session expiration time");
    this.sessionExpirationTime = 0;
  }
  log.info("Will expire sessions after " + sessionExpirationTime + " minutes");
  setState(LifecycleState.STARTING);
}

相关文章