Codota Logo
ProcessorDefinitionHelper.getRoute
Code IndexAdd Codota to your IDE (free)

How to use
getRoute
method
in
org.apache.camel.model.ProcessorDefinitionHelper

Best Java code snippets using org.apache.camel.model.ProcessorDefinitionHelper.getRoute (Showing top 7 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: org.openehealth.ipf.platform-camel/ipf-platform-camel-core

public ObjectName getObjectNameForProcessor(CamelContext context,
    Processor processor, ProcessorDefinition<?> definition)
    throws MalformedObjectNameException {
  StringBuilder buffer = new StringBuilder();
  buffer.append(domainName).append(":");
  buffer.append(KEY_CONTEXT + "=").append(getContextId(context)).append(",");
  buffer.append(KEY_TYPE + "=").append(TYPE_PROCESSOR).append(",");
  RouteDefinition route = ProcessorDefinitionHelper.getRoute(definition);
  if (route != null) {
    buffer.append(KEY_ROUTE + "=").append(route.getId()).append(",");
  }
  buffer.append(KEY_NAME + "=").append(ObjectName.quote(definition.getId()));
  return createObjectName(buffer);
}
origin: jboss-fuse/fabric8

public String dumpStatsAsXml(String routeId) {
  Set<RouteDefinition> routes = new HashSet<RouteDefinition>();
  for (ProcessorDefinition<?> definition : statistics.keySet()) {
    RouteDefinition route = ProcessorDefinitionHelper.getRoute(definition);
    routes.add(route);
  }
  StringBuilder sb = new StringBuilder();
  sb.append("<profiling>");
  for (RouteDefinition route : routes) {
    if (routeId == null || routeId.equals(route.getId())) {
      sb.append("<route");
      if (route.getId() != null) {
        sb.append(" id=\"").append(route.getId()).append("\"");
      }
      sb.append(">");
      appendStats(sb, route);
      sb.append("</route>");
    }
  }
  sb.append("</profiling>");
  return sb.toString();
}
origin: org.fusesource.insight/insight-camel

public String dumpStatsAsXml(String routeId) {
  Set<RouteDefinition> routes = new HashSet<RouteDefinition>();
  for (ProcessorDefinition<?> definition : statistics.keySet()) {
    RouteDefinition route = ProcessorDefinitionHelper.getRoute(definition);
    routes.add(route);
  }
  StringBuilder sb = new StringBuilder();
  sb.append("<profiling>");
  for (RouteDefinition route : routes) {
    if (routeId == null || routeId.equals(route.getId())) {
      sb.append("<route");
      if (route.getId() != null) {
        sb.append(" id=\"").append(route.getId()).append("\"");
      }
      sb.append(">");
      appendStats(sb, route);
      sb.append("</route>");
    }
  }
  sb.append("</profiling>");
  return sb.toString();
}
origin: org.fusesource.insight/insight-camel

public Processor wrap(RouteContext routeContext, ProcessorDefinition<?> definition, Processor processor) {
  if (processor == null) {
    return null;
  }
  // is this the first output from a route, as we want to know this so we can do special logic in first
  boolean first = false;
  RouteDefinition route = ProcessorDefinitionHelper.getRoute(definition);
  if (route != null) {
    if (routeContext.getCamelContext().getNodeIdFactory() != null) {
      RouteDefinitionHelper.forceAssignIds(routeContext.getCamelContext(), route);
    }
    if (!route.getOutputs().isEmpty()) {
      first = route.getOutputs().get(0) == definition;
    }
  }
  routeContexts.add(routeContext);
  processors.add(definition);
  return new TraceProcessor(queue, processor, definition, route, first, this);
}
origin: org.fusesource.insight/insight-camel

public Processor wrap(RouteContext routeContext, ProcessorDefinition<?> definition, Processor proc) {
  if (proc == null) {
    return null;
  }
  RouteDefinition route = ProcessorDefinitionHelper.getRoute(definition);
  if (route != null) {
    if (routeContext.getCamelContext().getNodeIdFactory() != null) {
      RouteDefinitionHelper.forceAssignIds(routeContext.getCamelContext(), route);
    }
  }
  return new ProfilerProcessor(this, proc, getStats(definition), exchanges);
}
origin: jboss-fuse/fabric8

public Processor wrap(RouteContext routeContext, ProcessorDefinition<?> definition, Processor processor) {
  if (processor == null) {
    return null;
  }
  // is this the first output from a route, as we want to know this so we can do special logic in first
  boolean first = false;
  RouteDefinition route = ProcessorDefinitionHelper.getRoute(definition);
  if (route != null) {
    if (routeContext.getCamelContext().getNodeIdFactory() != null) {
      RouteDefinitionHelper.forceAssignIds(routeContext.getCamelContext(), route);
    }
    if (!route.getOutputs().isEmpty()) {
      first = route.getOutputs().get(0) == definition;
    }
  }
  routeContexts.add(routeContext);
  processors.add(definition);
  TraceProcessor traceProcessor = new TraceProcessor(queue, processor, definition, route, first, this);
  traceProcessor.setCamelContext(routeContext.getCamelContext());
  if (processor instanceof CamelContextAware) {
    ((CamelContextAware) processor).setCamelContext(routeContext.getCamelContext());
  }
  return traceProcessor;
}
origin: jboss-fuse/fabric8

public Processor wrap(RouteContext routeContext, ProcessorDefinition<?> definition, Processor processor) {
  if (processor == null) {
    return null;
  }
  if (processor instanceof FilterProcessor) {
    return processor;
  }
  RouteDefinition route = ProcessorDefinitionHelper.getRoute(definition);
  if (route != null) {
    if (routeContext.getCamelContext().getNodeIdFactory() != null) {
      RouteDefinitionHelper.forceAssignIds(routeContext.getCamelContext(), route);
    }
  }
  ProfilerProcessor profilerProcessor = new ProfilerProcessor(this, processor, getStats(definition), exchanges);
  profilerProcessor.setCamelContext(routeContext.getCamelContext());
  if (processor instanceof CamelContextAware) {
    ((CamelContextAware) processor).setCamelContext(routeContext.getCamelContext());
  }
  return profilerProcessor;
}
org.apache.camel.modelProcessorDefinitionHelpergetRoute

Popular methods of ProcessorDefinitionHelper

    Popular in Java

    • Running tasks concurrently on multiple threads
    • getSharedPreferences (Context)
    • getExternalFilesDir (Context)
    • getOriginalFilename (MultipartFile)
      Return the original filename in the client's filesystem.This may contain path information depending
    • BufferedWriter (java.io)
      Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
    • PrintWriter (java.io)
      Prints formatted representations of objects to a text-output stream. This class implements all of th
    • NumberFormat (java.text)
      The abstract base class for all number formats. This class provides the interface for formatting and
    • LinkedHashMap (java.util)
      Hash table and linked list implementation of the Map interface, with predictable iteration order. Th
    • Set (java.util)
      A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
    • SSLHandshakeException (javax.net.ssl)
      The exception that is thrown when a handshake could not be completed successfully.
    Codota Logo
    • Products

      Search for Java codeSearch for JavaScript codeEnterprise
    • IDE Plugins

      IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Codota for your IDE now