seda.sandStorm.lib.aSocket
Class aSocketStageWrapper

java.lang.Object
  extended by seda.sandStorm.lib.aSocket.aSocketStageWrapper
All Implemented Interfaces:
StageWrapperIF

 class aSocketStageWrapper
extends java.lang.Object
implements StageWrapperIF

Internal stage wrapper implementation for aSocket.


Field Summary
private  ConfigDataIF config
           
private  FiniteQueue eventQ
           
private  EventHandlerIF handler
           
private  java.lang.String name
           
private  SelectSourceIF selsource
           
private  StageIF stage
           
private  StageStatsIF stats
           
private  ThreadManagerIF tm
           
 
Constructor Summary
aSocketStageWrapper(java.lang.String name, EventHandlerIF handler, ConfigDataIF config, ThreadManagerIF tm)
           
 
Method Summary
 void destroy()
          Destroy this stage.
 EventHandlerIF getEventHandler()
          Return the event handler associated with this stage.
(package private)  SourceIF getEventQueue()
           
 ResponseTimeControllerIF getResponseTimeController()
          Not implemented.
(package private)  SelectSourceIF getSelectSource()
           
 SourceIF getSource()
          Return the source from which events should be pulled to pass to this EventHandlerIF.
 StageIF getStage()
          Return the stage handle for this stage.
 StageStatsIF getStats()
          Return a StageStatsIF interface which records and manages performance statistics for this stage.
 ThreadManagerIF getThreadManager()
          Return the thread manager for this stage.
 void init()
          Initialize this stage.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

private java.lang.String name

stage

private StageIF stage

handler

private EventHandlerIF handler

config

private ConfigDataIF config

eventQ

private FiniteQueue eventQ

selsource

private SelectSourceIF selsource

tm

private ThreadManagerIF tm

stats

private StageStatsIF stats
Constructor Detail

aSocketStageWrapper

aSocketStageWrapper(java.lang.String name,
                    EventHandlerIF handler,
                    ConfigDataIF config,
                    ThreadManagerIF tm)
Method Detail

init

public void init()
          throws java.lang.Exception
Initialize this stage.

Specified by:
init in interface StageWrapperIF
Throws:
java.lang.Exception

destroy

public void destroy()
             throws java.lang.Exception
Destroy this stage.

Specified by:
destroy in interface StageWrapperIF
Throws:
java.lang.Exception

getEventHandler

public EventHandlerIF getEventHandler()
Return the event handler associated with this stage.

Specified by:
getEventHandler in interface StageWrapperIF

getStage

public StageIF getStage()
Return the stage handle for this stage.

Specified by:
getStage in interface StageWrapperIF

getSource

public SourceIF getSource()
Return the source from which events should be pulled to pass to this EventHandlerIF. Note that this method is not used internally.

Specified by:
getSource in interface StageWrapperIF

getThreadManager

public ThreadManagerIF getThreadManager()
Return the thread manager for this stage.

Specified by:
getThreadManager in interface StageWrapperIF

getSelectSource

SelectSourceIF getSelectSource()

getEventQueue

SourceIF getEventQueue()

getStats

public StageStatsIF getStats()
Description copied from interface: StageWrapperIF
Return a StageStatsIF interface which records and manages performance statistics for this stage.

Specified by:
getStats in interface StageWrapperIF

getResponseTimeController

public ResponseTimeControllerIF getResponseTimeController()
Not implemented.

Specified by:
getResponseTimeController in interface StageWrapperIF

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object