Class OortMulticastConfigurer

java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.cometd.oort.OortMulticastConfigurer
All Implemented Interfaces:
org.eclipse.jetty.util.component.LifeCycle

public class OortMulticastConfigurer extends org.eclipse.jetty.util.component.AbstractLifeCycle
  • Constructor Details Link icon

    • OortMulticastConfigurer Link icon

      public OortMulticastConfigurer(Oort oort)
  • Method Details Link icon

    • getBindAddress Link icon

      public InetAddress getBindAddress()
      Returns:
      the address to bind the receiver multicast socket to
    • setBindAddress Link icon

      public void setBindAddress(InetAddress bindAddress)
      Parameters:
      bindAddress - the address to bind the receiver multicast socket to
    • getGroupAddress Link icon

      public InetAddress getGroupAddress()
      Returns:
      the multicast address onto which Oort URLs are advertised
    • setGroupAddress Link icon

      public void setGroupAddress(InetAddress groupAddress)
      Parameters:
      groupAddress - the multicast address onto which Oort URLs are advertised
    • getGroupPort Link icon

      public int getGroupPort()
      Returns:
      the port the receiver multicast socket listens to
    • setGroupPort Link icon

      public void setGroupPort(int groupPort)
      Parameters:
      groupPort - the port the receiver multicast socket listens to
    • getGroupInterfaces Link icon

      public List<NetworkInterface> getGroupInterfaces()
      Returns:
      the interfaces that receive multicast messages
    • setGroupInterfaces Link icon

      public void setGroupInterfaces(List<NetworkInterface> groupInterfaces)
      Parameters:
      groupInterfaces - the interfaces that receive multicast messages
    • getTimeToLive Link icon

      public int getTimeToLive()
      Returns:
      the multicast time-to-live
    • setTimeToLive Link icon

      public void setTimeToLive(int timeToLive)
      Parameters:
      timeToLive - the multicast time-to-live
    • getAdvertiseInterval Link icon

      public long getAdvertiseInterval()
      Returns:
      the advertisement interval in milliseconds
    • setAdvertiseInterval Link icon

      public void setAdvertiseInterval(long advertiseInterval)
      Parameters:
      advertiseInterval - the advertisement interval in milliseconds
    • getConnectTimeout Link icon

      public long getConnectTimeout()
      Returns:
      the timeout to connect to another Oort node
    • setConnectTimeout Link icon

      public void setConnectTimeout(long connectTimeout)
      Parameters:
      connectTimeout - the timeout to connect to another Oort node
    • getMaxTransmissionLength Link icon

      public int getMaxTransmissionLength()
      Returns:
      the max Oort URL length (must be smaller than the max transmission unit)
    • setMaxTransmissionLength Link icon

      public void setMaxTransmissionLength(int maxTransmissionLength)
      Parameters:
      maxTransmissionLength - the max Oort URL length (must be smaller than the max transmission unit)
    • doStart Link icon

      protected void doStart() throws Exception
      Overrides:
      doStart in class org.eclipse.jetty.util.component.AbstractLifeCycle
      Throws:
      Exception
    • doStop Link icon

      protected void doStop()
      Overrides:
      doStop in class org.eclipse.jetty.util.component.AbstractLifeCycle
    • join Link icon

      public boolean join(long timeout)
    • receive Link icon

      protected void receive(String cometURL)