com.ericsson.tic.vi
Class KeepAlive

java.lang.Object
  extended by java.util.TimerTask
      extended by com.ericsson.tic.vi.KeepAlive
All Implemented Interfaces:
Runnable

public class KeepAlive
extends TimerTask

KeepAlive periodically sends a message to the master system to let it know that the VI is up and running and ready to recieve messages from the master system. When the master system stops recieving messages, it will stop sending data. This was added in order to cut out excess traffic on the network.

Author:
Stefan Hellkvist

Field Summary
(package private) static int DELAY
           
private  int localPort
           
(package private)  InetAddress serverAddress
           
private  int serverPort
           
 
Constructor Summary
KeepAlive(int localPort, String serverAddress, int serverPort)
           
 
Method Summary
 void run()
           
 
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DELAY

static final int DELAY
See Also:
Constant Field Values

serverPort

private int serverPort

localPort

private int localPort

serverAddress

InetAddress serverAddress
Constructor Detail

KeepAlive

public KeepAlive(int localPort,
                 String serverAddress,
                 int serverPort)
          throws UnknownHostException
Throws:
UnknownHostException
Method Detail

run

public void run()
Specified by:
run in interface Runnable
Specified by:
run in class TimerTask