com.cosylab.epics.caj.impl
Class RepeaterRegistrationTask

java.lang.Object
  extended by com.cosylab.epics.caj.impl.RepeaterRegistrationTask
All Implemented Interfaces:
Timer.TimerRunnable

public class RepeaterRegistrationTask
extends Object
implements Timer.TimerRunnable

Repeater registration tasks. Periodically issues reppeater registration requests until registration is not confirmed.

Version:
$id$
Author:
Matej Sekoranja

Constructor Summary
RepeaterRegistrationTask(CAJContext context, InetSocketAddress repeaterAddress)
           
 
Method Summary
 void registrationRequest()
          Issue registration request to repeater.
 void runInBackground(int period)
          Schedules registration requests every period ms.
 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
 

Constructor Detail

RepeaterRegistrationTask

public RepeaterRegistrationTask(CAJContext context,
                                InetSocketAddress repeaterAddress)
                         throws UnknownHostException
Parameters:
context -
repeaterAddress -
Throws:
UnknownHostException
Method Detail

timeout

public void timeout(long timeToRun)
Description copied from interface: Timer.TimerRunnable
Method invoked by timer at requested time.

Specified by:
timeout in interface Timer.TimerRunnable
Parameters:
timeToRun - time in ms to run.
See Also:
Timer.TimerRunnable.timeout(long)

runInBackground

public void runInBackground(int period)
Schedules registration requests every period ms.

Parameters:
period - period in ms.

registrationRequest

public void registrationRequest()
Issue registration request to repeater.



Copyright © 2004-2013 Cosylab. All Rights Reserved.