com.ericsson.tic.vi
Class KeepAlive
java.lang.Object
java.util.TimerTask
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
|
Constructor Summary |
KeepAlive(int localPort,
String serverAddress,
int serverPort)
|
|
Method Summary |
void |
run()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DELAY
static final int DELAY
- See Also:
- Constant Field Values
serverPort
private int serverPort
localPort
private int localPort
serverAddress
InetAddress serverAddress
KeepAlive
public KeepAlive(int localPort,
String serverAddress,
int serverPort)
throws UnknownHostException
- Throws:
UnknownHostException
run
public void run()
- Specified by:
run in interface Runnable- Specified by:
run in class TimerTask