Examples of GatewayLocation


Examples of eu.admire.gateway.location.GatewayLocation

        LOG.debug("Waiting for " + mDone.getCount() + " processor(s)...");
        mRemoteProcesses = new HashSet<GatewayProcess>();
        mLocalProcesses = new HashSet<DISPELGraphExecutor>();
        for (Entry<GatewayLocation, Graph> entry : graphs.entrySet())
        {
            GatewayLocation location = entry.getKey();
            if (location instanceof LocalGateway)
            {
                processLocally(context, entry.getValue());
            }
            else
            {
                String dispel = GraphConverter.convertToDISPEL(entry.getValue());
                LOG.debug("Remote DISPEL:\n" + dispel);
                Gateway gateway = null;
                GatewayProcess process = null;
                try
                {
                    gateway = GatewayFactory.get(location.getAddress());
                    process = gateway.submit(dispel);
                }
                catch (URISyntaxException e)
                {
                    LOG.error("Remote gateway address is invalid: " +
                            location.getAddress());
                    throw new InitialisationFailedException();
                }
                catch (ServerException e)
                {
                    LOG.error("Problems with remote gateway", e);
View Full Code Here

Examples of eu.admire.gateway.location.GatewayLocation

        return result;
    }

    private void addNode(RequestNode node, Map<GatewayLocation, Graph> graphs)
    {
        GatewayLocation location;
        if (node instanceof LiteralValuesNode)
        {
            RequestNodeInput targetInput = ((LiteralValuesNode)node).getOutput().getTargets().get(0);
            location = (GatewayLocation)targetInput.getRequestNode().getAnnotation(AnnotationKeys.GATEWAY);
        }
View Full Code Here

Examples of eu.admire.gateway.location.GatewayLocation

            for (RequestNode node : graph.getNodes())
            {
                if (node.getAnnotationKeys().contains(AnnotationKeys.GATEWAY))
                {
                    String gatewayName = (String)node.getAnnotation(AnnotationKeys.GATEWAY);
                    GatewayLocation gatewayLocation =
                        mGatewayRegistry.getGatewayLocation(gatewayName);
                    node.addAnnotation(AnnotationKeys.GATEWAY, gatewayLocation);
                }
            }
           
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.