Package org.infinispan.server.jgroups
Class ManagedSocketFactory
- java.lang.Object
-
- org.infinispan.server.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.jgroups.util.SocketFactory factory, org.jboss.as.network.SocketBindingManager manager)
-
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 localAddress, 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 bindAddr) 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 bindAddress) 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 localAddress) 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 bindAddress) throws IOException
- Specified by:
createMulticastSocketin 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
-
-