org.objectweb.dream.serializator
Class PushPushSerializatorImpl

java.lang.Object
  extended by org.objectweb.dream.AbstractComponent
      extended by org.objectweb.dream.serializator.PushPushSerializatorImpl
All Implemented Interfaces:
ContextualBindingController, NeedAsyncStartController, PrepareStopLifeCycleController, Loggable, Push, PushPushSerializatorAttributeController, AttributeController, BindingController, LifeCycleController

public class PushPushSerializatorImpl
extends AbstractComponent
implements PushPushSerializatorAttributeController, Push

This component serializes messages it receives on its input and send them on its output. Serialized messages are messages that contain a ByteArrayChunk chunk. This chunk is registered under its default name.

It is possible to specify the name of a chunk that must not been serialized (it is added into the outgoing message).


Field Summary
protected  MessageManager messageManagerItf
           
protected  Push outPushItf
           
protected  Serializator serializatorItf
           
protected  String toBeRemovedChunkName
           
 
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.fractal.api.control.LifeCycleController
STARTED, STOPPED
 
Constructor Summary
PushPushSerializatorImpl()
           
 
Method Summary
 void bindFc(String clientItfName, Object serverItf)
           
 String getToBeRemovedChunkName()
          Returns the name of the chunk that is not serialized.
 String[] listFc()
           
 void push(Message message)
           
 void setToBeRemovedChunkName(String toBeRemovedChunkName)
          Returns the name of the chunk that must not been serialized.
 
Methods inherited from class org.objectweb.dream.AbstractComponent
beforeFirstStart, bindFc, getFcNeedAsyncStart, getFcState, initComponent, lookupFc, prepareStopFc, setLogger, startFc, stopFc, unbindFc
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serializatorItf

protected Serializator serializatorItf

messageManagerItf

protected MessageManager messageManagerItf

outPushItf

protected Push outPushItf

toBeRemovedChunkName

protected String toBeRemovedChunkName
Constructor Detail

PushPushSerializatorImpl

public PushPushSerializatorImpl()
Method Detail

push

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

getToBeRemovedChunkName

public String getToBeRemovedChunkName()
Description copied from interface: PushPushSerializatorAttributeController
Returns the name of the chunk that is not serialized. This chunk is simply added into the outgoing message.

Specified by:
getToBeRemovedChunkName in interface PushPushSerializatorAttributeController
Returns:
the name of the chunk that is not serialized.
See Also:
PushPushSerializatorAttributeController.getToBeRemovedChunkName()

setToBeRemovedChunkName

public void setToBeRemovedChunkName(String toBeRemovedChunkName)
Description copied from interface: PushPushSerializatorAttributeController
Returns the name of the chunk that must not been serialized. This chunk will simply be added into the outgoing message.

Specified by:
setToBeRemovedChunkName in interface PushPushSerializatorAttributeController
Parameters:
toBeRemovedChunkName - the name of the chunk that must not been serialized.
See Also:
PushPushSerializatorAttributeController.setToBeRemovedChunkName(String)

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)

listFc

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


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