org.objectweb.dream.aggregator
Class PullPullAggregatorFixedNumberImpl
java.lang.Object
org.objectweb.dream.AbstractComponent
org.objectweb.dream.aggregator.PullPullAggregatorFixedNumberImpl
- All Implemented Interfaces:
- PullPullAggregatorFixedNumberAttributeController, ContextualBindingController, NeedAsyncStartController, PrepareStopLifeCycleController, Loggable, Pull, AttributeController, BindingController, LifeCycleController
public class PullPullAggregatorFixedNumberImpl
- extends AbstractComponent
- implements Pull, PullPullAggregatorFixedNumberAttributeController
This aggregator aggregates a fixed number of messages. These messages are
collected on its Pull input. The number of messages to be aggregated is set
using the PullPullAggregatorFixedNumberAttributeController
interface.
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 |
messageManagerItf
protected MessageManager messageManagerItf
- the message manager client interface of this component
PullPullAggregatorFixedNumberImpl
public PullPullAggregatorFixedNumberImpl()
pull
public Message pull()
throws PullException
- Specified by:
pull
in interface Pull
- Throws:
PullException
- See Also:
Pull.pull()
getNbMessagesToAggregate
public int getNbMessagesToAggregate()
- Description copied from interface:
PullPullAggregatorFixedNumberAttributeController
- Returns the number of messages that must be aggregated.
- Specified by:
getNbMessagesToAggregate
in interface PullPullAggregatorFixedNumberAttributeController
- Returns:
- the number of messages that must be aggregated.
- See Also:
PullPullAggregatorFixedNumberAttributeController.getNbMessagesToAggregate()
setNbMessagesToAggregate
public void setNbMessagesToAggregate(int nb)
- Description copied from interface:
PullPullAggregatorFixedNumberAttributeController
- Sets the number of messages that must be aggregated.
- Specified by:
setNbMessagesToAggregate
in interface PullPullAggregatorFixedNumberAttributeController
- Parameters:
nb
- the number to be set.- See Also:
PullPullAggregatorFixedNumberAttributeController.setNbMessagesToAggregate(int)
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.