net.floodlightcontroller.core.internal
Class OpenflowPipelineFactory

java.lang.Object
  extended by net.floodlightcontroller.core.internal.OpenflowPipelineFactory
All Implemented Interfaces:
org.jboss.netty.channel.ChannelPipelineFactory, org.jboss.netty.util.ExternalResourceReleasable

public class OpenflowPipelineFactory
extends java.lang.Object
implements org.jboss.netty.channel.ChannelPipelineFactory, org.jboss.netty.util.ExternalResourceReleasable

Creates a ChannelPipeline for a server-side openflow channel

Author:
readams

Field Summary
protected  Controller controller
           
protected  org.jboss.netty.handler.timeout.IdleStateHandler idleHandler
           
protected  java.util.concurrent.ThreadPoolExecutor pipelineExecutor
           
protected  org.jboss.netty.handler.timeout.ReadTimeoutHandler readTimeoutHandler
           
protected  org.jboss.netty.util.Timer timer
           
 
Constructor Summary
OpenflowPipelineFactory(Controller controller, java.util.concurrent.ThreadPoolExecutor pipelineExecutor)
           
 
Method Summary
 org.jboss.netty.channel.ChannelPipeline getPipeline()
           
 void releaseExternalResources()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

controller

protected Controller controller

pipelineExecutor

protected java.util.concurrent.ThreadPoolExecutor pipelineExecutor

timer

protected org.jboss.netty.util.Timer timer

idleHandler

protected org.jboss.netty.handler.timeout.IdleStateHandler idleHandler

readTimeoutHandler

protected org.jboss.netty.handler.timeout.ReadTimeoutHandler readTimeoutHandler
Constructor Detail

OpenflowPipelineFactory

public OpenflowPipelineFactory(Controller controller,
                               java.util.concurrent.ThreadPoolExecutor pipelineExecutor)
Method Detail

getPipeline

public org.jboss.netty.channel.ChannelPipeline getPipeline()
                                                    throws java.lang.Exception
Specified by:
getPipeline in interface org.jboss.netty.channel.ChannelPipelineFactory
Throws:
java.lang.Exception

releaseExternalResources

public void releaseExternalResources()
Specified by:
releaseExternalResources in interface org.jboss.netty.util.ExternalResourceReleasable