Package com.dianping.cat.message

Examples of com.dianping.cat.message.Transaction.complete()


      t.setStatus(Transaction.SUCCESS);
    } catch (Exception e) {
      Cat.logError(e);
      t.setStatus(e);
    } finally {
      t.complete();
    }
  }

  @Override
  public void enableLogging(Logger logger) {
View Full Code Here


              fdos.close();
            }
          } catch (IOException e) {
            Cat.logError(e);
          }
          t.complete();
        }

        try {
          Thread.sleep(100);
        } catch (InterruptedException e) {
View Full Code Here

    } catch (RuntimeException e) {
      t.setStatus(e);
      cat.logError(e);
      throw e;
    } finally {
      t.complete();
    }
  }

  @Override
  public void storeMessage(MessageTree tree, MessageId id) throws IOException {
View Full Code Here

            t2.setStatus(Transaction.SUCCESS);
          } catch (Exception e) {
            t2.setStatus(e);
            Cat.logError(e);
          } finally {
            t2.complete();
          }
        }
        t.setStatus(Transaction.SUCCESS);

        long duration = System.currentTimeMillis() - current;
View Full Code Here

    MessageProducer cat = Cat.getProducer();
    Transaction t = cat.newTransaction("TestType", "TestName");

    t.addData("data here");
    t.setStatus("TestStatus");
    t.complete();

    Thread.sleep(100);
    Assert.assertEquals(true, Cat.isInitialized());
    Cat.destroy();
  }
View Full Code Here

    MessageProducer cat = Cat.getProducer();
    Transaction t = cat.newTransaction("TestType", "TestName");

    t.addData("data here");
    t.setStatus("TestStatus");
    t.complete();

    Thread.sleep(100);

    Assert.assertEquals(true, Cat.isInitialized());
    Cat.destroy();
View Full Code Here

    MessageProducer cat = Cat.getProducer();
    Transaction t = cat.newTransaction("TestType", "TestName");

    t.addData("data here");
    t.setStatus("TestStatus");
    t.complete();

    Thread.sleep(100);

    Assert.assertEquals(true, Cat.isInitialized());
    Cat.destroy();
View Full Code Here

    Cat.initialize("192.168.7.70","192.168.7.71");
    Transaction t = Cat.newTransaction("TestType", "TestName");

    t.addData("data here");
    t.setStatus("TestStatus");
    t.complete();

    Thread.sleep(10000);
  }
}
View Full Code Here

        t.setStatus(Transaction.SUCCESS);
      } catch (Exception e) {
        Cat.logError(e);
        t.setStatus(e);
      } finally {
        t.complete();
      }
    }
  }

  @Override
View Full Code Here

      t.setStatus(Transaction.SUCCESS);
    } catch (Exception e) {
      t.setStatus(e);
    } finally {
      t.complete();
    }
  }

  private Set<String> buildAllUsers(Map<String, AppDataComparisonResult> results) {
    Set<String> allUsers = new HashSet<String>();
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.