Package org.jboss.as.clustering.jgroups
Class ManagedSocketFactory
- java.lang.Object
-
- org.jboss.as.clustering.jgroups.ManagedSocketFactory
-
- All Implemented Interfaces:
org.jgroups.util.SocketFactory
public class ManagedSocketFactory extends Object implements org.jgroups.util.SocketFactory
Manages registration of all JGroups sockets with aSocketBindingManager.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description ManagedSocketFactory(org.jboss.as.network.SocketBindingManager manager, Map<String,org.jboss.as.network.SocketBinding> socketBindings)
-
Method Summary
-
-
-
Method Detail
-
createSocket
public Socket createSocket(String name) throws IOException
- Specified by:
createSocketin interfaceorg.jgroups.util.SocketFactory- Throws:
IOException
-
createSocket
public Socket createSocket(String name, String host, int port) throws IOException
- Specified by:
createSocketin interfaceorg.jgroups.util.SocketFactory- Throws:
IOException
-
createSocket
public Socket createSocket(String name, InetAddress address, int port) throws IOException
- Specified by:
createSocketin interfaceorg.jgroups.util.SocketFactory- Throws:
IOException
-
createSocket
public Socket createSocket(String name, String host, int port, InetAddress localHost, int localPort) throws IOException
- Specified by:
createSocketin interfaceorg.jgroups.util.SocketFactory- Throws:
IOException
-
createSocket
public Socket createSocket(String name, InetAddress address, int port, InetAddress localAddress, int localPort) 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
-
createServerSocket
public ServerSocket createServerSocket(String name, int port) throws IOException
- Specified by:
createServerSocketin interfaceorg.jgroups.util.SocketFactory- Throws:
IOException
-
createServerSocket
public ServerSocket createServerSocket(String name, int port, int backlog) throws IOException
- Specified by:
createServerSocketin interfaceorg.jgroups.util.SocketFactory- Throws:
IOException
-
createServerSocket
public ServerSocket createServerSocket(String name, int port, int backlog, InetAddress ifAddress) throws IOException
- Specified by:
createServerSocketin interfaceorg.jgroups.util.SocketFactory- Throws:
IOException
-
createDatagramSocket
public DatagramSocket createDatagramSocket(String name) throws SocketException
- Specified by:
createDatagramSocketin interfaceorg.jgroups.util.SocketFactory- Throws:
SocketException
-
createDatagramSocket
public DatagramSocket createDatagramSocket(String name, SocketAddress address) throws SocketException
- Specified by:
createDatagramSocketin interfaceorg.jgroups.util.SocketFactory- Throws:
SocketException
-
createDatagramSocket
public DatagramSocket createDatagramSocket(String name, int port) throws SocketException
- Specified by:
createDatagramSocketin interfaceorg.jgroups.util.SocketFactory- Throws:
SocketException
-
createDatagramSocket
public DatagramSocket createDatagramSocket(String name, int port, InetAddress address) throws SocketException
- Specified by:
createDatagramSocketin interfaceorg.jgroups.util.SocketFactory- Throws:
SocketException
-
createMulticastSocket
public MulticastSocket createMulticastSocket(String name) throws IOException
- Specified by:
createMulticastSocketin interfaceorg.jgroups.util.SocketFactory- Throws:
IOException
-
createMulticastSocket
public MulticastSocket createMulticastSocket(String name, int port) throws IOException
- Specified by:
createMulticastSocketin interfaceorg.jgroups.util.SocketFactory- Throws:
IOException
-
createMulticastSocket
public MulticastSocket createMulticastSocket(String name, SocketAddress address) 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(Socket socket) throws IOException
- Specified by:
closein interfaceorg.jgroups.util.SocketFactory- Throws:
IOException
-
close
public void close(ServerSocket socket) throws IOException
- Specified by:
closein interfaceorg.jgroups.util.SocketFactory- Throws:
IOException
-
close
public void close(DatagramSocket socket)
- Specified by:
closein interfaceorg.jgroups.util.SocketFactory
-
-