|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cosylab.epics.caj.cas.BeaconEmitter
public class BeaconEmitter
Beacon emitter.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
BeaconEmitter(BroadcastTransport transport,
CAContext context,
float beaconPeriod)
Constructor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public BeaconEmitter(BroadcastTransport transport,
CAContext context,
float beaconPeriod)
transport - transport to be used to send beacons.context - CA context.beaconPeriod - configured (max) beacon period.| Method Detail |
|---|
protected void start()
protected void reschedule()
public void timeout(long timeToRun)
Timer.TimerRunnable
timeout in interface Timer.TimerRunnabletimeToRun - time in ms to run.Timer.TimerRunnable.timeout(long)public void destroy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||