org.apache.camel.Route.getDescription()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(118)

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

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);
  }
}

相关文章