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

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

Best Java code snippets using org.restlet.ext.platform.internal.agent.module.AnalyticsHandler.errorSendLog (Showing top 8 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.jee/org.restlet.ext.platform

/**
 * 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.
 * 
 * @param logsToPost
 *            The call logs to post to the Restlet Cloud analytics service.
 */
private void postLogs(CallLogs logsToPost) {
  try {
    executorService.execute(new AsyncCallLogsPostTask(logsToPost));
  } catch (RejectedExecutionException e) {
    LOGGER.severe("Posting " + logsToPost.size()
        + " call logs failed permanently due to \""
        + e.getCause().getMessage() + "\".");
    errorSendLog(logsToPost);
  }
}
origin: org.restlet.jse/org.restlet.ext.platform

/**
 * 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.
 * 
 * @param logsToPost
 *            The call logs to post to the Restlet Cloud analytics service.
 */
private void postLogs(CallLogs logsToPost) {
  try {
    executorService.execute(new AsyncCallLogsPostTask(logsToPost));
  } catch (RejectedExecutionException e) {
    LOGGER.severe("Posting " + logsToPost.size()
        + " call logs failed permanently due to \""
        + e.getCause().getMessage() + "\".");
    errorSendLog(logsToPost);
  }
}
origin: org.restlet.gae/org.restlet.ext.platform

/**
 * 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.
 * 
 * @param logsToPost
 *            The call logs to post to the Restlet Cloud analytics service.
 */
private void postLogs(CallLogs logsToPost) {
  try {
    executorService.execute(new AsyncCallLogsPostTask(logsToPost));
  } catch (RejectedExecutionException e) {
    LOGGER.severe("Posting " + logsToPost.size()
        + " call logs failed permanently due to \""
        + e.getCause().getMessage() + "\".");
    errorSendLog(logsToPost);
  }
}
origin: org.restlet.osgi/org.restlet.ext.platform

/**
 * 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.
 * 
 * @param logsToPost
 *            The call logs to post to the Restlet Cloud analytics service.
 */
private void postLogs(CallLogs logsToPost) {
  try {
    executorService.execute(new AsyncCallLogsPostTask(logsToPost));
  } catch (RejectedExecutionException e) {
    LOGGER.severe("Posting " + logsToPost.size()
        + " call logs failed permanently due to \""
        + e.getCause().getMessage() + "\".");
    errorSendLog(logsToPost);
  }
}
origin: org.restlet.gae/org.restlet.ext.platform

@Override
public void run() {
  for (int attemptNumber = 1; attemptNumber <= MAX_ATTEMPTS + 1; attemptNumber++) {
    try {
      analyticsClientResource.postLogs(logsToPost);
      LOGGER.fine(logsToPost.size()
          + " call logs sent to the analytics service.");
      break;
    } catch (Exception e) {
      if (attemptNumber == MAX_ATTEMPTS) {
        LOGGER.severe("Posting " + logsToPost.size()
            + " call logs failed permanently after "
            + MAX_ATTEMPTS + " attempts.");
        errorSendLog(logsToPost);
      } else {
        LOGGER.warning("Error sending "
            + logsToPost.size()
            + " call logs to the analytics service during attempt n°"
            + attemptNumber + " because \""
            + e.getMessage() + "\".");
        try {
          Thread.sleep(getRetryTime(attemptNumber));
        } catch (InterruptedException e1) {
          // ignore
        }
      }
    }
  }
}
origin: org.restlet.osgi/org.restlet.ext.platform

@Override
public void run() {
  for (int attemptNumber = 1; attemptNumber <= MAX_ATTEMPTS + 1; attemptNumber++) {
    try {
      analyticsClientResource.postLogs(logsToPost);
      LOGGER.fine(logsToPost.size()
          + " call logs sent to the analytics service.");
      break;
    } catch (Exception e) {
      if (attemptNumber == MAX_ATTEMPTS) {
        LOGGER.severe("Posting " + logsToPost.size()
            + " call logs failed permanently after "
            + MAX_ATTEMPTS + " attempts.");
        errorSendLog(logsToPost);
      } else {
        LOGGER.warning("Error sending "
            + logsToPost.size()
            + " call logs to the analytics service during attempt n°"
            + attemptNumber + " because \""
            + e.getMessage() + "\".");
        try {
          Thread.sleep(getRetryTime(attemptNumber));
        } catch (InterruptedException e1) {
          // ignore
        }
      }
    }
  }
}
origin: org.restlet.jse/org.restlet.ext.platform

@Override
public void run() {
  for (int attemptNumber = 1; attemptNumber <= MAX_ATTEMPTS + 1; attemptNumber++) {
    try {
      analyticsClientResource.postLogs(logsToPost);
      LOGGER.fine(logsToPost.size()
          + " call logs sent to the analytics service.");
      break;
    } catch (Exception e) {
      if (attemptNumber == MAX_ATTEMPTS) {
        LOGGER.severe("Posting " + logsToPost.size()
            + " call logs failed permanently after "
            + MAX_ATTEMPTS + " attempts.");
        errorSendLog(logsToPost);
      } else {
        LOGGER.warning("Error sending "
            + logsToPost.size()
            + " call logs to the analytics service during attempt n°"
            + attemptNumber + " because \""
            + e.getMessage() + "\".");
        try {
          Thread.sleep(getRetryTime(attemptNumber));
        } catch (InterruptedException e1) {
          // ignore
        }
      }
    }
  }
}
origin: org.restlet.jee/org.restlet.ext.platform

@Override
public void run() {
  for (int attemptNumber = 1; attemptNumber <= MAX_ATTEMPTS + 1; attemptNumber++) {
    try {
      analyticsClientResource.postLogs(logsToPost);
      LOGGER.fine(logsToPost.size()
          + " call logs sent to the analytics service.");
      break;
    } catch (Exception e) {
      if (attemptNumber == MAX_ATTEMPTS) {
        LOGGER.severe("Posting " + logsToPost.size()
            + " call logs failed permanently after "
            + MAX_ATTEMPTS + " attempts.");
        errorSendLog(logsToPost);
      } else {
        LOGGER.warning("Error sending "
            + logsToPost.size()
            + " call logs to the analytics service during attempt n°"
            + attemptNumber + " because \""
            + e.getMessage() + "\".");
        try {
          Thread.sleep(getRetryTime(attemptNumber));
        } catch (InterruptedException e1) {
          // ignore
        }
      }
    }
  }
}
org.restlet.ext.platform.internal.agent.moduleAnalyticsHandlererrorSendLog

Javadoc

Called on permanent errors. Override to add your own behavior.

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.
  • flushLogs
    Creates a new Thread that asynchronously posts call logs to Restlet Cloud
  • postLogs
    Adds a task to the executor service to post call logs to the Restlet Cloud analytics service. If the
  • 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