Codota Logo
AnalyticsHandler.postLogs
Code IndexAdd Codota to your IDE (free)

How to use
postLogs
method
in
org.restlet.ext.platform.internal.agent.module.AnalyticsHandler

Best Java code snippets using org.restlet.ext.platform.internal.agent.module.AnalyticsHandler.postLogs (Showing top 4 results out of 315)

  • Common ways to obtain AnalyticsHandler
private void myMethod () {
AnalyticsHandler a =
  • Codota IconRestletCloudConfig restletCloudConfig;ModulesSettings modulesSettings;new AnalyticsHandler(restletCloudConfig, modulesSettings)
  • Smart code suggestions by Codota
}
origin: org.restlet.gae/org.restlet.ext.platform

/**
 * Creates a new Thread that asynchronously posts call logs to Restlet Cloud
 */
public void flushLogs() {
  if (callLogs.isEmpty()) {
    return;
  }
  CallLogs logsToPost;
  synchronized (callLogs) {
    if (callLogs.isEmpty()) {
      return;
    }
    logsToPost = new CallLogs(callLogs.size());
    logsToPost.addAll(callLogs);
    callLogs.clear();
  }
  postLogs(logsToPost);
}
origin: org.restlet.jse/org.restlet.ext.platform

/**
 * Creates a new Thread that asynchronously posts call logs to Restlet Cloud
 */
public void flushLogs() {
  if (callLogs.isEmpty()) {
    return;
  }
  CallLogs logsToPost;
  synchronized (callLogs) {
    if (callLogs.isEmpty()) {
      return;
    }
    logsToPost = new CallLogs(callLogs.size());
    logsToPost.addAll(callLogs);
    callLogs.clear();
  }
  postLogs(logsToPost);
}
origin: org.restlet.jee/org.restlet.ext.platform

/**
 * Creates a new Thread that asynchronously posts call logs to Restlet Cloud
 */
public void flushLogs() {
  if (callLogs.isEmpty()) {
    return;
  }
  CallLogs logsToPost;
  synchronized (callLogs) {
    if (callLogs.isEmpty()) {
      return;
    }
    logsToPost = new CallLogs(callLogs.size());
    logsToPost.addAll(callLogs);
    callLogs.clear();
  }
  postLogs(logsToPost);
}
origin: org.restlet.osgi/org.restlet.ext.platform

/**
 * Creates a new Thread that asynchronously posts call logs to Restlet Cloud
 */
public void flushLogs() {
  if (callLogs.isEmpty()) {
    return;
  }
  CallLogs logsToPost;
  synchronized (callLogs) {
    if (callLogs.isEmpty()) {
      return;
    }
    logsToPost = new CallLogs(callLogs.size());
    logsToPost.addAll(callLogs);
    callLogs.clear();
  }
  postLogs(logsToPost);
}
org.restlet.ext.platform.internal.agent.moduleAnalyticsHandlerpostLogs

Javadoc

Adds a task to the executor service to post call logs to the Restlet Cloud analytics service. If the executor service cannot satisfy the request, the call logs are lost and an error message is logged with the reason of the failure.

Popular methods of AnalyticsHandler

  • <init>
    Create a new analytics handler with the specified settings.
  • addCallLogToBuffer
    Generates a CallLog for the request and adds it to the buffer.
  • errorSendLog
    Called on permanent errors. Override to add your own behavior.
  • flushLogs
    Creates a new Thread that asynchronously posts call logs to Restlet Cloud
  • stop

Popular in Java

  • Updating database using SQL prepared statement
  • setScale (BigDecimal)
  • onCreateOptionsMenu (Activity)
  • addToBackStack (FragmentTransaction)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • HashSet (java.util)
    This class implements the Set interface, backed by a hash table (actually a HashMap instance). It m
  • JLabel (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now