org.elasticsearch.rest.XContentThrowableRestResponse类的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(4.1k)|赞(0)|评价(0)|浏览(112)

本文整理了Java中org.elasticsearch.rest.XContentThrowableRestResponse类的一些代码示例,展示了XContentThrowableRestResponse类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XContentThrowableRestResponse类的具体详情如下:
包路径:org.elasticsearch.rest.XContentThrowableRestResponse
类名称:XContentThrowableRestResponse

XContentThrowableRestResponse介绍

暂无

代码示例

代码示例来源:origin: com.github.tlrx/elasticsearch-view-plugin

public void onFailure(Throwable e) {
    try {
      if (e instanceof ElasticSearchViewNotFoundException) {
        channel.sendResponse(new XContentThrowableRestResponse(request, NOT_FOUND, e));
      } else {
        channel.sendResponse(new XContentThrowableRestResponse(request, e));
      }
    } catch (IOException e1) {
      logger.error("Failed to send failure response", e1);
    }
  }
});

代码示例来源:origin: tlrx/elasticsearch-view-plugin

public void onFailure(Throwable e) {
    try {
      if (e instanceof ElasticSearchViewNotFoundException) {
        channel.sendResponse(new XContentThrowableRestResponse(request, NOT_FOUND, e));
      } else {
        channel.sendResponse(new XContentThrowableRestResponse(request, e));
      }
    } catch (IOException e1) {
      logger.error("Failed to send failure response", e1);
    }
  }
});

代码示例来源:origin: medcl/elasticsearch-partialupdate

public void onFailure(Throwable e) {
    try {
      channel.sendResponse(new XContentThrowableRestResponse(
          request, e));
    } catch (IOException e1) {
      e1.printStackTrace();
      logger.error("failed to send failure response", e1);
    }
  }
});

代码示例来源:origin: crate/elasticsearch-inout-plugin

public void onFailure(Throwable e) {
    try {
      channel.sendResponse(new XContentThrowableRestResponse(request, e));
    } catch (IOException e1) {
      logger.error("Failed to send failure response", e1);
    }
  }
});

代码示例来源:origin: medcl/elasticsearch-carrot2

@Override
  public void onFailure(Throwable e) {
    try {
      channel.sendResponse(new XContentThrowableRestResponse(request, e));
    } catch (IOException e1) {
      logger.error("Failed to send failure response", e1);
    }
  }
});

代码示例来源:origin: crate/elasticsearch-inout-plugin

public void onFailure(Throwable e) {
    try {
      channel.sendResponse(new XContentThrowableRestResponse(request, e));
    } catch (IOException e1) {
      logger.error("Failed to send failure response", e1);
    }
  }
});

代码示例来源:origin: crate/elasticsearch-inout-plugin

public void onFailure(Throwable e) {
    try {
      channel.sendResponse(
          new XContentThrowableRestResponse(request,
              e));
    } catch (IOException e1) {
      logger.error("Failed to send failure response",
          e1);
    }
  }
});

代码示例来源:origin: jprante/elasticsearch-gatherer

@Override
  public void onFailure(Throwable e) {
    try {
      channel.sendResponse(new XContentThrowableRestResponse(request, e));
    } catch (IOException e1) {
      logger.error("Failed to send failure response", e1);
    }
  }
});

代码示例来源:origin: bleskes/elasticfacets

@Override
  public void onFailure(Throwable e) {
    try {
      channel.sendResponse(new XContentThrowableRestResponse(request, e));
    } catch (IOException e1) {
      logger.error("Failed to send failure response", e1);
    }
  }
});

代码示例来源:origin: mattweber/elasticsearch-mocksolrplugin

@Override
  public void onFailure(Throwable e) {
    try {
      logger.error("Error processing executing search", e);
      channel.sendResponse(new XContentThrowableRestResponse(request, e));
    } catch (IOException e1) {
      logger.error("Failed to send failure response", e1);
    }
  }
});

代码示例来源:origin: jprante/elasticsearch-gatherer

public void onFailure(Throwable e) {
    try {
      channel.sendResponse(new XContentThrowableRestResponse(request, e));
    } catch (IOException e1) {
      logger.error("Failed to send failure response", e1);
try {
  logger.error(ex.getMessage(), ex);
  channel.sendResponse(new XContentThrowableRestResponse(request, ex));
} catch (Exception ex2) {
  logger.error(ex2.getMessage(), ex2);

代码示例来源:origin: mattweber/elasticsearch-mocksolrplugin

channel.sendResponse(new XContentThrowableRestResponse(request, e));
} catch (IOException e1) {
  logger.error("Failed to send error response", e1);
  channel.sendResponse(new XContentThrowableRestResponse(request, e));
} catch (IOException e1) {
  logger.error("Failed to send error response", e1);

代码示例来源:origin: karussell/elasticsearch-rollindex

} catch (IOException ex) {
  try {
    channel.sendResponse(new XContentThrowableRestResponse(request, ex));
  } catch (Exception ex2) {
    logger.error("problem while rolling index", ex2);

代码示例来源:origin: medcl/elasticsearch-partialupdate

channel.sendResponse(new XContentThrowableRestResponse(
      request, e));
} catch (IOException e1) {

相关文章

XContentThrowableRestResponse类方法