org.jgroups.protocols
Class WANPIPE
public
class
WANPIPE
extends Protocol
implements LogicalLink.Receiver
Logical point-to-point link. Uses multiple physical links to provide a reliable transport. For example,
if there are 2 physical links over different networks, and one of them fails, the WAN pipe will still be
able to send traffic over the other link. Currently traffic is sent over the physical links round-robin,
but this will be made configurable in the future. Example: 70% over first link, 30% over second, or
packets are split and sent across both links (increasing the available bandwidth).
Method Summary |
void | down(Event evt)
Sent to destination(s) using the WAN pipe. |
String | getName() |
void | linkDown(InetAddress local, int local_port, InetAddress remote, int remote_port) |
void | linkUp(InetAddress local, int local_port, InetAddress remote, int remote_port) |
void | missedHeartbeat(InetAddress local, int local_port, InetAddress remote, int remote_port, int num_hbs) |
void | receive(byte[] buf) |
void | receivedHeartbeatAgain(InetAddress local, int local_port, InetAddress remote, int remote_port) |
boolean | setProperties(Properties props) Setup the Protocol instance acording to the configuration string |
void | start() |
void | stop() |
String | toString() |
public WANPIPE()
public void down(
Event evt)
Sent to destination(s) using the WAN pipe. Send local messages directly back up the stack
public String getName()
public void linkDown(InetAddress local, int local_port, InetAddress remote, int remote_port)
public void linkUp(InetAddress local, int local_port, InetAddress remote, int remote_port)
public void missedHeartbeat(InetAddress local, int local_port, InetAddress remote, int remote_port, int num_hbs)
public void receive(byte[] buf)
public void receivedHeartbeatAgain(InetAddress local, int local_port, InetAddress remote, int remote_port)
public boolean setProperties(Properties props)
Setup the Protocol instance acording to the configuration string
public void start()
public void stop()
public String toString()
Copyright ? 1998-2005 Bela Ban. All Rights Reserved.