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
Manages registration of all JGroups sockets with a
SocketBindingManager.- Author:
- Paul Ferraro
-
Field Summary
Fields inherited from interface org.jboss.as.clustering.jgroups.SocketFactory
DEFAULT_BACKLOG, DEFAULT_BIND_PORT -
Constructor Summary
ConstructorsConstructorDescriptionManagedSocketFactory(SelectorProvider provider, org.jboss.as.network.SocketBindingManager manager, Map<String, org.jboss.as.network.SocketBinding> socketBindings) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose(ServerSocketChannel channel) voidclose(SocketChannel channel) createDatagramSocket(String name, SocketAddress bindAddress) createMulticastSocket(String name, SocketAddress bindAddress) createServerSocket(String name) createSocket(String name) createSocketChannel(String name) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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 Details
-
ManagedSocketFactory
public ManagedSocketFactory(SelectorProvider provider, org.jboss.as.network.SocketBindingManager manager, Map<String, org.jboss.as.network.SocketBinding> socketBindings)
-
-
Method Details
-
createSocket
- Specified by:
createSocketin interfaceorg.jgroups.util.SocketFactory- Throws:
IOException
-
createServerSocket
- 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
- Specified by:
createSocketChannelin interfaceorg.jgroups.util.SocketFactory- Throws:
IOException
-
createServerSocketChannel
- Specified by:
createServerSocketChannelin interfaceorg.jgroups.util.SocketFactory- Throws:
IOException
-
close
- Specified by:
closein interfaceorg.jgroups.util.SocketFactory
-
close
- Specified by:
closein interfaceorg.jgroups.util.SocketFactory
-