public class OortMulticastConfigurer
extends org.eclipse.jetty.util.component.AbstractLifeCycle
Constructor | Description |
---|---|
OortMulticastConfigurer(Oort oort) |
Modifier and Type | Method | Description |
---|---|---|
protected void |
doStart() |
|
protected void |
doStop() |
|
long |
getAdvertiseInterval() |
|
java.net.InetAddress |
getBindAddress() |
|
long |
getConnectTimeout() |
|
java.net.InetAddress |
getGroupAddress() |
|
java.util.List<java.net.NetworkInterface> |
getGroupInterfaces() |
|
int |
getGroupPort() |
|
int |
getMaxTransmissionLength() |
|
int |
getTimeToLive() |
|
boolean |
join(long timeout) |
|
protected void |
receive(java.lang.String cometURL) |
|
void |
setAdvertiseInterval(long advertiseInterval) |
|
void |
setBindAddress(java.net.InetAddress bindAddress) |
|
void |
setConnectTimeout(long connectTimeout) |
|
void |
setGroupAddress(java.net.InetAddress groupAddress) |
|
void |
setGroupInterfaces(java.util.List<java.net.NetworkInterface> groupInterfaces) |
|
void |
setGroupPort(int groupPort) |
|
void |
setMaxTransmissionLength(int maxTransmissionLength) |
|
void |
setTimeToLive(int timeToLive) |
public OortMulticastConfigurer(Oort oort)
public java.net.InetAddress getBindAddress()
public void setBindAddress(java.net.InetAddress bindAddress)
bindAddress
- the address to bind the receiver multicast socket topublic java.net.InetAddress getGroupAddress()
public void setGroupAddress(java.net.InetAddress groupAddress)
groupAddress
- the multicast address onto which Oort URLs are advertisedpublic int getGroupPort()
public void setGroupPort(int groupPort)
groupPort
- the port the receiver multicast socket listens topublic java.util.List<java.net.NetworkInterface> getGroupInterfaces()
public void setGroupInterfaces(java.util.List<java.net.NetworkInterface> groupInterfaces)
groupInterfaces
- the interfaces that receive multicast messagespublic int getTimeToLive()
public void setTimeToLive(int timeToLive)
timeToLive
- the multicast time-to-livepublic long getAdvertiseInterval()
public void setAdvertiseInterval(long advertiseInterval)
advertiseInterval
- the advertisement interval in millisecondspublic long getConnectTimeout()
public void setConnectTimeout(long connectTimeout)
connectTimeout
- the timeout to connect to another Oort nodepublic int getMaxTransmissionLength()
public void setMaxTransmissionLength(int maxTransmissionLength)
maxTransmissionLength
- the max Oort URL length (must be smaller than the max transmission unit)protected void doStart() throws java.lang.Exception
doStart
in class org.eclipse.jetty.util.component.AbstractLifeCycle
java.lang.Exception
protected void doStop() throws java.lang.Exception
doStop
in class org.eclipse.jetty.util.component.AbstractLifeCycle
java.lang.Exception
public boolean join(long timeout)
protected void receive(java.lang.String cometURL)
Copyright © 2008–2017 The CometD Project. All rights reserved.