Package com.github.dreamhead.moco

Examples of com.github.dreamhead.moco.SocketServer


    public void stop() {
        runner.stop();
    }

    private SocketServer createSocketServer(Iterable<? extends RunnerSetting> settings, StartArgs startArgs) {
        SocketServer socketServer = ActualSocketServer.createLogServer(startArgs.getPort());
        for (RunnerSetting setting : settings) {
            SocketServer parsedServer = socketParser.parseServer(setting.getStream(), startArgs.getPort(), toConfigs(setting));
            socketServer = mergeServer(socketServer, parsedServer);
        }

        return socketServer;
    }
View Full Code Here


import com.google.common.collect.ImmutableList;

public class SocketServerParser extends BaseParser<SocketServer> {
    @Override
    protected SocketServer createServer(ImmutableList<SessionSetting> sessionSettings, Optional<Integer> port, MocoConfig... configs) {
        SocketServer server = ActualSocketServer.createLogServer(port);
        for (SessionSetting session : sessionSettings) {
            logger.debug("Parse session: {}", session);

            session.bindTo(server);
        }
View Full Code Here

TOP

Related Classes of com.github.dreamhead.moco.SocketServer

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.