org.objectweb.dream.channel
Class DestinationResolverChunkBasedImpl

java.lang.Object
  extended by org.objectweb.dream.AbstractComponent
      extended by org.objectweb.dream.channel.DestinationResolverChunkBasedImpl
All Implemented Interfaces:
DestinationResolver, DestinationResolverChunkBasedAttributeController, ContextualBindingController, NeedAsyncStartController, PrepareStopLifeCycleController, Loggable, AttributeController, BindingController, LifeCycleController

public class DestinationResolverChunkBasedImpl
extends AbstractComponent
implements DestinationResolver, DestinationResolverChunkBasedAttributeController

Destination resolver that retrieves ExportIdentifier if a ExportIdentifierChunk contained in the message.


Field Summary
protected  boolean deleteChunk
           
protected  String destinationChunkName
           
protected  MessageManager messageManagerItf
           
 
Fields inherited from class org.objectweb.dream.AbstractComponent
bindingLogger, fcNeedAsyncStart, fcState, lifeCycleLogger, logger, weaveableC
 
Fields inherited from interface org.objectweb.dream.channel.DestinationResolver
ITF_NAME
 
Fields inherited from interface org.objectweb.fractal.api.control.LifeCycleController
STARTED, STOPPED
 
Constructor Summary
DestinationResolverChunkBasedImpl()
           
 
Method Summary
 void bindFc(String clientItfName, Object serverItf)
           
 boolean getDeleteChunk()
          Returns true if the destination chunk must be deleted from the message.
 String getDestinationChunkName()
          Returns the name of the chunks that contains the destination identification of the message.
 String[] listFc()
           
 ExportIdentifier resolveDestination(Message message)
          Return the ExportIdentifier which identifies the destination of the given message.
 void setDeleteChunk(boolean deleteChunk)
          Set if the destination chunk must be deleted from the message.
 void setDestinationChunkName(String destinationChunkName)
          Set the name of the chunks that contains the destination identification of the message.
 
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

deleteChunk

protected boolean deleteChunk

destinationChunkName

protected String destinationChunkName

messageManagerItf

protected MessageManager messageManagerItf
Constructor Detail

DestinationResolverChunkBasedImpl

public DestinationResolverChunkBasedImpl()
Method Detail

resolveDestination

public ExportIdentifier resolveDestination(Message message)
                                    throws PushException
Description copied from interface: DestinationResolver
Return the ExportIdentifier which identifies the destination of the given message.

Specified by:
resolveDestination in interface DestinationResolver
Parameters:
message - a message.
Returns:
the destination identifier of the message.
Throws:
PushException - if something goes wrong.
See Also:
DestinationResolver.resolveDestination(Message)

getDeleteChunk

public boolean getDeleteChunk()
Description copied from interface: DestinationResolverChunkBasedAttributeController
Returns true if the destination chunk must be deleted from the message. The default value is true

Specified by:
getDeleteChunk in interface DestinationResolverChunkBasedAttributeController
Returns:
true if the destination chunk must be deleted from the message.
See Also:
DestinationResolverChunkBasedAttributeController.getDeleteChunk()

setDeleteChunk

public void setDeleteChunk(boolean deleteChunk)
Description copied from interface: DestinationResolverChunkBasedAttributeController
Set if the destination chunk must be deleted from the message.

Specified by:
setDeleteChunk in interface DestinationResolverChunkBasedAttributeController
Parameters:
deleteChunk - true if the destination chunk must be deleted from the message.
See Also:
DestinationResolverChunkBasedAttributeController.setDeleteChunk(boolean)

getDestinationChunkName

public String getDestinationChunkName()
Description copied from interface: DestinationResolverChunkBasedAttributeController
Returns the name of the chunks that contains the destination identification of the message.

Specified by:
getDestinationChunkName in interface DestinationResolverChunkBasedAttributeController
Returns:
a chunk name.
See Also:
DestinationResolverChunkBasedAttributeController.getDestinationChunkName()

setDestinationChunkName

public void setDestinationChunkName(String destinationChunkName)
Description copied from interface: DestinationResolverChunkBasedAttributeController
Set the name of the chunks that contains the destination identification of the message.

Specified by:
setDestinationChunkName in interface DestinationResolverChunkBasedAttributeController
Parameters:
destinationChunkName - a chunk name.
See Also:
DestinationResolverChunkBasedAttributeController.setDestinationChunkName(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.