it.unina.traffic
Class TCPServerLinkWeightsSender
java.lang.Object
it.unina.traffic.TCPServerLinkWeightsSender
- All Implemented Interfaces:
- LinkWeightsSender
public class TCPServerLinkWeightsSender
- extends java.lang.Object
- implements LinkWeightsSender
Sends link weights to a server through a TCP socket on port 9500.
node interfaces sould be defined and should contains IP address
Link weights are send in the format:
if_IP_address:weight[ if_IP_address:weight]*
Creation date: 19 jun. 2006
- Author:
- Gaƫl Monfort (monfort@run.montefiore.ulg.ac.be)
Method Summary |
void |
sendLinkWeights()
This method sends the link weight the the hosts of the domain. |
void |
stop()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_PORT
public static final int DEFAULT_PORT
- See Also:
- Constant Field Values
DEFAULT_SERVER
public static final java.lang.String DEFAULT_SERVER
- See Also:
- Constant Field Values
TCPServerLinkWeightsSender
public TCPServerLinkWeightsSender(Domain domain,
java.lang.String server)
throws java.io.IOException
- Throws:
java.io.IOException
TCPServerLinkWeightsSender
public TCPServerLinkWeightsSender(Domain domain,
Writer writer,
java.lang.String server,
int port)
throws java.io.IOException
- Throws:
java.io.IOException
sendLinkWeights
public void sendLinkWeights()
- This method sends the link weight the the hosts of the domain.
It doesn't throw exception but log messages about which hosts cause errors.
- Specified by:
sendLinkWeights
in interface LinkWeightsSender
stop
public void stop()
- Specified by:
stop
in interface LinkWeightsSender
Copyright © 2004-2007 Research Unit in Networking, All Rights Reserved.