Examples of Traceable


Examples of org.apache.camel.Traceable

        return mi;
    }

    private String getEndpointUri(ProcessorDefinition<?> node) {
        if (node instanceof Traceable) {
            Traceable tr = (Traceable)node;
            return tr.getTraceLabel();
        } else {
            return node.getLabel();
        }
    }
View Full Code Here

Examples of org.apache.camel.Traceable

            return expression.evaluate(exchange, String.class);
        }

        Processor target = processor;
        if (target != null && target instanceof Traceable) {
            Traceable trace = (Traceable) target;
            return trace.getTraceLabel();
        }
       
        // Compatiblity for old Traceable interface
        if (target != null && target instanceof org.apache.camel.processor.Traceable) {
            org.apache.camel.processor.Traceable trace = (org.apache.camel.processor.Traceable) target;
            return trace.getTraceLabel();
        }

        // default then to definition
        return processorDefinition.getLabel();
    }
View Full Code Here

Examples of org.apache.camel.Traceable

        return mi;
    }

    private String getEndpointUri(ProcessorDefinition<?> node) {
        if (node instanceof Traceable) {
            Traceable tr = (Traceable)node;
            return tr.getTraceLabel();
        } else {
            return node.getLabel();
        }
    }
View Full Code Here

Examples of org.apache.camel.Traceable

        return mi;
    }

    private String getEndpointUri(ProcessorDefinition<?> node) {
        if (node instanceof Traceable) {
            Traceable tr = (Traceable)node;
            return tr.getTraceLabel();
        } else {
            return node.getLabel();
        }
    }
View Full Code Here

Examples of org.apache.camel.Traceable

        return mi;
    }

    private String getEndpointUri(ProcessorDefinition<?> node) {
        if (node instanceof Traceable) {
            Traceable tr = (Traceable)node;
            return tr.getTraceLabel();
        } else {
            return node.getLabel();
        }
    }
View Full Code Here

Examples of org.apache.camel.Traceable

        if (target == null) {
            return null;
        }

        if (target instanceof Traceable) {
            Traceable trace = (Traceable) target;
            return trace.getTraceLabel();
        } else if (target instanceof org.apache.camel.processor.Traceable) {
            // to be backwards compatible
            org.apache.camel.processor.Traceable trace = (org.apache.camel.processor.Traceable) target;
            return trace.getTraceLabel();
        }

        // if we are a delegate then drill down
        if (target instanceof DelegateProcessor) {
            return getTraceLabel(((DelegateProcessor) target).getProcessor());
View Full Code Here

Examples of org.apache.camel.Traceable

        return mi;
    }

    private String getEndpointUri(ProcessorDefinition<?> node) {
        if (node instanceof Traceable) {
            Traceable tr = (Traceable)node;
            return tr.getTraceLabel();
        } else {
            return node.getLabel();
        }
    }
View Full Code Here

Examples of org.apache.camel.processor.Traceable

        return mi;
    }

    private String getEndpointUri(ProcessorDefinition<?> node) {
        if (node instanceof Traceable) {
            Traceable tr = (Traceable)node;
            return tr.getTraceLabel();
        } else {
            return node.getLabel();
        }
    }
View Full Code Here

Examples of org.apache.camel.processor.Traceable

            if (target instanceof InstrumentationProcessor) {
                target = ((InstrumentationProcessor) target).getProcessor();
            }

            if (target instanceof Traceable) {
                Traceable trace = (Traceable) target;
                return trace.getTraceLabel();
            }
        }

        // default then to definition
        return processorDefinition.getLabel();
View Full Code Here

Examples of org.apache.camel.processor.Traceable

            return expression.evaluate(exchange, String.class);
        }

        if (processor != null) {
            if (processor instanceof Traceable) {
                Traceable trace = (Traceable) processor;
                return trace.getTraceLabel();
            }
            processor.toString();
        }

        // default then to definition
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.