org.jgroups.protocols
Class TUNNEL
- Runnable
public class TUNNEL
implements Runnable
Replacement for UDP. Instead of sending packets via UDP, a TCP connection is opened to a Router
(using the RouterStub client-side stub),
the IP address/port of which was given using channel properties
router_host
and
router_port
. All outgoing traffic is sent via this TCP socket to the Router which
distributes it to all connected TUNNELs in this group. Incoming traffic received from Router will
simply be passed up the stack.
A TUNNEL layer can be used to penetrate a firewall, most firewalls allow creating TCP connections
to the outside world, however, they do not permit outside hosts to initiate a TCP connection to a host
inside the firewall. Therefore, the connection created by the inside host is reused by Router to
send traffic from an outside host to a host inside the firewall.
down_handler , down_prot , down_queue , down_thread , down_thread_prio , log , observer , props , stack , up_handler , up_prot , up_queue , up_thread , up_thread_prio |
destroy , down , getDownProtocol , getDownQueue , getName , getProperties , getUpProtocol , getUpQueue , handleSpecialDownEvent , init , passDown , passUp , providedDownServices , providedUpServices , receiveDownEvent , receiveUpEvent , requiredDownServices , requiredUpServices , setDownProtocol , setObserver , setProperties , setPropertiesInternal , setProtocolStack , setUpProtocol , start , startDownHandler , startUpHandler , stop , stopInternal , up |
down
public void down(Event evt)
Caller by the layer above this layer. We just pass it on to the router.
- down in interface Protocol
handleIncomingMessage
public void handleIncomingMessage(Message msg)
setProperties
public boolean setProperties(Properties props)
Setup the Protocol instance acording to the configuration string
- setProperties in interface Protocol
start
public void start()
throws Exception
- start in interface Protocol
toString
public String toString()
Copyright B) 2001,2002 www.jgroups.com . All Rights Reserved.