// Path: src/main/java/net/iponweb/disthene/config/DistheneConfiguration.java
// @SuppressWarnings("UnusedDeclaration")
// public final class DistheneConfiguration {
//     private CarbonConfiguration carbon;
//     private StoreConfiguration store;
//     private IndexConfiguration index;
//     private StatsConfiguration stats;
// 
// 
//     public CarbonConfiguration getCarbon() {
//         return carbon;
//     }
// 
//     public void setCarbon(CarbonConfiguration carbon) {
//         this.carbon = carbon;
//     }
// 
//     public StoreConfiguration getStore() {
//         return store;
//     }
// 
//     public void setStore(StoreConfiguration store) {
//         this.store = store;
//     }
// 
//     public IndexConfiguration getIndex() {
//         return index;
//     }
// 
//     public void setIndex(IndexConfiguration index) {
//         this.index = index;
//     }
// 
//     public StatsConfiguration getStats() {
//         return stats;
//     }
// 
//     public void setStats(StatsConfiguration stats) {
//         this.stats = stats;
//     }
// 
//     @Override
//     public String toString() {
//         return "DistheneConfiguration{" +
//                 "carbon=" + carbon +
//                 ", store=" + store +
//                 ", index=" + index +
//                 ", stats=" + stats +
//                 '}';
//     }
// }
// 
// Path: src/main/java/net/iponweb/disthene/events/DistheneEvent.java
// public interface DistheneEvent {
// }


import io.netty.bootstrap.ServerBootstrap;
import io.netty.channel.*;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.SocketChannel;
import io.netty.channel.socket.nio.NioServerSocketChannel;
import io.netty.handler.codec.DelimiterBasedFrameDecoder;
import io.netty.handler.codec.Delimiters;
import net.engio.mbassy.bus.MBassador;
import net.iponweb.disthene.config.DistheneConfiguration;
import net.iponweb.disthene.events.DistheneEvent;
import org.apache.log4j.Logger;

package net.iponweb.disthene.carbon;


/**
 * @author Andrei Ivanov
 */

public class CarbonServer {
    private static final int MAX_FRAME_LENGTH = 8192 ;
    private Logger logger = Logger.getLogger(CarbonServer.class);

    private DistheneConfiguration configuration;

    private EventLoopGroup bossGroup = new NioEventLoopGroup();
    private EventLoopGroup workerGroup = new NioEventLoopGroup();


// Path: src/main/java/net/iponweb/disthene/config/DistheneConfiguration.java
// @SuppressWarnings("UnusedDeclaration")
// public final class DistheneConfiguration {
//     private CarbonConfiguration carbon;
//     private StoreConfiguration store;
//     private IndexConfiguration index;
//     private StatsConfiguration stats;
// 
// 
//     public CarbonConfiguration getCarbon() {
//         return carbon;
//     }
// 
//     public void setCarbon(CarbonConfiguration carbon) {
//         this.carbon = carbon;
//     }
// 
//     public StoreConfiguration getStore() {
//         return store;
//     }
// 
//     public void setStore(StoreConfiguration store) {
//         this.store = store;
//     }
// 
//     public IndexConfiguration getIndex() {
//         return index;
//     }
// 
//     public void setIndex(IndexConfiguration index) {
//         this.index = index;
//     }
// 
//     public StatsConfiguration getStats() {
//         return stats;
//     }
// 
//     public void setStats(StatsConfiguration stats) {
//         this.stats = stats;
//     }
// 
//     @Override
//     public String toString() {
//         return "DistheneConfiguration{" +
//                 "carbon=" + carbon +
//                 ", store=" + store +
//                 ", index=" + index +
//                 ", stats=" + stats +
//                 '}';
//     }
// }
// 
// Path: src/main/java/net/iponweb/disthene/events/DistheneEvent.java
// public interface DistheneEvent {
// }


// Path: src/main/java/net/iponweb/disthene/carbon/CarbonServer.java
import io.netty.bootstrap.ServerBootstrap;
import io.netty.channel.*;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.SocketChannel;
import io.netty.channel.socket.nio.NioServerSocketChannel;
import io.netty.handler.codec.DelimiterBasedFrameDecoder;
import io.netty.handler.codec.Delimiters;
import net.engio.mbassy.bus.MBassador;
import net.iponweb.disthene.config.DistheneConfiguration;
import net.iponweb.disthene.events.DistheneEvent;
import org.apache.log4j.Logger;

package net.iponweb.disthene.carbon;


/**
 * @author Andrei Ivanov
 */

public class CarbonServer {
    private static final int MAX_FRAME_LENGTH = 8192 ;
    private Logger logger = Logger.getLogger(CarbonServer.class);

    private DistheneConfiguration configuration;

    private EventLoopGroup bossGroup = new NioEventLoopGroup();
    private EventLoopGroup workerGroup = new NioEventLoopGroup();


    private MBassador<DistheneEvent> bus;
