Class RouterStub

java.lang.Object
org.jgroups.stack.RouterStub

public class RouterStub extends Object
Client stub that talks to a remote GossipRouter
Author:
Bela Ban
  • Constructor Details

  • Method Details

    • setReceiver

      public void setReceiver(TUNNEL.StubReceiver receiver)
    • getReceiver

      public TUNNEL.StubReceiver getReceiver()
    • isTcpNoDelay

      public boolean isTcpNoDelay()
    • setTcpNoDelay

      public void setTcpNoDelay(boolean tcp_nodelay)
    • interrupt

      public void interrupt()
    • join

      public void join(long wait) throws InterruptedException
      Throws:
      InterruptedException
    • getSocketConnectionTimeout

      public int getSocketConnectionTimeout()
    • setSocketConnectionTimeout

      public void setSocketConnectionTimeout(int sock_conn_timeout)
    • getSocketReadTimeout

      public int getSocketReadTimeout()
    • setSocketReadTimeout

      public void setSocketReadTimeout(int sock_read_timeout)
    • isConnected

      public boolean isConnected()
    • getConnectionStatus

      public RouterStub.ConnectionStatus getConnectionStatus()
    • connect

      public void connect(String group, Address addr, String logical_name, List<PhysicalAddress> phys_addrs) throws Exception
      Register this process with the router under group.
      Parameters:
      group - The name of the group under which to register
      Throws:
      Exception
    • doConnect

      public void doConnect() throws Exception
      Throws:
      Exception
    • checkConnection

      public void checkConnection()
      Checks whether the connection is open
    • disconnect

      public void disconnect(String group, Address addr)
    • destroy

      public void destroy()
    • getSocket

      public Socket getSocket()
    • getMembers

      public List<PingData> getMembers(String group) throws Exception
      Throws:
      Exception
    • getGossipRouterAddress

      public InetSocketAddress getGossipRouterAddress()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • sendToAllMembers

      public void sendToAllMembers(String group, byte[] data, int offset, int length) throws Exception
      Throws:
      Exception
    • sendToMember

      public void sendToMember(String group, Address dest, byte[] data, int offset, int length) throws Exception
      Throws:
      Exception
    • getInputStream

      public DataInputStream getInputStream()