Package eu.admire.gateway.location

Examples of eu.admire.gateway.location.MockRequestContext


            "PE(<Connection in> => <Connection out>) B = PE(<Connection in=d.in> => <Connection out=e.out>);" +
            "register B;";
        registry.registerProcessingElement(desc, implementation);
        insert.setAdmireRegistry(registry);
        insert.setDispelOptimiser(new SimpleDispelOptimiser());
        RequestContext context = new MockRequestContext();
        Graph graph = new Graph();
        ProcessingElementNode a = new ProcessingElementNode("eu.admire.A");
        ProcessingElementNode b = new ProcessingElementNode("B");
        b.connectInput("in", 0, a.getOutput("out", 0));
        ProcessingElementNode c = new ProcessingElementNode("eu.admire.C");
View Full Code Here


    {
        InsertCompositeProcessingElements insert = new InsertCompositeProcessingElements();
        InMemoryAdmireRegistry registry = new InMemoryAdmireRegistry();
        insert.setAdmireRegistry(registry);
        insert.setDispelOptimiser(new SimpleDispelOptimiser());
        RequestContext context = new MockRequestContext();
        Graph graph = new Graph();
        ProcessingElementNode a = new ProcessingElementNode("eu.admire.A");
        graph.add(a);
        try
        {
View Full Code Here

        optimisers.add(new PropagateGatewayAllocations());
        optimisers.add(new AddExternalIONodes());
        engine.setOptimisers(optimisers);
       
        // the request context with the local DISPEL process EPR
        engine.setRequestContext(new MockRequestContext());

        // Read and execute the DISPEL
        Reader dispel = dispelFromFile("addExternalIONodes.dispel");
        DispelEngineResult result = engine.processDispel(dispel);
       
View Full Code Here

   
    @Test
    public void testSimple() throws Exception
    {
        SimpleInstrument insert = new SimpleInstrument();
        RequestContext context = new MockRequestContext();
       
        // A -> B -> C ---v
        //      | -> D -> E
        //      
       
View Full Code Here

TOP

Related Classes of eu.admire.gateway.location.MockRequestContext

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.