public class MulticastTransport extends UdpTransport
Constructor and Description |
---|
MulticastTransport(OpenWireFormat wireFormat,
URI remoteLocation) |
Modifier and Type | Method and Description |
---|---|
protected void |
bind(DatagramSocket socket,
SocketAddress localAddress) |
protected InetSocketAddress |
createAddress(URI remoteLocation)
Creates an address from the given URI
|
protected CommandChannel |
createCommandChannel() |
protected DatagramHeaderMarshaller |
createDatagramHeaderMarshaller() |
protected void |
doStop(ServiceStopper stopper) |
long |
getKeepAliveInterval() |
protected InetAddress |
getMulticastAddress() |
protected String |
getProtocolName() |
protected String |
getProtocolUriScheme() |
protected MulticastSocket |
getSocket() |
int |
getTimeToLive() |
boolean |
isLoopBackMode() |
void |
setKeepAliveInterval(long keepAliveInterval) |
void |
setLoopBackMode(boolean loopBackMode) |
protected void |
setSocket(MulticastSocket socket) |
void |
setTimeToLive(int timeToLive) |
connect, createCommandDatagramChannel, createLocalAddress, createReplayer, doStart, getBufferPool, getChannel, getCommandChannel, getDatagramSize, getLocalSocketAddress, getMinmumWireFormatVersion, getPort, getReceiveCounter, getRemoteAddress, getReplayBuffer, getReplayStrategy, getSequenceGenerator, getTargetAddress, getWireFormat, isReplayEnabled, isTrace, isUseLocalHost, oneway, oneway, resolveHostName, run, setBufferPool, setChannel, setCommandChannel, setDatagramSize, setMinmumWireFormatVersion, setPort, setReplayBuffer, setReplayEnabled, setReplayStrategy, setSequenceGenerator, setTargetEndpoint, setTrace, setUseLocalHost, toString
getStackSize, isDaemon, setDaemon, setStackSize
asyncRequest, checkStarted, doConsume, getTransportListener, isConnected, isDisposed, isFaultTolerant, isReconnectSupported, isUpdateURIsSupported, narrow, onException, reconnect, request, request, setTransportListener, updateURIs
addServiceListener, dispose, isStarted, isStopped, isStopping, postStop, preStart, removeServiceListener, start, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
asyncRequest, getTransportListener, isConnected, isDisposed, isFaultTolerant, isReconnectSupported, isUpdateURIsSupported, narrow, reconnect, request, request, setTransportListener, updateURIs
public MulticastTransport(OpenWireFormat wireFormat, URI remoteLocation) throws UnknownHostException, IOException
UnknownHostException
IOException
public long getKeepAliveInterval()
public void setKeepAliveInterval(long keepAliveInterval)
public boolean isLoopBackMode()
public void setLoopBackMode(boolean loopBackMode)
public int getTimeToLive()
public void setTimeToLive(int timeToLive)
protected String getProtocolName()
getProtocolName
in class UdpTransport
protected String getProtocolUriScheme()
getProtocolUriScheme
in class UdpTransport
protected void bind(DatagramSocket socket, SocketAddress localAddress) throws SocketException
bind
in class UdpTransport
SocketException
protected void doStop(ServiceStopper stopper) throws Exception
doStop
in class UdpTransport
Exception
protected CommandChannel createCommandChannel() throws IOException
createCommandChannel
in class UdpTransport
IOException
protected InetAddress getMulticastAddress()
protected MulticastSocket getSocket()
protected void setSocket(MulticastSocket socket)
protected InetSocketAddress createAddress(URI remoteLocation) throws UnknownHostException, IOException
UdpTransport
createAddress
in class UdpTransport
UnknownHostException
IOException
protected DatagramHeaderMarshaller createDatagramHeaderMarshaller()
createDatagramHeaderMarshaller
in class UdpTransport
Copyright © 2005–2015 The Apache Software Foundation. All rights reserved.