Package protocols.apps.canvas.timers
Class ControlTimer
java.lang.Object
pt.unl.fct.di.novasys.babel.generic.ProtoTimer
protocols.apps.canvas.timers.ControlTimer
- All Implemented Interfaces:
Cloneable
public class ControlTimer
extends pt.unl.fct.di.novasys.babel.generic.ProtoTimer
Polls the shared control file in orchestrator-coordinated workload mode (see
CanvasApp.uponControlTimer). The experiment script lets the whole system join
and settle, then writes RUN to begin the paint workload on every node at once,
and later STOP to cease — so painting starts only once ALL nodes are present
(a node's own view being stable is not enough; late joiners would miss its early ops).
Set up with setupPeriodicTimer(...) when canvas.workload.controlFile is
configured; otherwise the node uses the legacy single start-delay timer.
Stateless, so clone() returns this — the Babel convention.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class pt.unl.fct.di.novasys.babel.generic.ProtoTimer
getId
-
Field Details
-
TIMER_ID
public static final short TIMER_ID- See Also:
-
-
Constructor Details
-
ControlTimer
public ControlTimer()
-
-
Method Details
-
clone
public pt.unl.fct.di.novasys.babel.generic.ProtoTimer clone()- Specified by:
clonein classpt.unl.fct.di.novasys.babel.generic.ProtoTimer
-