public class BeaconEmitter extends Object implements Timer.TimerRunnable
| Modifier and Type | Field and Description |
|---|---|
protected int |
beaconPeriod
Beacon period (in ms).
|
protected int |
beaconSequenceID
Beacon sequence ID.
|
protected static float |
EPICS_CA_MAX_BEACON_PERIOD
Maximal CA beacon period (in seconds).
|
protected static float |
EPICS_CA_MIN_BEACON_PERIOD
Minimal (initial) CA beacon period (in seconds).
|
protected Logger |
logger
Logger.
|
protected int |
maxBeaconPeriod
Maximal beacon period (in ms).
|
protected Timer |
timer
Timer.
|
protected BroadcastTransport |
transport
Broadcast (UDP) transport.
|
| Constructor and Description |
|---|
BeaconEmitter(BroadcastTransport transport,
CAContext context,
float beaconPeriod)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroy emitter.
|
protected void |
reschedule()
Reschedule timer.
|
protected void |
start()
Start emitting.
|
void |
timeout(long timeToRun)
Method invoked by timer at requested time.
|
protected static final float EPICS_CA_MAX_BEACON_PERIOD
protected static final float EPICS_CA_MIN_BEACON_PERIOD
protected Timer timer
protected Logger logger
protected BroadcastTransport transport
protected int beaconSequenceID
protected int beaconPeriod
protected int maxBeaconPeriod
public BeaconEmitter(BroadcastTransport transport, CAContext context, float beaconPeriod)
transport - transport to be used to send beacons.context - CA context.beaconPeriod - configured (max) beacon period.protected void start()
protected void reschedule()
public void timeout(long timeToRun)
Timer.TimerRunnabletimeout in interface Timer.TimerRunnabletimeToRun - time in ms to run.Timer.TimerRunnable.timeout(long)public void destroy()
Copyright © 2004-2020 EPICS. All Rights Reserved.