Package com.taobao.gecko.service.config

Examples of com.taobao.gecko.service.config.ServerConfig


    }


    @Test
    public void testGetStats() throws Exception {
        ServerConfig serverConfig = new ServerConfig();
        serverConfig.setWireFormatType(new MetamorphosisWireFormatType());
        serverConfig.setPort(8199);
        RemotingServer server = RemotingFactory.bind(serverConfig);
        try {
            server.registerProcessor(StatsCommand.class, new RequestProcessor<StatsCommand>() {

                @Override
View Full Code Here


    private RemotingServer mockSlave;


    private void mockSlaveServer() throws Exception {
        final ServerConfig serverConfig = new ServerConfig();
        serverConfig.setPort(8121);
        serverConfig.setWireFormatType(new MetamorphosisWireFormatType());
        this.mockSlave = RemotingFactory.bind(serverConfig);
    }
View Full Code Here

        return null;
    }


    private static RemotingServer newRemotingServer(final MetaConfig metaConfig) {
        final ServerConfig serverConfig = new ServerConfig();
        serverConfig.setWireFormatType(new MetamorphosisWireFormatType());
        serverConfig.setPort(metaConfig.getServerPort());
        final RemotingServer server = RemotingFactory.newRemotingServer(serverConfig);
        return server;
    }
View Full Code Here

TOP

Related Classes of com.taobao.gecko.service.config.ServerConfig

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.