seda.sandStorm.lib.aSocket
Class aSocketImplFactory

java.lang.Object
  extended by seda.sandStorm.lib.aSocket.aSocketImplFactory
Direct Known Subclasses:
NBIOFactory, NIOFactory

public abstract class aSocketImplFactory
extends java.lang.Object

aSocketImplFactory is an internal abstract class used to represent the interface between the aSocket library and a provider implementation.


Field Summary
private static boolean DEBUG
           
 
Constructor Summary
aSocketImplFactory()
           
 
Method Summary
(package private) static aSocketImplFactory getFactory()
           
protected abstract  ConnectSockState newConnectSockState(ATcpConnectRequest req, SelectSourceIF selsource)
           
protected abstract  DatagramSockState newDatagramSockState(AUdpSocket sock, java.net.InetAddress addr, int port)
           
protected abstract  ListenSockState newListenSockState(ATcpListenRequest req, SelectSourceIF selsource)
           
protected abstract  SelectQueueElement newSelectQueueElement(java.lang.Object item)
           
protected abstract  SelectSourceIF newSelectSource()
           
protected abstract  SockState newSockState(ATcpConnection conn, java.net.Socket nbsock, int writeClogThreshold)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG

private static final boolean DEBUG
See Also:
Constant Field Values
Constructor Detail

aSocketImplFactory

public aSocketImplFactory()
Method Detail

getFactory

static aSocketImplFactory getFactory()
                              throws java.lang.ClassNotFoundException,
                                     java.lang.InstantiationException,
                                     java.lang.IllegalAccessException
Throws:
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException

newSelectSource

protected abstract SelectSourceIF newSelectSource()

newSelectQueueElement

protected abstract SelectQueueElement newSelectQueueElement(java.lang.Object item)

newSockState

protected abstract SockState newSockState(ATcpConnection conn,
                                          java.net.Socket nbsock,
                                          int writeClogThreshold)
                                   throws java.io.IOException
Throws:
java.io.IOException

newConnectSockState

protected abstract ConnectSockState newConnectSockState(ATcpConnectRequest req,
                                                        SelectSourceIF selsource)
                                                 throws java.io.IOException
Throws:
java.io.IOException

newListenSockState

protected abstract ListenSockState newListenSockState(ATcpListenRequest req,
                                                      SelectSourceIF selsource)
                                               throws java.io.IOException
Throws:
java.io.IOException

newDatagramSockState

protected abstract DatagramSockState newDatagramSockState(AUdpSocket sock,
                                                          java.net.InetAddress addr,
                                                          int port)
                                                   throws java.io.IOException
Throws:
java.io.IOException