Examples of NoSuchDomainException


Examples of net.windwards.dnsfrontend.api.NoSuchDomainException

    @Override
    public String monikerFromName(Name domain) throws NoSuchDomainException {
        DomainConfiguration conf = this.domains.get(domain.toString());
        if (conf == null)
            throw new NoSuchDomainException("Unknown domain " + domain.toString());
        return conf.moniker;
    }
View Full Code Here

Examples of net.windwards.dnsfrontend.api.NoSuchDomainException

            @Override
            public Backend lookup(int type) {
                return new TestingBackend(new LinkedList<Record>()) {
                    @Override
                    public void notify(Record query) throws NoSuchDomainException {
                        throw new NoSuchDomainException("BOOM");
                    }
                };
            }
            @Override public void stop() {}
        });
View Full Code Here

Examples of org.oasisopen.sca.NoSuchDomainException

        }

        try {
            return domainRegistryFactory.getEndpointRegistry(registryURI, domainURI);
        } catch (Exception e) {
            throw new NoSuchDomainException(domainURI, e);
        }
    }
View Full Code Here

Examples of org.oasisopen.sca.NoSuchDomainException

           
         
            try {
                domainRegistryFactory.getEndpointRegistry(registryURI, domainURI);
            } catch (Exception e) {
                throw new NoSuchDomainException(domainURI, e);
            }
        } finally {
            nodeFactory.destroy();
        }
    }
View Full Code Here

Examples of org.oasisopen.sca.NoSuchDomainException

           
            EndpointRegistry endpointRegistry;
            try {
                endpointRegistry = domainRegistryFactory.getEndpointRegistry(registryURI, domainURI);
            } catch (Exception e) {
                throw new NoSuchDomainException(domainURI, e);
            }
           
            FactoryExtensionPoint factories = extensionsRegistry.getExtensionPoint(FactoryExtensionPoint.class);
            AssemblyFactory assemblyFactory = factories.getFactory(AssemblyFactory.class);
            JavaInterfaceFactory javaInterfaceFactory = factories.getFactory(JavaInterfaceFactory.class);
View Full Code Here

Examples of org.oasisopen.sca.NoSuchDomainException

        }

        try {
            return domainRegistryFactory.getEndpointRegistry(registryURI, domainURI);
        } catch (Exception e) {
            throw new NoSuchDomainException(domainURI, e);
        }
    }
View Full Code Here

Examples of org.oasisopen.sca.NoSuchDomainException

        if (domainURI == null) {
            domainURI = URI.create(Node.DEFAULT_DOMAIN_URI);
        }
        List<Node> nodes = NodeFinder.getNodes(domainURI);
        if (nodes == null || nodes.size() < 1) {
            throw new NoSuchDomainException(domainURI.toString());
        }

        for (Node n : nodes) {
            try {
                return n.getService(serviceInterface, serviceName);
View Full Code Here

Examples of org.oasisopen.sca.NoSuchDomainException

           
            EndpointRegistry endpointRegistry;
            try {
                endpointRegistry = domainRegistryFactory.getEndpointRegistry(registryURI, domainURI);
            } catch (Exception e) {
                throw new NoSuchDomainException(domainURI, e);
            }
           
            FactoryExtensionPoint factories = extensionsRegistry.getExtensionPoint(FactoryExtensionPoint.class);
            AssemblyFactory assemblyFactory = factories.getFactory(AssemblyFactory.class);
            JavaInterfaceFactory javaInterfaceFactory = factories.getFactory(JavaInterfaceFactory.class);
View Full Code Here

Examples of org.oasisopen.sca.NoSuchDomainException

       
        // TODO: if there is not an existing endpoint registry for the domain URI the
        //       this should create an endpoint registry client for the remote domain (eg hazelcast native client)
        //       for now just throw an exception
        if (endpointRegistry == null) {
            throw new NoSuchDomainException(domainURI.toString());
        }
        FactoryExtensionPoint factories = extensionsRegistry.getExtensionPoint(FactoryExtensionPoint.class);
        this.assemblyFactory = factories.getFactory(AssemblyFactory.class);
        this.javaInterfaceFactory = factories.getFactory(JavaInterfaceFactory.class);
        this.proxyFactory = ExtensibleProxyFactory.getInstance(extensionsRegistry);
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.