Examples of ellapsed()


Examples of pt.opensoft.util.Timer.ellapsed()

                }

                _socket.write(response);

      } finally {
        if (response != null) _logger.info(timer.ellapsed(), "[SENT] {" + response+"}");
        _socket.close();
      }
    } catch (Exception e) {
      _logger.error("N�o foi poss�vel processar o pedido" + e.getMessage(), e);
    }
View Full Code Here

Examples of pt.opensoft.util.Timer.ellapsed()

                totalTimer.stop();
                if (threshold > 0 && !tooLongAlreadyDumped && totalTimer.ellapsed() > threshold){
                    logger.push("too long");
                    tooLongAlreadyDumped = true;
                }
                    logger.error(receiveTimer.ellapsed(), "[RCVD] {" + response + "} (len=" + response.length() + ")");
               
      }
     
      throw new HostUnavailableSystemException("SISTEMA CENTRAL INDISPONIVEL! ERRO COMUNICACOES! TIMEOUT!");
View Full Code Here

Examples of pt.opensoft.util.Timer.ellapsed()

                totalTimer.stop();
                if (threshold > 0 && !tooLongAlreadyDumped && totalTimer.ellapsed() > threshold){
                    logger.push("too long");
                    tooLongAlreadyDumped = true;
                }
        logger.error(receiveTimer.ellapsed(), "[RCVD] {" + response + "}");
      }
   
    throw new HostUnavailableSystemException("SISTEMA CENTRAL INDISPONIVEL! ERRO COMUNICACOES!");
    }
       
View Full Code Here

Examples of pt.opensoft.util.Timer.ellapsed()

       
        if (threshold > 0 && !tooLongAlreadyDumped && totalTimer.ellapsed() > threshold){
            logger.push("too long");
            tooLongAlreadyDumped = true;
        }
        logger.finer(receiveTimer.ellapsed(), "[RCVD] {" + response + "} (len=" + response.length() + ")");
 
    return response;
  }

  protected String transformResponse(String response) {
View Full Code Here

Examples of pt.opensoft.util.Timer.ellapsed()

      results = ((CallableStatement) _stmt).executeQuery();
    } catch (SQLException e) {
      ex = e;
      throw e;
    } finally {
      boolean tooLong = (_dbc.getThreshold() > 0 && timer.ellapsed() > _dbc.getThreshold());
      if (tooLong) logger.push("too long");
      if (ex != null) {
        logger.error(timer.ellapsed(), getSQLString() + " -> " + ex.getMessage());
      } else if (tooLong) {
        logger.warning(timer.ellapsed(), getSQLString());
View Full Code Here

Examples of pt.opensoft.util.Timer.ellapsed()

      throw e;
    } finally {
      boolean tooLong = (_dbc.getThreshold() > 0 && timer.ellapsed() > _dbc.getThreshold());
      if (tooLong) logger.push("too long");
      if (ex != null) {
        logger.error(timer.ellapsed(), getSQLString() + " -> " + ex.getMessage());
      } else if (tooLong) {
        logger.warning(timer.ellapsed(), getSQLString());
      } else {
        logger.debug(timer.ellapsed(), getSQLString());
      }
View Full Code Here

Examples of pt.opensoft.util.Timer.ellapsed()

      boolean tooLong = (_dbc.getThreshold() > 0 && timer.ellapsed() > _dbc.getThreshold());
      if (tooLong) logger.push("too long");
      if (ex != null) {
        logger.error(timer.ellapsed(), getSQLString() + " -> " + ex.getMessage());
      } else if (tooLong) {
        logger.warning(timer.ellapsed(), getSQLString());
      } else {
        logger.debug(timer.ellapsed(), getSQLString());
      }
    }
    return results;
View Full Code Here

Examples of pt.opensoft.util.Timer.ellapsed()

      if (ex != null) {
        logger.error(timer.ellapsed(), getSQLString() + " -> " + ex.getMessage());
      } else if (tooLong) {
        logger.warning(timer.ellapsed(), getSQLString());
      } else {
        logger.debug(timer.ellapsed(), getSQLString());
      }
    }
    return results;
  }
View Full Code Here

Examples of pt.opensoft.util.Timer.ellapsed()

      ex = e;
      throw e;
    } finally {
            _dbc.setDbChanged(true);
            logger.push(count + " ROWS");
      boolean tooLong = (_dbc.getThreshold() > 0 && timer.ellapsed() > _dbc.getThreshold());
      if (ex != null) {
        logger.error(timer.ellapsed(), getSQLString() + " -> " + ex.getMessage());
      } else if (tooLong) {
        logger.warning(timer.ellapsed(), getSQLString());
      } else {
View Full Code Here

Examples of pt.opensoft.util.Timer.ellapsed()

    } finally {
            _dbc.setDbChanged(true);
            logger.push(count + " ROWS");
      boolean tooLong = (_dbc.getThreshold() > 0 && timer.ellapsed() > _dbc.getThreshold());
      if (ex != null) {
        logger.error(timer.ellapsed(), getSQLString() + " -> " + ex.getMessage());
      } else if (tooLong) {
        logger.warning(timer.ellapsed(), getSQLString());
      } else {
        logger.debug(timer.ellapsed(), getSQLString());
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.