Package org.jboss.as.clustering.jgroups
Class ManagedSocketFactory
- java.lang.Object
-
- org.jboss.as.clustering.jgroups.ManagedSocketFactory
-
- All Implemented Interfaces:
SocketFactory,org.jgroups.util.SocketFactory
public class ManagedSocketFactory extends Object implements SocketFactory
Manages registration of all JGroups sockets with aSocketBindingManager.- Author:
- Paul Ferraro
-
-
Field Summary
-
Fields inherited from interface org.jboss.as.clustering.jgroups.SocketFactory
DEFAULT_BACKLOG, DEFAULT_BIND_PORT
-
-
Constructor Summary
Constructors Constructor Description ManagedSocketFactory(SelectorProvider provider, org.jboss.as.network.SocketBindingManager manager, Map<String,org.jboss.as.network.SocketBinding> socketBindings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose(ServerSocketChannel channel)voidclose(SocketChannel channel)DatagramSocketcreateDatagramSocket(String name, SocketAddress bindAddress)MulticastSocketcreateMulticastSocket(String name, SocketAddress bindAddress)ServerSocketcreateServerSocket(String name)ServerSocketChannelcreateServerSocketChannel(String name)SocketcreateSocket(String name)SocketChannelcreateSocketChannel(String name)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jboss.as.clustering.jgroups.SocketFactory
close, close, close, createDatagramSocket, createDatagramSocket, createDatagramSocket, createMulticastSocket, createMulticastSocket, createMulticastSocket, createServerSocket, createServerSocket, createServerSocket, createServerSocket, createServerSocketChannel, createServerSocketChannel, createServerSocketChannel, createServerSocketChannel, createSocket, createSocket, createSocket, createSocket, createSocket, createSocketChannel
-
-
-
-
Constructor Detail
-
ManagedSocketFactory
public ManagedSocketFactory(SelectorProvider provider, org.jboss.as.network.SocketBindingManager manager, Map<String,org.jboss.as.network.SocketBinding> socketBindings)
-
-
Method Detail
-
createSocket
public Socket createSocket(String name) throws IOException
- Specified by:
createSocketin interfaceorg.jgroups.util.SocketFactory- Throws:
IOException
-
createServerSocket
public ServerSocket createServerSocket(String name) throws IOException
- Specified by:
createServerSocketin interfaceorg.jgroups.util.SocketFactory- Throws:
IOException
-
createDatagramSocket
public DatagramSocket createDatagramSocket(String name, SocketAddress bindAddress) throws SocketException
- Specified by:
createDatagramSocketin interfaceorg.jgroups.util.SocketFactory- Throws:
SocketException
-
createMulticastSocket
public MulticastSocket createMulticastSocket(String name, SocketAddress bindAddress) throws IOException
- Specified by:
createMulticastSocketin interfaceorg.jgroups.util.SocketFactory- Throws:
IOException
-
createSocketChannel
public SocketChannel createSocketChannel(String name) throws IOException
- Specified by:
createSocketChannelin interfaceorg.jgroups.util.SocketFactory- Throws:
IOException
-
createServerSocketChannel
public ServerSocketChannel createServerSocketChannel(String name) throws IOException
- Specified by:
createServerSocketChannelin interfaceorg.jgroups.util.SocketFactory- Throws:
IOException
-
close
public void close(SocketChannel channel)
- Specified by:
closein interfaceorg.jgroups.util.SocketFactory
-
close
public void close(ServerSocketChannel channel)
- Specified by:
closein interfaceorg.jgroups.util.SocketFactory
-
-