org.objectweb.dream.channel
Class AbstractAcceptSocketImpl

java.lang.Object
  extended byorg.objectweb.dream.AbstractComponent
      extended byorg.objectweb.dream.channel.AbstractAcceptSocketImpl
All Implemented Interfaces:
BindingController, LifeCycleController, Loggable
Direct Known Subclasses:
TCPAcceptSocketImpl

public abstract class AbstractAcceptSocketImpl
extends AbstractComponent

Abstract Accept socket component. This component creates new incoming socket using the acceptSocket()method, and pass it through its OpenedSocketclient interface.


Nested Class Summary
protected  class AbstractAcceptSocketImpl.AcceptTask
           
 
Field Summary
protected  Task acceptTask
           
protected  OpenedSocket openedSocketItf
           
 
Fields inherited from class org.objectweb.dream.AbstractComponent
bindingLogger, componentDesc, fcState, firstStart, lifeCycleLogger, logger, weaveableC
 
Fields inherited from interface org.objectweb.fractal.api.control.LifeCycleController
STARTED, STOPPED
 
Constructor Summary
AbstractAcceptSocketImpl()
           
 
Method Summary
protected abstract  SocketState acceptSocket()
          Abstract method that return a newly accepted socket.
protected  void beforeFirstStart(Component componentItf)
           
 void bindFc(String clientItfName, Object serverItf)
           
 String[] listFc()
           
 
Methods inherited from class org.objectweb.dream.AbstractComponent
getFcState, initComponent, lookupFc, setLogger, startFc, stopFc, unbindFc
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

acceptTask

protected Task acceptTask

openedSocketItf

protected OpenedSocket openedSocketItf
Constructor Detail

AbstractAcceptSocketImpl

public AbstractAcceptSocketImpl()
Method Detail

acceptSocket

protected abstract SocketState acceptSocket()
                                     throws IOException
Abstract method that return a newly accepted socket.

Throws:
IOException

beforeFirstStart

protected void beforeFirstStart(Component componentItf)
                         throws IllegalLifeCycleException
Throws:
IllegalLifeCycleException
See Also:
AbstractComponent.beforeFirstStart(org.objectweb.fractal.api.Component)

listFc

public String[] listFc()
See Also:
BindingController.listFc()

bindFc

public void bindFc(String clientItfName,
                   Object serverItf)
            throws NoSuchInterfaceException,
                   IllegalBindingException,
                   IllegalLifeCycleException
Throws:
NoSuchInterfaceException
IllegalBindingException
IllegalLifeCycleException
See Also:
BindingController.bindFc(String, Object)


Copyright © 2003, 2004 - INRIA Rhone-Alpes - All Rights Reserved.