congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
RequestLog.isRunning
Code IndexAdd Tabnine to your IDE (free)

How to use
isRunning
method
in
com.yahoo.bard.webservice.logging.RequestLog

Best Java code snippets using com.yahoo.bard.webservice.logging.RequestLog.isRunning (Showing top 5 results out of 315)

origin: yahoo/fili

/**
 * Check if a stopwatch is currently running.
 *
 * @param caller  the caller to name this stopwatch with its class's simple name
 *
 * @return whether this stopwatch is currently running
 */
public static boolean isRunning(Object caller) {
  return isRunning(caller.getClass().getSimpleName());
}
origin: yahoo/fili

/**
 * Sends the response back to the user.
 *
 * @param response  The response to send to the user
 * @param asyncResponse  The channel over which to send the response
 */
private void send(Response response, AsyncResponse asyncResponse) {
  if (RequestLog.isRunning(RESPONSE_WORKFLOW_TIMER)) {
    RequestLog.stopTiming(RESPONSE_WORKFLOW_TIMER);
  }
  asyncResponse.resume(response);
}
origin: yahoo/fili

  /**
   * Publish final response to user.
   *
   * @param response  The Response to send back to the user
   */
  private void publishResponse(Response response) {
    if (RequestLog.isRunning(RESPONSE_WORKFLOW_TIMER)) {
      RequestLog.stopTiming(RESPONSE_WORKFLOW_TIMER);
    }
    asyncResponse.resume(response);
  }
}
origin: yahoo/fili

  @Override
  public void invoke(int statusCode, String reason, String responseBody) {
    if (RequestLog.isRunning(REQUEST_WORKFLOW_TIMER)) {
      RequestLog.stopTiming(REQUEST_WORKFLOW_TIMER);
    }
    next.getErrorCallback(druidQuery).invoke(statusCode, reason, responseBody);
  }
};
origin: yahoo/fili

  @Override
  public void invoke(Throwable error) {
    if (RequestLog.isRunning(REQUEST_WORKFLOW_TIMER)) {
      RequestLog.stopTiming(REQUEST_WORKFLOW_TIMER);
    }
    next.getFailureCallback(druidQuery).invoke(error);
  }
};
com.yahoo.bard.webservice.loggingRequestLogisRunning

Javadoc

Check if a stopwatch is currently running.

Popular methods of RequestLog

  • dump
  • restore
  • copy
    Exports a snapshot of the request log of the current thread without resetting the request log for th
  • log
  • startTiming
  • stopTiming
  • <init>
    Copy constructor is also private.
  • accumulate
    Accumulates timings and threads to current thread's request log context. It fills in the contents fo
  • addIdPrefix
    Prepend an id prefix to generated druid query id.
  • aggregateDurations
    Adds the durations in milliseconds of all the recorded timed phases to a map.
  • clear
    Resets the contents of a request log at the calling thread.
  • durations
    Adds the durations in milliseconds of all the recorded timed phases to a map.
  • clear,
  • durations,
  • export,
  • getId,
  • getLoginfoOrder,
  • init,
  • record,
  • registerTime,
  • retrieve

Popular in Java

  • Reading from database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • setContentView (Activity)
  • getExternalFilesDir (Context)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top plugins for Android Studio
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