congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Trace.getFirstFrameOfType
Code IndexAdd Tabnine to your IDE (free)

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

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

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

@Override
public Collection<Frame> locateFrames(Trace trace) {
  Frame frame = trace.getFirstFrameOfType(getOperationType());
  if (frame == null) {
    return Collections.emptyList();
  } else {
    return Collections.singletonList(frame);
  }
}
origin: com.springsource.insight.plugins/insight-plugin-run-exec

static Frame resolveEndPointFrame (Trace trace) {
  Frame       execFrame=trace.getFirstFrameOfType(RunExecDefinitions.EXEC_OP),
        runFrame=trace.getFirstFrameOfType(RunExecDefinitions.RUN_OP);
  Operation   opExec=(execFrame == null) ? null : execFrame.getOperation(),
        opRun=(runFrame == null) ? null : runFrame.getOperation();
  if (opExec == null) {
    if (opRun == null) {
      return null;
    } else {
      return runFrame;
    }
  } else if (opRun == null) {
    return execFrame;
  }
  // at this stage we have 2 frames - prefer the one higher up the trace
  int execDepth = FrameUtil.getDepth(execFrame), runDepth = FrameUtil.getDepth(runFrame);
  if (execDepth < runDepth) {
    return execFrame;
  } else {
    return runFrame;
  }
}
com.springsource.insight.intercept.traceTracegetFirstFrameOfType

Popular methods of Trace

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

Popular in Java

  • Finding current android device location
  • getApplicationContext (Context)
  • setScale (BigDecimal)
  • onCreateOptionsMenu (Activity)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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