本文整理了Java中org.apache.druid.query.QueryInterruptedException.getHost
方法的一些代码示例,展示了QueryInterruptedException.getHost
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。QueryInterruptedException.getHost
方法的具体详情如下:
包路径:org.apache.druid.query.QueryInterruptedException
类名称:QueryInterruptedException
方法名:getHost
暂无
代码示例来源:origin: apache/incubator-druid
private static String getHostFromThrowable(Throwable e)
{
if (e instanceof QueryInterruptedException) {
return ((QueryInterruptedException) e).getHost();
} else {
return null;
}
}
代码示例来源:origin: apache/incubator-druid
@Test
public void testHost()
{
Assert.assertEquals(
"myhost",
new QueryInterruptedException(new QueryInterruptedException(new CancellationException(), "myhost")).getHost()
);
}
代码示例来源:origin: apache/incubator-druid
Assert.assertEquals("testing1", actualException.getErrorCode());
Assert.assertEquals("testing2", actualException.getMessage());
Assert.assertEquals(hostName, actualException.getHost());
EasyMock.verify(httpClient);
代码示例来源:origin: org.apache.druid/druid-processing
private static String getHostFromThrowable(Throwable e)
{
if (e instanceof QueryInterruptedException) {
return ((QueryInterruptedException) e).getHost();
} else {
return null;
}
}
内容来源于网络,如有侵权,请联系作者删除!