Package org.shiftone.jrat.core

Examples of org.shiftone.jrat.core.MethodKey


    int methodIndex = in.readInt();
    String className = in.readUTF();
    String methodName = in.readUTF();
    String signature = in.readUTF();
    MethodKey methodKey = new MethodKey(className, methodName, signature);
    methodKeys.put(new Integer(methodIndex), methodKey);
  }
View Full Code Here


    traceModel.setRunTime(in.readLong());
  }

  private void readDisable() throws IOException {

    MethodKey methodKey = getMethodKey(in.readInt());
    long callCount = in.readLong();
    // LOG.info("disable " + methodKey);
    blackList.add(methodKey);
  }
View Full Code Here

  /**
   * Method shutdown
   */
  public void shutdown() {

    MethodKey methodKey = null;
    timer.cancel();
    task.cancel();
    try {
      output.close();
    } catch (Exception e) {
View Full Code Here

    return attributeMBean;
  }

  public void registerMethodKeyAccumulator(MethodKeyAccumulator accumulator) {

    MethodKey methodKey = accumulator.getMethodKey();
    ConfigurableMBean mBean = getMBean(methodKey.getClassName());
    Signature signature = new Signature(methodKey.getSignature());
    String name = methodKey.getMethodName() + "(" + signature.getShortText() + ")";

    mBean.add(name + ".AverageDuration", new AverageDurationAttributeValue(accumulator));
    mBean.add(name + ".ConcurrentThreads", new ConcurrentThreadsAttributeValue(accumulator));
    mBean.add(name + ".MaxConcurrent", new MaxConcurrentThreadsAttributeValue(accumulator));
    mBean.add(name + ".MaxDuration", new MaxDurationAttributeValue(accumulator));
View Full Code Here

    }

    public boolean matches(Object object) {

      MethodKeyAccumulator accumulator = (MethodKeyAccumulator) object;
      MethodKey methodKey = accumulator.getMethodKey();
      switch (field) {
      case FIELD_CLASS:
        return invertIfNeeded(matcher.isMatch(methodKey.getClassName()));
      case FIELD_METHOD:
        return invertIfNeeded(matcher.isMatch(methodKey.getMethodName()));
      case FIELD_SIGNATURE:
        return invertIfNeeded(matcher.isMatch(methodKey.getSignature()));
      }
      return false;
    }
View Full Code Here

    long totalDuration = record.getLong(StatOutput.FIELD_TOTAL_DURATION);
    long totalOfSquares = record.getLong(StatOutput.FIELD_SUM_OF_SQUARES);
    int maxConcurThreads = (int) record.getLong(StatOutput.FIELD_MAX_CONCUR_THREADS);
    long maxDuration = toLong(record.getNumber(StatOutput.FIELD_MAX_DURATION));
    long minDuration = toLong(record.getNumber(StatOutput.FIELD_MIN_DURATION));
    MethodKey methodKey = new MethodKey(className, methodName, signature);
    return new MethodKeyAccumulator(methodKey,
        totalEnters,
        totalExits,
        totalErrors,
        totalDuration,
View Full Code Here

  }

  public Object getValueAt(int rowIndex, int columnIndex) {

    StackTreeNode node = (StackTreeNode) children.get(rowIndex);
    MethodKey methodKey = node.getMethodKey();
    if (methodKey == null) {
      return "?";
    }
    switch (columnIndex) {
    case 0:
      return methodKey.getClassName();
    case 1:
      return methodKey.getMethodName();
    case 2:
      return methodKey.getPrettySignature();
    case 3:
      return new Long(node.getTotalEnters());
    case 4:
      return new Long(node.getTotalExits());
    case 5:
View Full Code Here

  }

  public Object getValueAt(int rowIndex, int columnIndex) {

    StackTreeNode node = (StackTreeNode) stack.get(rowIndex);
    MethodKey methodKey = node.getMethodKey();
    if (methodKey == null) {
      return "?";
    }
    switch (columnIndex) {
    case 0:
      return methodKey.getClassName();
    case 1:
      return methodKey.getMethodName();
    case 2:
      return methodKey.getPrettySignature();
    case 3:
      return new Long(node.getTotalEnters());
    case 4:
      return new Long(node.getTotalExits());
    case 5:
View Full Code Here

TOP

Related Classes of org.shiftone.jrat.core.MethodKey

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.