
public class Module extends Observable implements HasLifecycle, ConfigurationBulkChangeHandler, Observer, Configurable, SignalHandler, HasAgentPeriodicTasks
notes: module driver, sends to functionnal modules such as calibration iquestion: how are the module sindependants have a look at sampler ....
| Modifier and Type | Class and Description |
|---|---|
class |
Module.ValueUpdate |
Configurable.Environment| Modifier and Type | Field and Description |
|---|---|
protected String |
name
Deprecated.
the name of this component can be accessed via
getName()
Use your own field if you wish to assign it. |
protected int |
nObserverThreads |
protected int |
tickMillis
Deprecated.
|
| Constructor and Description |
|---|
Module() |
Module(int tickMillis)
Deprecated.
|
Module(String name)
Deprecated.
the name can be accessed via
getName() |
Module(String name,
int tickMillis)
Deprecated.
the name can be accessed via
getName() |
| Modifier and Type | Method and Description |
|---|---|
List<AgentPeriodicTask> |
getAgentPeriodicTasks()
Get the list of the AgentPeriodicTasks to be executed by the framework.
|
int |
getNObserverThreads()
Deprecated.
it does not provide any useful information
|
List<Observable> |
getObservables()
Returns the list of Observable this module is observing.
|
int |
getTickMillis()
Deprecated.
|
void |
init()
Called from the enclosing
Subsystem at construction
phase. |
void |
initModule()
Deprecated.
use init method of HasLifeCycle instead.
|
void |
listens(Observable... observs)
Adds a list of observables for this module.
|
void |
processUpdate(Observable source,
Module.ValueUpdate update)
This method should be overriden to handle change to properties of watched
modules
|
void |
setNObserverThreads(int observerThreads)
Deprecated.
|
void |
setObservables(List<Observable> l)
Adds a list of observables for this module.
|
void |
setTickMillis(int tickMillis)
Deprecated.
invoke
setTaskPeriodMillis on the task instead. |
void |
shutdownNow()
added for tying to unstuck ExcecutorService.
|
void |
startTicking()
Deprecated.
this is not needed anymore.
|
void |
tick()
Deprecated.
use the HasPeriodicTask interface instead and make sure this
method has an empty implementation.
|
void |
update(Observable o,
Object arg)
Synchronous update.
|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchange, dropSubmittedChanges, getChildren, getComponentByName, getEnvironment, getParent, getParentObject, getSubmittedChanges, isParameterConfigurable, printConfigurableParameters, setBulkParameter, submitChange, submitChanges, validateBulkChangesetParameterBulkpostInit, postStart, startsendSignal, sendSignalWithTimeLimit, signalgetComponentConfigurationEnvironment, getComponentLookup, getName, getSubsystem@Deprecated protected String name
getName()
Use your own field if you wish to assign it.protected int nObserverThreads
@Deprecated @ConfigurationParameter protected int tickMillis
public Module()
@Deprecated public Module(int tickMillis)
tickMillis - @Deprecated public Module(String name, int tickMillis)
getName()name - tickMillis - @Deprecated public Module(String name)
getName()name - public void setObservables(List<Observable> l)
l - the list of Observable to addpublic void listens(Observable... observs)
observs - one or more Observable to addpublic List<Observable> getObservables()
@Deprecated @ConfigurationParameterChanger(propertyName="tickMillis") public void setTickMillis(int tickMillis)
setTaskPeriodMillis on the task instead.if called before startup this method just fix the tick frequency (the module wil later "tick" at this rate) .
if called after startup then will change the ticking rate
in that case the ticking will change but new rate will be effective after
a delay of "old rate"
tickMillis - @Deprecated public int getTickMillis()
@Deprecated public void setNObserverThreads(int observerThreads)
observerThreads - @Deprecated public int getNObserverThreads()
public final void init()
HasLifecycleSubsystem at construction
phase. This method is called before the children components of this
object have their init method called.
At the time it is called, connection to the messaging layer is not yet
done, so there should be no attempt to send messages in the body of
this method. Configuration for message listening can nevertheless be
done here, such as adding MessageListener
objects.
It is unnecessary to call super.init()
init in interface HasLifecycle@Deprecated public void initModule()
@Deprecated public final void startTicking()
public void update(Observable o, Object arg)
public void processUpdate(Observable source, Module.ValueUpdate update)
source - the moduleupdate - the update message, containing property name and new value@Deprecated public void tick()
public List<AgentPeriodicTask> getAgentPeriodicTasks()
HasAgentPeriodicTasksgetAgentPeriodicTasks in interface HasAgentPeriodicTaskspublic void shutdownNow()
shutdownNow in interface HasLifecycleCopyright © 2017 LSST. All rights reserved.