Tabnine Logo
Trace.getRootFrame
Code IndexAdd Tabnine to your IDE (free)

How to use
getRootFrame
method
in
com.springsource.insight.intercept.trace.Trace

Best Java code snippets using com.springsource.insight.intercept.trace.Trace.getRootFrame (Showing top 7 results out of 315)

origin: com.springsource.insight.plugins/insight-plugin-servlet

@Override
public Frame getScoringFrame(Trace trace) {
  Frame    root=trace.getRootFrame();
  if (validateScoringFrame(root) == null) {
    return null;
  } else {
    return root;
  }
}
origin: com.springsource.insight.plugins/insight-plugin-method-endpoint

  public List<TraceError> locateErrors(Trace trace) {
    Frame root = trace.getRootFrame();
    if (root == null) {
      return EMPTY_LIST;
    }
    
    Operation rootOp = root.getOperation();
    String exception = rootOp.get(EXCEPTION, String.class);
    if (exception != null) {
      int chars = Math.min(exception.length(), MAX_ERROR_LENGTH);
      return singletonList(new TraceError(exception.substring(0, chars)));
    }
    return EMPTY_LIST;
  }
}
origin: com.springsource.insight/insight-collection

  public List<TraceError> locateErrors(Trace trace) {
    Frame root = trace.getRootFrame();
    if (root == null) {
      return Collections.emptyList();
    }
    
    Operation rootOp = root.getOperation();
    String exception = rootOp.get(OperationFields.EXCEPTION, String.class);
    if (!StringUtil.isEmpty(exception)) {
      int chars = Math.min(exception.length(), MAX_ERROR_LENGTH);
      return Collections.singletonList(new TraceError(exception.substring(0, chars)));
    }

    return Collections.emptyList();
  }
}
origin: com.springsource.insight/insight-common

public boolean filters(TraceInterface traceAccess) {
  Trace trace = traceAccess.asTrace();
  Frame rootFrame = trace.getRootFrame();
  Operation op = rootFrame.getOperation();
  OperationMap details = op.get("request", OperationMap.class);
  if (details == null) {
    return false;
  }
  String path = details.get(OperationFields.URI, String.class);
  if (StringUtil.isEmpty(path)) {
    return false;
  }
  if (pathMatchesPatterns(path)) {
    if (log.isDebugEnabled()) {
      log.debug("Frame " + op.getLabel() + " with path " + path + " filtered");
    }
    return true;
  }
  return false;
}
origin: com.springsource.insight/insight-common

public TraceSource locateTraceSource(TraceInterface traceAccess) {
  if (!active || traceAccess == null || ListUtil.size(analyzers) <= 0) {
    return null;
  }
  
  TraceSource source = null;
  if (traceAccess instanceof TraceSourceCarrier) {
    TraceSourceCarrier carrier = (TraceSourceCarrier) traceAccess;
    
    if (!carrier.isTraceSourceAnalysisRequired()) {
      source = carrier.getTraceSource();
    }
  }
  
  if (source == null) {
    Frame root = traceAccess.asTrace().getRootFrame();
    for (TraceSourceAnalyzer analyzer : analyzers) {
      source = analyzer.getTraceSource(root);
      
      if (source != null) {
        break;
      }
    }
  }
  
  return TraceSource.isNullSource(source) ? null : source;
}

origin: com.springsource.insight.plugins/insight-plugin-method-endpoint

  public EndPointAnalysis locateEndPoint(Trace trace) {
    Frame root = trace.getRootFrame();
    if (root == null) {
      return null;
    }
    
    Operation rootOp = root.getOperation();
    if (!rootOp.getType().equals(TYPE)) {
      return null;
    }
    
    EndPointName name = EndPointName.valueOf(rootOp.getSourceCodeLocation().getClassName() + "#" + rootOp.get("methodSignature"));
    String label = rootOp.getLabel();
    String exampleRequest = "";
    OperationList args = rootOp.get("arguments", OperationList.class);
    if (args.size() == 1) {
      exampleRequest = args.get(0, String.class); 
    }
    int score = 0;
    return new EndPointAnalysis(root.getRange(), name, label, exampleRequest, score);
  }
}
origin: com.springsource.insight/insight-common

public List<ColorCommand> generateCommands(TraceAnalysis analysis) {
  Trace          trace=analysis.getTrace();
  Frame        root=trace.getRootFrame();
  Operation     op=root.getOperation();
  List<Color> inColors = ColorManager.valueOf(op);
com.springsource.insight.intercept.traceTracegetRootFrame

Popular methods of Trace

  • getRange
  • getAllFramesOfType
  • getAppName
  • getId
  • getServer
  • getDate
  • getFirstFrameOfType
  • getTraceSource
  • addExternalResourceKeys
  • getEndpoint
  • getLabel
  • getTimestamp
  • getLabel,
  • getTimestamp,
  • isSensitive,
  • isTraceSourceAnalysisRequired,
  • newInstance,
  • setAppName,
  • setEndpoint,
  • setServer,
  • setTraceSource

Popular in Java

  • Start an intent from android
  • scheduleAtFixedRate (ScheduledExecutorService)
  • notifyDataSetChanged (ArrayAdapter)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now