Package org.helios.netty.examples.state

Examples of org.helios.netty.examples.state.SimpleNIOServer


    // but all the others **must** be in this order  ---------------------------------------------------------------------\/-----------------\/---------------------\/ 

    // =====================================================================
    // Comment the next line to ditch the CompatibleObjectEncoder from the pipeline
    // =====================================================================   
    SimpleNIOServer server = new SimpleNIOServer(8080, channelOptions, objectEncoder, frameDecoder, stringDecoder, stringReporter);
   
    // =====================================================================
    // Uncomment the next line to ditch the CompatibleObjectEncoder from the pipeline
    // =====================================================================       
    //SimpleNIOServer server = new SimpleNIOServer(8080, channelOptions,  frameDecoder, stringDecoder, stringReporter);
   
    server.start();   
    JMXHelper. fireUpRMIRegistry("0.0.0.0", 8003);
    JMXHelper.fireUpJMXServer("0.0.0.0", 100, "service:jmx:rmi://hserval:8002/jndi/rmi://hserval:8003/jmxrmi", ManagementFactory.getPlatformMBeanServer());
   
    try {
      Thread.currentThread().join();
View Full Code Here

TOP

Related Classes of org.helios.netty.examples.state.SimpleNIOServer

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.