Package org.javasimon

Examples of org.javasimon.Stopwatch


    split.stop();
    return baos.toByteArray();   
  }

  public Serializable deserialize(byte[] source, @SuppressWarnings("rawtypes") Class clazz) throws IOException, ClassNotFoundException {
        Stopwatch stopWatch = SimonManager.getStopwatch("serializer.javaDeserialize");
    Split split = stopWatch.start();
    ByteArrayInputStream bis = new ByteArrayInputStream(source);
    ObjectInputStream ois = new ObjectInputStream(bis);
    Serializable obj = (Serializable) ois.readObject();
    ois.close();
    split.stop();
View Full Code Here


   *
   * @return database rows and columns
   * @throws SQLException if real calls fails
   */
  public final ResultSet executeQuery() throws SQLException {
    Stopwatch s = prepare();
    try {
      return stmt.executeQuery();
    } finally {
      finish(s);
    }
View Full Code Here

   *
   * @return count of updated rows
   * @throws SQLException if real calls fails
   */
  public final int executeUpdate() throws SQLException {
    Stopwatch s = prepare();
    try {
      return stmt.executeUpdate();
    } finally {
      finish(s);
    }
View Full Code Here

   * @return <code>true</code> if the first result is a <code>ResultSet</code> object;
   * <code>false</code> if it is an update count or there are no results
   * @throws SQLException if real calls fails
   */
  public final boolean execute() throws SQLException {
    Stopwatch s = prepare();
    try {
      return stmt.execute();
    } finally {
      finish(s);
    }
View Full Code Here

    private Node n;
   
    @Override
    protected void simpleInitGame() {
        Stopwatch stopky = SimonManager.getStopwatch("testovaci-stopky");
        stopky.start();
        loadJME();
        stopky.stop();
        System.out.println(stopky);
    }
View Full Code Here

   * @param sql sql command
   * @return database rows and columns
   * @throws SQLException if real calls fails
   */
  public final ResultSet executeQuery(String sql) throws SQLException {
    Stopwatch s = prepare(sql);
    try {
      return stmt.executeQuery(sql);
    } finally {
      finish(s);
    }
View Full Code Here

   * @param sql sql command
   * @return count of updated rows
   * @throws SQLException if real calls fails
   */
  public final int executeUpdate(String sql) throws SQLException {
    Stopwatch s = prepare(sql);
    try {
      return stmt.executeUpdate(sql);
    } finally {
      finish(s);
    }
View Full Code Here

   * @param autoGeneratedKeys autoGeneratedKeys flag
   * @return count of updated rows
   * @throws SQLException if real calls fails
   */
  public final int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException {
    Stopwatch s = prepare(sql);
    try {
      return stmt.executeUpdate(sql, autoGeneratedKeys);
    } finally {
      finish(s);
    }
View Full Code Here

   * returned from the inserted row
   * @return count of updated rows
   * @throws SQLException if real calls fails
   */
  public final int executeUpdate(String sql, int[] columnIndexes) throws SQLException {
    Stopwatch s = prepare(sql);
    try {
      return stmt.executeUpdate(sql, columnIndexes);
    } finally {
      finish(s);
    }
View Full Code Here

   * returned from the inserted row
   * @return count of updated rows
   * @throws SQLException if real calls fails
   */
  public final int executeUpdate(String sql, String[] columnNames) throws SQLException {
    Stopwatch s = prepare(sql);
    try {
      return stmt.executeUpdate(sql, columnNames);
    } finally {
      finish(s);
    }
View Full Code Here

TOP

Related Classes of org.javasimon.Stopwatch

Copyright © 2018 www.massapicom. 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.