org.objectweb.dream.channel
Class OpenedSocketManagerMonoPersistentImpl

java.lang.Object
  extended byorg.objectweb.dream.AbstractComponent
      extended byorg.objectweb.dream.channel.OpenedSocketManagerMonoPersistentImpl
All Implemented Interfaces:
BindingController, LifeCycleController, Loggable, OpenedSocket

public class OpenedSocketManagerMonoPersistentImpl
extends AbstractComponent
implements OpenedSocket

A opened socket manager for persistent mono connection Channel. This component forward the same opened socket until it is closed.


Field Summary
protected  OpenedSocket delegateOpenedSocketItf
           
 
Fields inherited from class org.objectweb.dream.AbstractComponent
bindingLogger, componentDesc, fcState, firstStart, lifeCycleLogger, logger, weaveableC
 
Fields inherited from interface org.objectweb.dream.channel.OpenedSocket
ITF_NAME
 
Fields inherited from interface org.objectweb.fractal.api.control.LifeCycleController
STARTED, STOPPED
 
Constructor Summary
OpenedSocketManagerMonoPersistentImpl()
           
 
Method Summary
 void bindFc(String clientItfName, Object serverItf)
           
 String[] listFc()
           
 void openedSocket(SocketState socket)
          Gives an opened socket.
 
Methods inherited from class org.objectweb.dream.AbstractComponent
beforeFirstStart, 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

delegateOpenedSocketItf

protected OpenedSocket delegateOpenedSocketItf
Constructor Detail

OpenedSocketManagerMonoPersistentImpl

public OpenedSocketManagerMonoPersistentImpl()
Method Detail

openedSocket

public void openedSocket(SocketState socket)
                  throws IOException,
                         InterruptedException
Description copied from interface: OpenedSocket
Gives an opened socket.

Specified by:
openedSocket in interface OpenedSocket
Parameters:
socket - a socket state
Throws:
IOException - if an IO error occurs.
InterruptedException - if the execution of the method has been interrupted.
See Also:
OpenedSocket.openedSocket(SocketState)

listFc

public String[] listFc()
Specified by:
listFc in interface BindingController
See Also:
BindingController.listFc()

bindFc

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


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