OFChannelHandler(@Nonnull IOFSwitchManager switchManager,@Nonnull INewOFConnectionListener newConnectionListener,@Nonnull ChannelPipeline pipeline,@Nonnull IDebugCounterService debugCounters,@Nonnull Timer timer){
  Preconditions.checkNotNull(switchManager,"switchManager");
  Preconditions.checkNotNull(newConnectionListener,"connectionOpenedListener");
  Preconditions.checkNotNull(pipeline,"pipeline");
  Preconditions.checkNotNull(timer,"timer");
  Preconditions.checkNotNull(debugCounters,"debugCounters");
  this.pipeline=pipeline;
  this.debugCounters=debugCounters;
  this.newConnectionListener=newConnectionListener;
  this.counters=switchManager.getCounters();
  this.state=new InitState();
  this.timer=timer;
  log.debug("constructor on OFChannelHandler {}",String.format("%08x",System.identityHashCode(this)));
}

OFChannelHandler ( @ Nonnull IOFSwitchManager switchManager , @ Nonnull INewOFConnectionListener newConnectionListener , @ Nonnull ChannelPipeline pipeline , @ Nonnull IDebugCounterService debugCounters , @ Nonnull Timer timer ) { Preconditions . checkNotNull ( switchManager , "switchManager" ) ; Preconditions . checkNotNull ( newConnectionListener , "connectionOpenedListener" ) ; Preconditions . checkNotNull ( pipeline , "pipeline" ) ; Preconditions . checkNotNull ( timer , "timer" ) ; Preconditions . checkNotNull ( debugCounters , "debugCounters" ) ; this . pipeline = pipeline ; this . debugCounters = debugCounters ; this . newConnectionListener = newConnectionListener ; this . counters = switchManager . getCounters ( ) ; this . state = new InitState ( ) ; this . timer = timer ; log . debug ( "constructor on OFChannelHandler {}" , String . format ( "%08x" , System . identityHashCode ( this ) ) ) ; }
creates a handler for interacting with the switch channel
