org.objectweb.dream.channel
Class ChannelInOutImpl

java.lang.Object
  extended by org.objectweb.dream.AbstractComponent
      extended by org.objectweb.dream.channel.ChannelInOutImpl
All Implemented Interfaces:
ChannelInAttributeController, ChannelInExportId, ContextualBindingController, NeedAsyncStartController, PrepareStopLifeCycleController, Loggable, IncomingPush, Push, AttributeController, BindingController, LifeCycleController

public class ChannelInOutImpl
extends AbstractComponent
implements Push, IncomingPush, ChannelInExportId, ChannelInAttributeController

ChannelIn implementation.


Field Summary
 
Fields inherited from class org.objectweb.dream.AbstractComponent
bindingLogger, fcNeedAsyncStart, fcState, lifeCycleLogger, logger, weaveableC
 
Fields inherited from interface org.objectweb.dream.Push
IN_PUSH_ITF_NAME, INCOMING_IN_PUSH_ITF_NAME, INCOMING_OUT_PUSH_ITF_NAME, OUT_PUSH_ITF_NAME, OUTGOING_IN_PUSH_ITF_NAME, OUTGOING_OUT_PUSH_ITF_NAME
 
Fields inherited from interface org.objectweb.dream.channel.ChannelInExportId
ITF_NAME
 
Fields inherited from interface org.objectweb.fractal.api.control.LifeCycleController
STARTED, STOPPED
 
Constructor Summary
ChannelInOutImpl()
          Default constructor.
 
Method Summary
 void bindFc(String clientItfName, Object serverItf)
           
 ExportIdentifier getExportIdentifier()
          Returns the ExportIdentifier that identify the ChannelIn.
 String getFromChunkName()
          Returns the value of the fromChunkName attribute.
 void incomingClosed(Object outgoingPush, Exception exception)
          Notifies the session, this interface belong, that the lower session accessible through the given interface has been unexpectedly closed.
 void incomingPush(Message message)
          Gives an incoming message to a protocol.
 String[] listFc()
           
 void push(Message message)
           
 void setFromChunkName(String fromChunkName)
          Sets the name of the chunk that should be added in every received messages.
 void startFc()
           
 
Methods inherited from class org.objectweb.dream.AbstractComponent
beforeFirstStart, bindFc, getFcNeedAsyncStart, getFcState, initComponent, lookupFc, prepareStopFc, setLogger, stopFc, unbindFc
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChannelInOutImpl

public ChannelInOutImpl()
Default constructor.

Method Detail

push

public void push(Message message)
          throws PushException
Specified by:
push in interface Push
Throws:
PushException
See Also:
Push.push(Message)

incomingPush

public void incomingPush(Message message)
                  throws PushException
Description copied from interface: IncomingPush
Gives an incoming message to a protocol.

Specified by:
incomingPush in interface IncomingPush
Parameters:
message - the message to give to the component.
Throws:
PushException - if an exception occurs.
See Also:
IncomingPush.incomingPush(Message)

incomingClosed

public void incomingClosed(Object outgoingPush,
                           Exception exception)
Description copied from interface: IncomingPush
Notifies the session, this interface belong, that the lower session accessible through the given interface has been unexpectedly closed.

Specified by:
incomingClosed in interface IncomingPush
Parameters:
outgoingPush - the interface provided by the closed session.
exception - the exception that forced the session to close. May be null.
See Also:
IncomingPush.incomingClosed(Object, Exception)

getExportIdentifier

public ExportIdentifier getExportIdentifier()
Description copied from interface: ChannelInExportId
Returns the ExportIdentifier that identify the ChannelIn.

Specified by:
getExportIdentifier in interface ChannelInExportId
Returns:
the ExportIdentifier that identify the ChannelIn.
See Also:
ChannelInExportId.getExportIdentifier()

startFc

public void startFc()
             throws IllegalLifeCycleException
Specified by:
startFc in interface LifeCycleController
Overrides:
startFc in class AbstractComponent
Throws:
IllegalLifeCycleException
See Also:
AbstractComponent.startFc()

getFromChunkName

public String getFromChunkName()
Description copied from interface: ChannelInAttributeController
Returns the value of the fromChunkName attribute.

Specified by:
getFromChunkName in interface ChannelInAttributeController
Returns:
the value of the fromChunkName attribute.
See Also:
ChannelInAttributeController.getFromChunkName()

setFromChunkName

public void setFromChunkName(String fromChunkName)
Description copied from interface: ChannelInAttributeController
Sets the name of the chunk that should be added in every received messages. If null or equals to "null", no chunk will be added.

Specified by:
setFromChunkName in interface ChannelInAttributeController
Parameters:
fromChunkName - the new value of the fromChunkName attribute.
See Also:
ChannelInAttributeController.setFromChunkName(String)

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
Overrides:
bindFc in class AbstractComponent
Throws:
NoSuchInterfaceException
IllegalBindingException
IllegalLifeCycleException
See Also:
BindingController.bindFc(String, Object)


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