Package eu.admire.dispel.graph.optimise

Examples of eu.admire.dispel.graph.optimise.TransformationException


            if (node.isProcessingElement())
            {
                Set<String> candidates = (Set<String>)node.getAnnotation(AnnotationKeys.CANDIDATE_EXECUTION_ENGINES);
                if (candidates == null)
                {
                    throw new TransformationException(
                        "Processing Element " + node.getName() + " does not " +
                        "have a candidate execution engines annotation.");
                }
                if (candidates.isEmpty())
                {
                    throw new TransformationException(
                        "Processing Element " + node.getName() + " has an " +
                        "empty set of candidate execution engines.");
                }
               
                String executionEngine = (String)node.getAnnotation(AnnotationKeys.EXECUTION_ENGINE);
                if (executionEngine != null && !candidates.contains(executionEngine))
                {
                    throw new TransformationException(
                            "Processing Element " + node.getName() + " has " +
                            "execution engine annotation "+ executionEngine +
                            " inconsistent with candidates: " + candidates);
                }
            }
View Full Code Here

TOP

Related Classes of eu.admire.dispel.graph.optimise.TransformationException

Copyright © 2018 www.massapicom. 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.