org.objectweb.dream.pump
Class PumpPeriodicSynchronizedImpl
java.lang.Object
org.objectweb.dream.AbstractComponent
org.objectweb.dream.pump.PumpSynchronizedImpl
org.objectweb.dream.pump.PumpPeriodicSynchronizedImpl
- All Implemented Interfaces:
- ActiveComponentAttributeController, AttributeController, BindingController, LifeCycleController, Loggable, PumpAttributeController, PumpPeriodicAttributeController
- public class PumpPeriodicSynchronizedImpl
- extends PumpSynchronizedImpl
- implements PumpPeriodicAttributeController
Extention of the basic pump that use a period T
(in ms). More
precisely, every T ms, a message is pulled on the input and is then pushed on
the output. If these two actions (pull then push) are longer than T ms, an
other message is pulled immediately.
Method Summary |
long |
getPeriod()
Returns the pump period. |
void |
setPeriod(long period)
Sets the pump period. |
Methods inherited from class org.objectweb.dream.pump.PumpSynchronizedImpl |
beforeFirstStart, bindFc, getInitialCapacity, getInitialNumberOfThreads, getPushNullPolicy, getUsePool, listFc, setInitialCapacity, setInitialNumberOfThreads, setPushNullPolicy, setUsePool, startFc |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PERIOD_INIT_PARAM_NAME
public static final String PERIOD_INIT_PARAM_NAME
- The initialization parameter that can be passed to this component to
specify the pump's period.
- See Also:
- Constant Field Values
period
protected long period
PumpPeriodicSynchronizedImpl
public PumpPeriodicSynchronizedImpl()
- Default constructor
getPeriod
public long getPeriod()
- Description copied from interface:
PumpPeriodicAttributeController
- Returns the pump period.
- Specified by:
getPeriod
in interface PumpPeriodicAttributeController
- Returns:
- the pump period.
- See Also:
PumpPeriodicAttributeController.getPeriod()
setPeriod
public void setPeriod(long period)
- Description copied from interface:
PumpPeriodicAttributeController
- Sets the pump period.
- Specified by:
setPeriod
in interface PumpPeriodicAttributeController
- Parameters:
period
- the pump period.- See Also:
PumpPeriodicAttributeController.setPeriod(long)
Copyright © 2003, 2004 - INRIA Rhone-Alpes - All Rights Reserved.