本文整理了Java中org.apache.camel.Route.getDescription
方法的一些代码示例,展示了Route.getDescription
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Route.getDescription
方法的具体详情如下:
包路径:org.apache.camel.Route
类名称:Route
方法名:getDescription
暂无
代码示例来源:origin: stackoverflow.com
for (Route route : routes) {
text1Status.append(route.getDescription() + "\n");
Log.d(TAG, route.getDescription());
}
代码示例来源:origin: org.apache.camel/camel-spring-boot
public RouteInfo(Route route) {
this.id = route.getId();
this.description = route.getDescription();
this.uptime = route.getUptime();
this.uptimeMillis = route.getUptimeMillis();
if (route instanceof StatefulService) {
this.status = ((StatefulService) route).getStatus().name();
} else {
this.status = null;
}
}
代码示例来源:origin: org.apache.camel/camel-spring-boot
public RouteEndpointInfo(Route route) {
this.id = route.getId();
this.group = route.getGroup();
this.description = route.getDescription();
this.uptime = route.getUptime();
this.uptimeMillis = route.getUptimeMillis();
if (route.getProperties() != null) {
this.properties = new HashMap<>(route.getProperties());
} else {
this.properties = Collections.emptyMap();
}
if (route instanceof StatefulService) {
this.status = ((StatefulService) route).getStatus().name();
} else {
this.status = null;
}
}
代码示例来源:origin: org.apache.camel/camel-micrometer
public void onExchangeDone(Exchange exchange) {
Timer.Sample sample = (Timer.Sample) exchange.removeProperty(propertyName(exchange));
if (sample != null) {
Timer timer = Timer.builder(namingStrategy.getName(route))
.tags(namingStrategy.getTags(route, exchange))
.description(route.getDescription())
.register(meterRegistry);
sample.stop(timer);
}
}
内容来源于网络,如有侵权,请联系作者删除!