Package net.windwards.dnsfrontend.api

Examples of net.windwards.dnsfrontend.api.Configuration


        DNSFrontend frontend = new DNSFrontend();
        OptionParser<DNSFrontend> parser = new OptionParser<DNSFrontend>(frontend);
        parser.parse(args);

        Reader stream = new FileReader(frontend.config);
        Configuration configuration = frontend.loadConfiguration(stream);

        frontend.setup(configuration);
        frontend.start();
    }
View Full Code Here


public class TestSimpleBackend {
    @Test
    public void basicOperation() throws Exception {
        Ehcache cache = TestUtils.getEhcache();
        Configuration conf = new TestingConfiguration("conf", "example.com.", 1);

        ARecord arec = new ARecord(new Name("foo.example.com."),
                DClass.IN, 1, InetAddress.getByName("localhost"));

        SimpleBackend backend = new SimpleBackend("A", arec);
View Full Code Here

TOP

Related Classes of net.windwards.dnsfrontend.api.Configuration

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.