Tabnine Logo
FatalQueryException
Code IndexAdd Tabnine to your IDE (free)

How to use
FatalQueryException
in
com.netflix.kayenta.metrics

Best Java code snippets using com.netflix.kayenta.metrics.FatalQueryException (Showing top 2 results out of 315)

origin: spinnaker/kayenta

protected AtlasResults convertTokenizedLineToAtlasResults(String[] tokenizedLine) {
 try {
  AtlasResults atlasResults = kayentaObjectMapper.readValue(tokenizedLine[1], AtlasResults.class);
  String atlasResultsType = atlasResults.getType();
  if (StringUtils.isEmpty(atlasResultsType) || !EXPECTED_RESULTS_TYPE_LIST.contains(atlasResultsType)) {
   if (atlasResultsType.equals("error")) {
    if (atlasResults.getMessage().contains("IllegalStateException")) {
     throw new FatalQueryException("Atlas query failed: " + atlasResults.getMessage());
    } else {
     throw new RetryableQueryException("Atlas query failed: " + atlasResults.getMessage());
    }
   }
   log.info("Received results of type other than 'timeseries' or 'close' from Atlas: {}", atlasResults);
   return null;
  }
  return atlasResults;
 } catch (IOException e) {
  log.error("Cannot process Atlas results", e);
  return null;
 }
}
origin: com.netflix.kayenta/kayenta-atlas

protected AtlasResults convertTokenizedLineToAtlasResults(String[] tokenizedLine) {
 try {
  AtlasResults atlasResults = kayentaObjectMapper.readValue(tokenizedLine[1], AtlasResults.class);
  String atlasResultsType = atlasResults.getType();
  if (StringUtils.isEmpty(atlasResultsType) || !EXPECTED_RESULTS_TYPE_LIST.contains(atlasResultsType)) {
   if (atlasResultsType.equals("error")) {
    if (atlasResults.getMessage().contains("IllegalStateException")) {
     throw new FatalQueryException("Atlas query failed: " + atlasResults.getMessage());
    } else {
     throw new RetryableQueryException("Atlas query failed: " + atlasResults.getMessage());
    }
   }
   log.info("Received results of type other than 'timeseries' or 'close' from Atlas: {}", atlasResults);
   return null;
  }
  return atlasResults;
 } catch (IOException e) {
  log.error("Cannot process Atlas results", e);
  return null;
 }
}
com.netflix.kayenta.metricsFatalQueryException

Most used methods

  • <init>

Popular in Java

  • Making http post requests using okhttp
  • getSharedPreferences (Context)
  • startActivity (Activity)
  • putExtra (Intent)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • PhpStorm for WordPress
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