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, getPeerCertificates, getPort, getReceiveCounter, getRemoteAddress, getReplayBuffer, getReplayStrategy, getSequenceGenerator, getTargetAddress, getWireFormat, isReplayEnabled, isTrace, isUseLocalHost, oneway, oneway, resolveHostName, run, setBufferPool, setChannel, setCommandChannel, setDatagramSize, setMinmumWireFormatVersion, setPeerCertificates, setPort, setReplayBuffer, setReplayEnabled, setReplayStrategy, setSequenceGenerator, setTargetEndpoint, setTrace, setUseLocalHost, toStringgetStackSize, isDaemon, setDaemon, setStackSizeasyncRequest, checkStarted, doConsume, getTransportListener, isConnected, isDisposed, isFaultTolerant, isReconnectSupported, isUpdateURIsSupported, narrow, onException, reconnect, request, request, setTransportListener, updateURIsaddServiceListener, dispose, isStarted, isStopped, isStopping, postStop, preStart, removeServiceListener, start, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitasyncRequest, getTransportListener, isConnected, isDisposed, isFaultTolerant, isReconnectSupported, isUpdateURIsSupported, narrow, reconnect, request, request, setTransportListener, updateURIspublic MulticastTransport(OpenWireFormat wireFormat, URI remoteLocation) throws UnknownHostException, IOException
UnknownHostExceptionIOExceptionpublic 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 UdpTransportprotected String getProtocolUriScheme()
getProtocolUriScheme in class UdpTransportprotected void bind(DatagramSocket socket, SocketAddress localAddress) throws SocketException
bind in class UdpTransportSocketExceptionprotected void doStop(ServiceStopper stopper) throws Exception
doStop in class UdpTransportExceptionprotected CommandChannel createCommandChannel() throws IOException
createCommandChannel in class UdpTransportIOExceptionprotected InetAddress getMulticastAddress()
protected MulticastSocket getSocket()
protected void setSocket(MulticastSocket socket)
protected InetSocketAddress createAddress(URI remoteLocation) throws UnknownHostException, IOException
UdpTransportcreateAddress in class UdpTransportUnknownHostExceptionIOExceptionprotected DatagramHeaderMarshaller createDatagramHeaderMarshaller()
createDatagramHeaderMarshaller in class UdpTransportCopyright © 2005–2020 The Apache Software Foundation. All rights reserved.