public class OortMulticastConfigurer
extends org.eclipse.jetty.util.component.AbstractLifeCycle
Constructor and Description |
---|
OortMulticastConfigurer(Oort oort) |
Modifier and Type | Method and Description |
---|---|
protected void |
doStart() |
protected void |
doStop() |
long |
getAdvertiseInterval() |
InetAddress |
getBindAddress() |
long |
getConnectTimeout() |
InetAddress |
getGroupAddress() |
List<NetworkInterface> |
getGroupInterfaces() |
int |
getGroupPort() |
int |
getMaxTransmissionLength() |
int |
getTimeToLive() |
boolean |
join(long timeout) |
protected void |
receive(String cometURL) |
void |
setAdvertiseInterval(long advertiseInterval) |
void |
setBindAddress(InetAddress bindAddress) |
void |
setConnectTimeout(long connectTimeout) |
void |
setGroupAddress(InetAddress groupAddress) |
void |
setGroupInterfaces(List<NetworkInterface> groupInterfaces) |
void |
setGroupPort(int groupPort) |
void |
setMaxTransmissionLength(int maxTransmissionLength) |
void |
setTimeToLive(int timeToLive) |
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop, toString
public OortMulticastConfigurer(Oort oort)
public InetAddress getBindAddress()
public void setBindAddress(InetAddress bindAddress)
bindAddress
- the address to bind the receiver multicast socket topublic InetAddress getGroupAddress()
public void setGroupAddress(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 List<NetworkInterface> getGroupInterfaces()
public void setGroupInterfaces(List<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 Exception
doStart
in class org.eclipse.jetty.util.component.AbstractLifeCycle
Exception
protected void doStop() throws Exception
doStop
in class org.eclipse.jetty.util.component.AbstractLifeCycle
Exception
public boolean join(long timeout)
protected void receive(String cometURL)
Copyright © 2008–2024 The CometD Project. All rights reserved.