Examples of IOService


Examples of com.hazelcast.nio.IOService

    private boolean connectionTypeSet = false;
    private long requestIdGen;
    private final ILogger logger;

    public SocketTextReader(TcpIpConnection connection) {
        IOService ioService = connection.getConnectionManager().getIOHandler();
        this.textCommandService = ioService.getTextCommandService();
        this.socketTextWriter = (SocketTextWriter) connection.getWriteHandler().getSocketWriter();
        this.connection = connection;
        this.memcacheEnabled = ioService.isMemcacheEnabled();
        this.restEnabled = ioService.isRestEnabled();
        this.logger = ioService.getLogger(this.getClass().getName());
    }
View Full Code Here

Examples of com.hazelcast.nio.IOService

    private boolean connectionTypeSet;
    private long requestIdGen;
    private final ILogger logger;

    public SocketTextReader(TcpIpConnection connection) {
        IOService ioService = connection.getConnectionManager().getIOHandler();
        this.textCommandService = ioService.getTextCommandService();
        this.socketTextWriter = (SocketTextWriter) connection.getWriteHandler().getSocketWriter();
        this.connection = connection;
        this.memcacheEnabled = ioService.isMemcacheEnabled();
        this.restEnabled = ioService.isRestEnabled();
        this.logger = ioService.getLogger(this.getClass().getName());
    }
View Full Code Here

Examples of com.yz.net.IoService

      Configure config = new Configure();
      config.setAddress(new java.net.InetSocketAddress("127.0.0.1", 8899));
      config.setProtocolHandler(new Protocol());
      config.setIoHandler(new DataHandler());
     
      IoService server = new IoServerImpl();
      config.start(server);
     
   
     
      while(true) {
View Full Code Here

Examples of com.yz.net.IoService

      Configure config = new Configure();
      config.setAddress(new InetSocketAddress("127.0.0.1", 8899));
      config.setProtocolHandler(new EchoProtocol());
      config.setIoHandler(new EchoHandler());
     
      IoService service = new IoServerImpl();
     
      config.start(service);
     
      while(true) {
        Thread.sleep(1000);
View Full Code Here

Examples of jscover.util.IoService

    public InstrumentingRequestHandler(Socket socket, ConfigurationForServer configuration) {
        super(socket, configuration.getDocumentRoot(), configuration.getVersion());
        this.configuration = configuration;
        this.unloadedSourceProcessor = new UnloadedSourceProcessor(configuration);
        this.uriFileTranslator = configuration.getUriFileTranslator();
        this.ioService = new IoService(configuration.isLocalStorage());
    }
View Full Code Here

Examples of jscover.util.IoService

    private LoggerUtils loggerUtils = LoggerUtils.getInstance();
    private ConfigurationForFS configuration;

    public void run(ConfigurationForFS configuration) {
        this.configuration = configuration;
        ioService = new IoService(configuration.isLocalStorage());
        loggerUtils.configureLogger(configuration.getLogLevel(), configuration.getDestDir());
        logger.log(INFO, "Starting JSCover {0} file instrumentation", configuration.getVersion());
        ioService.generateJSCoverFilesForFileSystem(configuration.getDestDir(), configuration.getVersion());
        copyFolder(configuration.getSrcDir(), configuration.getDestDir());
        copyFolder(configuration.getSrcDir(), new File(configuration.getDestDir(), Main.reportSrcSubDir), getJavaScriptFilter(), true);
View Full Code Here

Examples of org.apache.mina.api.IoService

    }

    @Test
    public void read_event() {
        IoService service = mock(IoService.class);
        DummySession session = new DummySession(service, idleChecker);

        session.getConfig().setIdleTimeInMillis(IdleStatus.READ_IDLE, 1000L);

        idleChecker.sessionRead(session, now);
View Full Code Here

Examples of org.apache.mina.api.IoService

    }

    @Test
    public void write_event() {
        IoService service = mock(IoService.class);
        DummySession session = new DummySession(service, idleChecker);

        session.getConfig().setIdleTimeInMillis(IdleStatus.WRITE_IDLE, 1000L);

        idleChecker.sessionWritten(session, now);
View Full Code Here

Examples of org.apache.mina.api.IoService

        assertEquals(0, idleChecker.processIdleSession(now));
    }

    @Test
    public void dont_send_premature_events() {
        IoService service = mock(IoService.class);
        DummySession session = new DummySession(service, idleChecker);

        session.getConfig().setIdleTimeInMillis(IdleStatus.READ_IDLE, 2000L);

        idleChecker.sessionRead(session, now);
View Full Code Here

Examples of org.apache.mina.common.IoService

        }
    }

    public void testContext() {
        appContext = SpringMain.getApplicationContext();
        IoService service = (IoService) appContext.getBean("ioAcceptor");
        IoService ioAcceptorWithSSL = (IoService) appContext.getBean("ioAcceptorWithSSL");
        assertTrue(service.isActive());
        assertTrue(ioAcceptorWithSSL.isActive());
        appContext.close();
        assertFalse(service.isActive());
        assertFalse(ioAcceptorWithSSL.isActive());
    }
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.